A name was started with an invalid character

Last post 02-20-2009 2:58 PM by roger_27. 20 replies.

Sort Posts:

  • A name was started with an invalid character

    09-09-2006, 10:01 PM
    • Star
      8,834 point Star
    • MorningZ
    • Member since 07-22-2002, 2:39 PM
    • Fort Lauderdale, FL
    • Posts 1,815

    Hopefully someone can help me with this problem so that maybe i can actually get some work done....

    I'm running XP (so IIS 5.1) and cannot get ASP.NET pages to work against the IIS "Default Website", i'm getting the dreaded/useless error of:

     



    And as shown here, the site is properly mapped to use the 2.0 framework:



    So for fixes, i see from posts like these:
    - Reinstall the framework (which seems to be the common answer looking around on google for help):  this didn't work (the error it mentions in the log is about restarting IIS, and iisreset works instead, but you can clearly see that the framework was/is sucessfully installed)



    - A case sensitive issue where going to IIS manager and right clicking the file and choosing "Browse" makes it work....  sadly... this does not work for me either.....

     

    Any other ideas, thoughts, or suggestions to get it to work against IIS?    I seriously would throw in the towel and work against VWD's built in server, but i have classic asp pages mixed in and "cassini" doesn't serve those.......

    If you do..... I thank you in advance

    "If you make it idiot proof, they'll build a better idiot"
  • Re: A name was started with an invalid character

    09-09-2006, 10:07 PM
    • All-Star
      33,913 point All-Star
    • vcsjones
    • Member since 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 4,331
    • Moderator
      TrustedFriends-MVPs
    Does it do this with ASPX pages as well? Is the ASMX extension registered to the ASP.NET ISAPI in IIS? I know you ran aspnet_regiis but it can screw that up sometimes.
    Cheers,
           Kevin Jones


  • Re: A name was started with an invalid character

    09-09-2006, 10:42 PM
    • Star
      8,834 point Star
    • MorningZ
    • Member since 07-22-2002, 2:39 PM
    • Fort Lauderdale, FL
    • Posts 1,815

    Same errors for aspx pages as well  :-(

     

    "If you make it idiot proof, they'll build a better idiot"
  • Re: A name was started with an invalid character

    09-10-2006, 12:55 AM
    • All-Star
      23,604 point All-Star
    • azamsharp
    • Member since 06-11-2003, 9:36 AM
    • Houston,Texas
    • Posts 4,518
    Do you also have the .NET Framework installed on your server? If so you might need to run the application in a different application pool.
    HighOnCoding
    Get high on ASP.NET articles, videos, podcasts and more!
  • Re: A name was started with an invalid character

    09-10-2006, 1:14 AM
    • All-Star
      33,913 point All-Star
    • vcsjones
    • Member since 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 4,331
    • Moderator
      TrustedFriends-MVPs

    Is the ASMX extension registered to the ASP.NET ISAPI in IIS? I know you ran aspnet_regiis but it can screw that up sometimes.

    Azam - He is running IIS 5.1, 5.1 does not support Application Pools.

    Cheers,
           Kevin Jones


  • Re: A name was started with an invalid character

    09-10-2006, 1:18 AM
    • All-Star
      33,913 point All-Star
    • vcsjones
    • Member since 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 4,331
    • Moderator
      TrustedFriends-MVPs

    Looking at this image:

    It says there were errors during setup. What were those errors in the log?

    Cheers,
           Kevin Jones


  • Re: A name was started with an invalid character

    09-10-2006, 11:08 AM
    Answer
    • Star
      8,834 point Star
    • MorningZ
    • Member since 07-22-2002, 2:39 PM
    • Fort Lauderdale, FL
    • Posts 1,815

    vcsjones:

    Looking at this image:

    It says there were errors during setup. What were those errors in the log?

    Yeah, there's something else weird going on in that starting and restopping IIS works find via "iisrest", but the install has problems doing it...  but it *does* say right there in the screenshot "Finished Installing" plus the framework operates just fine if i use studio or VWD's built in web-server....   so i can't see any reason why this simply won't work  :-(

     

    "If you make it idiot proof, they'll build a better idiot"
  • Re: A name was started with an invalid character

    09-10-2006, 11:25 AM
    • All-Star
      98,110 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,351
    • Moderator
      TrustedFriends-MVPs

    MorningZ:
    but it *does* say right there in the screenshot "Finished Installing"

    "finishing" and "finishing correctly" are 2 different things.

    The built in webserver casinni handles "all" requests - no extension mapping required. iis requires the extension to be mapped. the fact that the code of your page is showing up in the browser indicate that iis is NOT maspping the asmx extension to the aspnet_isapi.dll

     what were the install errors?

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: A name was started with an invalid character

    09-10-2006, 11:35 AM
    • All-Star
      33,913 point All-Star
    • vcsjones
    • Member since 04-18-2006, 8:53 PM
    • Falls Church, VA
    • Posts 4,331
    • Moderator
      TrustedFriends-MVPs

    Also, can you please tell us if the extensions are mapped correctly or not?

    How to do this:

    1. Open the IIS Manager
    2. Click "Properties" of the Default Web Site
    3. Switch to the "Home Directory" tab.
    4. Click the "Configuration" button
    5. In the top box look for ASPX and ASMX extensions, etc.

    The executable path should be "c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" or "c:\windows\microsoft.net\framework64\v2.0.50727\aspnet_isapi.dll".

    If it isn't in there, add it and see if that fixs things.

    Cheers,
           Kevin Jones


  • Re: A name was started with an invalid character

    09-10-2006, 6:08 PM
    • Star
      8,834 point Star
    • MorningZ
    • Member since 07-22-2002, 2:39 PM
    • Fort Lauderdale, FL
    • Posts 1,815

    vcsjones:
    If it isn't in there, add it and see if that fixs things.

    And that is a wrap... they were not there, added both aspx and asmx... all appears well now  :)

     Thanks for the patience and restoring my programming sanity

     

    ** Edit **
    Seems like when i "invoke" a web service using the browser tool i get a 404 error not found...  i must be missing an extenstion for web services...  i'll term into work and see if i can compare and see what else is missing

    "If you make it idiot proof, they'll build a better idiot"
  • Re: A name was started with an invalid character

    09-10-2006, 6:20 PM
    • All-Star
      98,110 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,351
    • Moderator
      TrustedFriends-MVPs

    glad that things are getting better but...

    assuming you find whats missing for web services - what's gonna break next?
    something went terribly wrong with your install.

    fixing the extension mapping is actually just fixing a symptom and is not getting to the root cause of your problem.
    i think i'd try chasing the errors from : aspnet_regiis -i

    you shouldnt need to manually add extension mappings.
    were you logged in as an admin when you ran: aspnet_regiis -i ?

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: A name was started with an invalid character

    11-10-2006, 2:16 PM
    • Member
      5 point Member
    • Cletus
    • Member since 11-10-2006, 7:07 PM
    • Posts 1

    God, I love Google.  They brought me to this post.

     

    If I could suggest one other step it would be to go to Home Directory and then make sure that the "execution permissions"

    is set to "scripts and executables".  

     

     

    You must have hated that moose.
  • Re: A name was started with an invalid character

    03-21-2007, 12:06 PM
    • Member
      4 point Member
    • rams2hari
    • Member since 03-20-2007, 12:03 AM
    • Posts 2

    hi ..

    i have the same problem today and tried on google i got to this thread with the same prob as i have ..

    i tried all the wayts posted in here but could not succeed .

    but when i go to IIS and browse the particular .asmx page its opening..where as when i go to the physical location and opened it with IE ..its giving the same error..

    but i don't have any case sensitive issues b.coz i am goin to the page folder and openiong .asmx file with the IE .i m getting the error unable to open xml input...

    waiting for suggestions

     

  • Re: A name was started with an invalid character

    03-21-2007, 12:09 PM
    • Member
      4 point Member
    • rams2hari
    • Member since 03-20-2007, 12:03 AM
    • Posts 2

    and onem ore thing .

     

    i m able to open the file without error just 2 days before ...but not today..hardly i made any changes in this 2 days .

     

  • Re: A name was started with an invalid character

    08-30-2007, 1:53 AM
    • Member
      2 point Member
    • vineyugave
    • Member since 07-26-2007, 4:16 PM
    • Posts 1

    hey guys thx a lot for this post this has helped me a lot !!!!!Smile

Page 1 of 2 (21 items) 1 2 Next >