473,569 Members | 2,489 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>Whe eling 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,d c=group,dc=Test ,dc=local"

strUser = Request.ServerV ariables("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("A DODB.Connection ")

set oCommand = CreateObject("A DODB.Command")

set oRS = CreateObject("A DODB.Recordset" )

oConn.Provider = "ADsDSOObje ct"

oConn.Open "Ads Provider"

set oCommand.Active Connection = 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=pe rson) will return mailboxes, distribution
lists, and custom recipients

strQuery= "<LDAP://" & strServername &
">;(objectClass =person);name,t elephoneNumber, mobile,title,de partment,mail,f acsimileTelepho neNumber,pager, otherTelephone"

oCommand.Comman dText = strQuery

oCommand.Proper ties("Sort On") = "name"

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

set oRS = oCommand.Execut e '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>Mobi le Numbers

<%

While not oRS.EOF

arrPhone = oRS.Fields("oth erTelephone")

%>

<TR>

<TD><b><%=oRS.F ields("name")%> </b></b></br><i><%=oRS.Fi elds("title")%> </i></br><%=oRS.Field s("department") %></br>

<a

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

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

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

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

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

<%

oRS.MoveNext

wend

%>

</TABLE>

</BODY>

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

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

Similar topics

5
7032
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 contains the program to execute (fop.bat with several parameters). But I'm getting the following error message :
10
2684
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 VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was...
1
3147
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 Windows Server 2003 Enterprise Edition Only. This works on Windows 2000, Windows 2003 Web Edition and
1
2840
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 WINDOWS 2003 SERVER, I created a new website, allocated port number 6000. Created a release version on my local machine and copied the WEB project from my...
16
2905
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException:...
4
5229
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
2315
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 development server VS contains. When I publish it to a real server running Windows Server 2003, IIS 6, and .NET Framework 2.0, I get strange compiler...
23
5070
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 solution, and was greeted with the following error: ======================================================================== It is an error to use a...
3
8696
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: System.Convert.FromBase64String(String s) +0
4
3406
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" myMail.To="t...@blah.com" myMail.CreateMHTMLBody "http://cic/targeted/results.asp" mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/...
0
7618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5222
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.