curiouswebster
asked on
Wrong asmx file is coming up under Browse in IIS
I have a Visual Studio project for my web service, which has multiple asmx files. In VS I set a certain page as the default, and see it opens correctly in Visual Studio 2008 when I select Run. When I publish it to IIS 5.2, the wrong page opens when I browse.
How do I set the correct page in IIS 5.2 on Windows Server 2003?
Thanks,
newbieweb
How do I set the correct page in IIS 5.2 on Windows Server 2003?
Thanks,
newbieweb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It's IIS 5.2, and it served the prior asmx page. I added the one I wanted, and when putting that on top did not work, I deleted the other one.
It just changed modes and started displaying all documents in the folder.
When I browse the site from the server:
http://localhost/service.asmx and
http://localhost:8182/service.asmx
I get the error:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
Where do I remove custom errors? I see only a Tab page called Custom Errors, but do not see how to turn them off.
It just changed modes and started displaying all documents in the folder.
When I browse the site from the server:
http://localhost/service.asmx and
http://localhost:8182/service.asmx
I get the error:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
Where do I remove custom errors? I see only a Tab page called Custom Errors, but do not see how to turn them off.
ASKER
No, I created a default.html and placed it in the same folder, clicked Refresh from IIS. I browsed and it showed the directory listing, not the blank page.
ASKER
I had checked "Directory Browsing" earlier. But now I see it does not change the behavior by unchecking it...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No, I have not restarted IIS. Let me try now...
ASKER
Thanks.
ASKER
I guess it really does not matter, so long as I can access the page explicitly from my code. But I think I can not. I am using LogMeIn to go to the server and so can not take a screen shot of what I am seeing.
I have the web service running, and have it getting consumed into a Windows program running on the same PC. I used localhost in the URL.
When I call the web service I get an exception:
System.Web.Services.Protoc
at MobileServiceMgr.GetPendin
--- End of inner exception stack trace ---
When I add a watch for the web service I see all nulls.
So I think something is missing here relating to the default document.
Any ideas?