Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find server or DNS Error when Running a COM+

Status
Not open for further replies.

NegreteO

Programmer
Apr 23, 2003
54
US
Hi,

I am trying to run a Server COM+ under a XP machine but when I try to browse my page I get the error Cannot find server or DNS error

Hope you can help me
 
Have you tried opening up the page using the IP address or at the server hosting the page directly with localhost?

Also can you ping the machine from the DOS prompt? Finally are the services running and the com components registered?

Let me know if you need help checking these items.

Cassidy
 
Hi,

I tried what you suggested me and and I still get the same error "Cannot find Server or DNS error". My component is registered sucessfully but still doesn't work. Let me also comment you that I am trying to make it work in my laptop (Win XP) so I have my ISS also installed here. So I tried to run one page by using another ASP statement and it works but when I try to call some of my functions of the COM+ I get the DNS error.

Hope this helps
Thanks in advance
 
Is there a chance you could post the code you are using to call the component? Also do you have a reference to the ASP object library in the component?

Cassidy
 
Here's the code. What this page is doing is basically checking the existence of parameters on the registry and acccordin to that launches another page.

<%@ Language=VBScript%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<!-- #include virtual = "/JSRS/Modules/mdlMain.asp" -->
<title>Jabil Shipping Requests System</title>

</HEAD>
<BODY>

<%

Dim Registry

Set Registry = Server.CreateObject("JSRS_COMv10.SVR_Registry")

'Verifies the JSRS' settings on the Web Server Registry.
If Registry.GetSettings=False Then

Set Registry = Nothing

If Err.Number = 0 then
'Launches the Configuration Settings Page.
Response.Redirect("/JSRS/ASP/ConfigureSettings.asp")

End If

Else

Application("SQL_Server") = Registry.SQL_Server
Application("SQL_Database") = Registry.SQL_Database
Session("Language_ID") = Registry.Language_ID

Set Registry = Nothing

'Launches the JSRS Welcome Page.
Response.Redirect("/JSRS/ASP/Welcome.asp")

End If

%>

</BODY>
</HTML>
 
I am assuming that the object has error handling and not using the raise.error method. Otherwise to use the method your trying to use you would have to use on error resume next. Otherwise everytime you try to access the component and it not being there would generate an error.

That being considered make sure you don't have friendly error messages turned on.

Tools>Internet Options>Advanced>Show Friendly HTTP Error Messages

Make sure that is not checked. Otherwise you will get the non-descriptive error messages that make it impossible to trouble shoot.

Finally on your web application in IIS make sure in the properties area you give permissions for scripts and executables. Let me know if your running this as an IIS application too. If that is the case we might have to deregister all the DLL's, take it out of application mode, reboot, and then reregister the DLL's, and set the IIS folder back to being an application.

Let me know.

Cassidy
 
I added the error handling but no error is shown It automatically shows me the DNS Error

I am not running it as an IIS Application, this is a Visual Interdev Application
 
Are you running this from running this from the Visual Interdev View in Browser option? If so I have had this happen several times because it puts a path in the URL instead of For some reason it won't allow you to invoke the COM+ component when it is a path like c:\inetpub\
If it works typing in the in the browser then I know there is a setting in the Visual Interdev to allow this.

Otherwise I couldn't see where you answerd if you had a reference set to the ASP library within the COM component. If you purchased the component compiled you would have to assume yes. Otherwise let me know.

In VB you would check it by going to Project>References>Microsoft Active Server Pages Object Library

Sorry about all the questions and pointers. I am trying to cover the minor things before we start getting into the deeper stuff.

Cassidy
 
Yes I am using the View in Browser option.

By Typing localhost I get the same error. What is the setting that you mentioned about Interdev.

The component was developed by myself and it has the reference to the Microsoft Active Server Pages Object Library
 
Just to also make sure, you looking for the registry key value on the server and not the client correct?

Here is an article on debugging the COM+. I am looking for that setting that allows you to see the results from COM to an extent with Visual Interdev.


When I find the setting I will post. It has been awhile since I had to use it. Let me know if this fixes anything.

Cassidy
 
I had just tried to debub by using the example from the article and I get this error message

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
/JSRS/Debug.asp, line 14
 
That error means that you do not have permissions to run excutables on the server. If you do a search at:
It will tell you how to setup permissions to create objects. I don't have the exact article address and am going to a meeting. If you need help finding it let me know and I will look it up when I get back.

Thanks

Cassidy
 
I finally made it work on my Windows XP laptop. I just had to change the anonymous access to the IWAM user and now my pages and my component work perfectly.

I want to thank you for all the support given

Thanks a lot
I really appreciate it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top