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.
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?
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.
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.
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.
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
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.
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
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.