.Net ADO Provider - Inetserver
This is a discussion on .Net ADO Provider - Inetserver ; Hi Everyone, (Again !)
Thanks alot fo rth ehelp you've given so far, it has been very very
helpfull.
One further question though:
Is it possible to reproduce the code at the bottom of the page, for
gnerating index server ...
-
.Net ADO Provider
Hi Everyone, (Again !)
Thanks alot fo rth ehelp you've given so far, it has been very very
helpfull.
One further question though:
Is it possible to reproduce the code at the bottom of the page, for
gnerating index server statistics on a web page, in ASP.NET using the MSIDXS
data provider? I would dearly love to be able ot generate this stats page
in my ASP.NET server management application but all i can do at the moment
is count records and count files and compare, which seems to give different
numbers to the index server.
TIA.
Martin
Here is the ASP/VBScript used to generate the stats page:
Code:
<%
Set objAdminIS = CreateObject("Microsoft.ISAdm")
objAdminIS.Machinename = "Maverick"
set objCatAdmin = objAdminIS.GetcatalogbyName(strDomain)
' display this lot -->
' Display status of catalog or the enable button
response.Write "<tr><td></td><td> Catalog Name : </td><td> " &
objCatAdmin.catalogName & "</td></tr>"
response.Write "<tr><td></td><td> Catalog Location : </td><td> " &
objCatAdmin.catalogLocation & "</td></tr>"
' isuptodate
response.Write "<tr><td></td><td> Catalog Up To Date : </td><td> " &
objCatAdmin.isuptodate & "</td></tr>"
' FilteredDocumentCount
response.Write "<tr><td></td><td> Indexed Documents : </td><td> " &
objCatAdmin.filtereddocumentcount & "</td></tr>"
' TotalDocumentcount
response.Write "<tr><td></td><td> Total Documents : </td><td> " &
objCatAdmin.totalDocumentCount & "</td></tr>"
' Documentstofilter
response.Write "<tr><td></td><td> Filtered Documents : </td><td> " &
objCatAdmin.DocumentstoFilter & "</td></tr>"
' DelayedFilterCount
response.Write "<tr><td></td><td> Index delayed on : </td><td> " &
objCatAdmin.DelayedFilterCount & "</td></tr>"
' PersistentIndexCount
response.Write "<tr><td></td><td> Persistant Indexes : </td><td> " &
objCatAdmin.PersistentIndexCount & "</td></tr>"
' QueryCount
response.Write "<tr><td></td><td> No Of Queries : </td><td> " &
objCatAdmin.QueryCount & "</td></tr>"
' WordListCount
response.Write "<tr><td></td><td> Wordlists : </td><td> " &
objCatAdmin.WordListCount & "</td></tr>"
' UniqueKeyCount
response.Write "<tr><td></td><td> Unique Keys : </td><td> " &
objCatAdmin.UniqueKeyCount & "</td></tr>"
%>
-
Re: .Net ADO Provider
yes it is, use a com iterop to the ciadm class to do this.
"Martin c" <martin@nospam.com> wrote in message
news:OROW4j4JEHA.3120@TK2MSFTNGP11.phx.gbl...
> Hi Everyone, (Again !)
>
> Thanks alot fo rth ehelp you've given so far, it has been very very
> helpfull.
> One further question though:
> Is it possible to reproduce the code at the bottom of the page, for
> gnerating index server statistics on a web page, in ASP.NET using the
MSIDXS
> data provider? I would dearly love to be able ot generate this stats page
> in my ASP.NET server management application but all i can do at the moment
> is count records and count files and compare, which seems to give
different
> numbers to the index server.
>
> TIA.
> Martin
>
> Here is the ASP/VBScript used to generate the stats page:
> Code:
> <%
> Set objAdminIS = CreateObject("Microsoft.ISAdm")
> objAdminIS.Machinename = "Maverick"
> set objCatAdmin = objAdminIS.GetcatalogbyName(strDomain)
> ' display this lot -->
> ' Display status of catalog or the enable button
> response.Write "<tr><td></td><td> Catalog Name : </td><td> " &
> objCatAdmin.catalogName & "</td></tr>"
> response.Write "<tr><td></td><td> Catalog Location : </td><td> " &
> objCatAdmin.catalogLocation & "</td></tr>"
> ' isuptodate
> response.Write "<tr><td></td><td> Catalog Up To Date : </td><td> " &
> objCatAdmin.isuptodate & "</td></tr>"
> ' FilteredDocumentCount
> response.Write "<tr><td></td><td> Indexed Documents : </td><td> " &
> objCatAdmin.filtereddocumentcount & "</td></tr>"
> ' TotalDocumentcount
> response.Write "<tr><td></td><td> Total Documents : </td><td> " &
> objCatAdmin.totalDocumentCount & "</td></tr>"
> ' Documentstofilter
> response.Write "<tr><td></td><td> Filtered Documents : </td><td> " &
> objCatAdmin.DocumentstoFilter & "</td></tr>"
> ' DelayedFilterCount
> response.Write "<tr><td></td><td> Index delayed on : </td><td> " &
> objCatAdmin.DelayedFilterCount & "</td></tr>"
> ' PersistentIndexCount
> response.Write "<tr><td></td><td> Persistant Indexes : </td><td> " &
> objCatAdmin.PersistentIndexCount & "</td></tr>"
> ' QueryCount
> response.Write "<tr><td></td><td> No Of Queries : </td><td> " &
> objCatAdmin.QueryCount & "</td></tr>"
> ' WordListCount
> response.Write "<tr><td></td><td> Wordlists : </td><td> " &
> objCatAdmin.WordListCount & "</td></tr>"
> ' UniqueKeyCount
> response.Write "<tr><td></td><td> Unique Keys : </td><td> " &
> objCatAdmin.UniqueKeyCount & "</td></tr>"
> %>
> >
>
-
Re: .Net ADO Provider
Martin,
You are welcome.
And sure, we can use it in ASP.net through
interop:
In VS.net, Add Reference and select COM. Click Browser and locate to
Windows\System32\ciodm.dll (take care, not ciadm). Then create its
intance to use:
CIODMLib.AdminIndexServerClass MyISAdmin = new
CIODMLib.AdminIndexServerClass();
The ASP.net app may need to run under high trust level, you can
insert: <trust level = "Full" /> in web.config
To MSIDXS in .Net, you can refer to the following sample:
820983 HOW TO: Use an ASP.NET Application to Query an Indexing
Service Catalog
http://support.microsoft.com/?id=820983
Let me know if you meet any issues.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
-
Re: .Net ADO Provider
Hello Martin,
Have you met any problems during interop ciodm to run in ASP.net? If
so, please don't hesitate to let me know, it's always my pleasure to
be of help.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
-
Re: .Net ADO Provider
Trying to use CIODMLib through Interop within asp.net app is driving me nuts. I continually get Access Denied messages. I have tried setting trust level to full, set impersonate on/off, modifed Index service settings to run under specific user account. I would love to see working asp.net 2.0 app that is successfully using Index server--examples I found in Win SDK were quite out of date. Any help would be greatly appreciated.
-Lauren
Similar Threads
-
By Application Development in forum Sharepoint
Replies: 1
Last Post: 04-01-2009, 04:44 AM
-
By Application Development in forum ADO DAO RDO RDS
Replies: 0
Last Post: 05-20-2007, 09:38 PM
-
By Application Development in forum DOTNET
Replies: 6
Last Post: 06-16-2004, 08:12 PM
-
By Application Development in forum DOTNET
Replies: 0
Last Post: 07-16-2003, 04:26 AM