Hi,
I've just realized that I'm not as smart as I thought I was. I have no
problem creating Windows apps, class libraries, using windows
references, etc. But, I absolutely cannot create and use a web service
and Windows application pair in VS 2005, even following the walkthrough
in Help. There are differences in some of the steps they outline that
I assume are due to an old example and I am using VS 2005. On my
latest attempt I tried creating the Temperature Conversion example and
get to the point where I want to run the application and I press F5 and
get the expected "Debugging Not Enabled" dialog box with the two
options "Add a new web.config file with debugging enabled." and "Run
without debugging. (Equivalent to Ctrl-F5)". So, as instructed, I take
the first option and click OK. What I get is a dialog box titled
"Microsoft Visual Studio", a red X icon, and the text, "The operation
could not be completed" with an OK button.
If I close and open the project, I see that the web.config file does
get created and when I try F5 again, it gives me the following dialog
box (I wish I could paste screen shots in here).
Title: Microsoft Visual Studio
Icon: Red X
Message: Unable to start debugging on the web
server.<html><head><title>Server Application Error</title></head>
<body><h1>Server Application Error</h1>The server has encountered an
error while loading an application during the processing of your
request. Please refer to the event log for more detail information.
Please contact the server administrator for more
assistance.</body></html>
Make sure that the server is operating correctly. Verify there are no
syntax errors in web.config by doing a Debug.Start Without Debugging.
You may also want to refer to the ASP.NET and ATL Server debugging
topic in the online documentation.
Button: OK
EventLog: The server failed to load application '/LM/W3SVC'. The error
was 'The specified metadata was not found.
'.
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
ContentRedirect.asp (and also events.asp) link says: We're sorry There
is no additional information about this issue in the Error and Event
Log Messages or Knowledge Base databases at this time. You can use the
links in the Support area to determine whether any additional
information might be available elsewhere.
I cannot find an LM folder on my system. If I search for w3svc, I get
4 items: W3SVC.DL_ in c:\i386, w3svc.dll in
c:\WINDOWS\system32\inetsrv, W3SVC1 folder in
c:\WINDOWS\system32\Logfiles, and a Transform.aspx page that refers to
W3SVC in its long list of parameters in my Temporary Internet Files
folder.
I don't understand why I'm getting a dialog box with HTML in it. Is my
IIS not configured properly? Does anyone have any clue about what I
need to do with the w3svc.dll and if I can just use the one I found?
I previously was able to create a web service that does most of what I
want, but I created it was not created as an HTTP location. It was
created as a file location. I was able to test it in debug mode and I
can still test it in debug, but cannot not get any farther. That's why
I'm trying to go through this "walkthrough" and take baby steps. Well,
I'm falling on my butt instead of walking.
Being able to create and use a web service is a critical portion of a
project that I'm working on and will be used in virtually every project
I create from now on. Someone please help me figure out what is wrong.