Tom Cox  

A Quick Tip for Solving - A name was started with an invalid character - When Publishing to IIS

Posted by Tom Cox
Sunday, October 11, 2009

I went to publish a new web service that I built the other day on a client machine that I have never used before. When I went to publish what amounts to a Hello World starter service, I got the following message:



Figure 1: The Error









The first thing I did was go to the properties window of the Virtual Directory I created in IIS. I noticed on the ASP.Net tab that ASP.Net version was set to version 1.x. I selected version 2.x of ASP.Net instead, and clicked OK to exit out of the properties window.



Figure 2: Virtual Directory Properties Window in IIS









I then went to the command window and typed iisreset to make sure the changed took place.



Figure 3: Performing an iisreset









I navigated to my service again, got the ever-familiar SOAP wsdl and proxy generation message. Success!!! This is the type of thing that I call the hidden checkbox factor. Most of my time in Windows, IIS, ASP.Net, and .Net in general is spent finding the hidden checkbox that is not set write and is consequently making my life painful. If I just removed the pain for even one person out there, then my job is done! Enjoy!



Figure 4: Magic! My service works!





Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home