473,508 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error in IE when running ASP Page.

I keep geting this error in the IE when trying to run the scrept below from
an ASP page. Can any one help please.
Error Type:
Provider (0x80040E37)
Table does not exist.
/gal.asp, line 43
<HTML>

<BODY>

<CENTER><H2>Wheeling Departmental Directory</H2><CENTER>

</TABLE>

<%

'TO DO : Change the below name to your Exchange server name

'

' Note if you want to use NT Challenge Response authentication this

' will need to be the same machine as the ASP is running on

strServerName = "ou=Companies,dc=group,dc=Test,dc=local"

strUser = Request.ServerVariables("LOGON_USER") 'retrieve the user

if strUser = "" then

Response.Write "You are using Anonymous authentication you will need to
change it so the user can be identified"

Response.End

end if

set oConn = CreateObject("ADODB.Connection")

set oCommand = CreateObject("ADODB.Command")

set oRS = CreateObject("ADODB.Recordset")

oConn.Provider = "ADsDSOObject"

oConn.Open "Ads Provider"

set oCommand.ActiveConnection = oConn 'set the active connection

' Next we will build the LDAP query that will be used to retrieve the
contents of the GAL.

' We will specify which server we want to run the query against,

' a filter for what types of objects we are looking for, the attributes we
would like

' returned, and the type of search

' A filter of (objectClass=person) will return mailboxes, distribution
lists, and custom recipients

strQuery= "<LDAP://" & strServername &
">;(objectClass=person);name,telephoneNumber,mobil e,title,department,mail,facsimileTelephoneNumber,p ager,otherTelephone"

oCommand.CommandText = strQuery

oCommand.Properties("Sort On") = "name"

oCommand.Properties("Page Size") = 99 'a paged query is used to avoid
Exchange LDAP server limits

set oRS = oCommand.Execute 'Execute the query

' Now we will loop through the results of our query

' and build a table to display the Global Address List

%>

<TABLE BORDER=4>

<TR>

<TH>Name/Title</br>Department/Email<TH>Work/Fax Numbers<TH>Mobile Numbers

<%

While not oRS.EOF

arrPhone = oRS.Fields("otherTelephone")

%>

<TR>

<TD><b><%=oRS.Fields("name")%></b></b></br><i><%=oRS.Fields("title")%></i></br><%=oRS.Fields("department")%></br>

<a

href="mailto:<%=oRS.Fields("mail")%>"><%=oRS.Field s("mail")%></a>

<TD>Work: <%=oRS.Fields("telephoneNumber")%></br>

Fax: <%=oRS.Fields("facsimileTelephoneNumber")%>

<TD>Mobile: <%=oRS.Fields("mobile")%></br>

Nextel: <%=oRS.Fields("pager")%></br>

<%

oRS.MoveNext

wend

%>

</TABLE>

</BODY>

</HTML>
Dec 1 '06 #1
0 1032

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7030
by: Patrice FRITSCH | last post by:
I'm trying to run a batch file from an asp page using WScript.Shell object. Dim oWSH set oWSH= Server.CreateObject("WScript.Shell") call oWSH.Run("cmd.exe /c " & szCmd , 0, true) szCmd...
10
2681
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
1
3144
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
1
2835
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
16
2892
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
4
5225
by: news.citenet.net | last post by:
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? ...
3
2311
by: Don | last post by:
I have an ASP.NET 2.0 application (in VB) based on the Personal Site Starter kit that runs perfectly (no erros, no warnings, no exceptions) when run from Visual Studio 2005 Team Suite using the...
23
5048
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
3
8693
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
4
3401
by: Nate | last post by:
I have the following ASP code on a simple "experimental" page: <% Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="f...@blah.com"...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.