I remember an issue when I first started using WCF services on my XP box. I had to go into iis and map the .svc extension appropriately so iis knew what to do with it.
I recently had to do this again after installing the VS2008 SP1.
Its worth the effort to see if your file mappings in IIS are correct.
I did that. Now it is showing "Unrecognized configuration section 'connectionStrings' ".I am using IIS 5.1 and I have both Frame work 1.1 and 2.0. Awaiting your reply
Go into your web site properties and see what version of ASP.NET you are using. If its 1.1, you need to change the <%@ Page %>
directive to use Codebehind="...". If its ASP.NET 2.0 or later, you need to use
Codefile="..." and remove the Inherits="" phrase. Thats it! Most people are switching framework versions on different servers and are not make this change at the top of their ASPX pages. -
www.stormdetector.com
damole
Member
4 Points
2 Posts
Re: A name was started with an invalid character
Apr 23, 2008 07:09 AM|LINK
I tried this and it worked, thanks!
It is helpful to shut down all the browsers trying to access that script and stop and restart IIS. Maybe not necessary but helped me.
Good luck
drobertsaspn...
Member
23 Points
14 Posts
Re: A name was started with an invalid character
Aug 27, 2008 08:26 PM|LINK
I remember an issue when I first started using WCF services on my XP box. I had to go into iis and map the .svc extension appropriately so iis knew what to do with it.
I recently had to do this again after installing the VS2008 SP1.
Its worth the effort to see if your file mappings in IIS are correct.
Hope this helps
Darrell
Lukmaan
Member
2 Points
1 Post
Re: A name was started with an invalid character
Sep 01, 2008 09:48 PM|LINK
Hi PigasuZ,
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
I did that. Now it is showing "Unrecognized configuration section 'connectionStrings' ".I am using IIS 5.1 and I have both Frame work 1.1 and 2.0. Awaiting your reply
skamin
Member
28 Points
10 Posts
Re: A name was started with an invalid character
Jan 29, 2009 10:25 PM|LINK
Works for me ... thanks Peg
Stormy22
Member
4 Points
2 Posts
Re: A name was started with an invalid character
Oct 19, 2009 02:44 AM|LINK
Its very easy to fix this problem.
Go into your web site properties and see what version of ASP.NET you are using. If its 1.1, you need to change the <%@ Page %>
directive to use Codebehind="...". If its ASP.NET 2.0 or later, you need to use Codefile="..." and remove the Inherits="" phrase. Thats it! Most people are switching framework versions on different servers and are not make this change at the top of their ASPX pages. - www.stormdetector.com
chandruasp
Member
72 Points
24 Posts
Re: A name was started with an invalid character
Jun 04, 2010 10:30 AM|LINK
Hi,
I had the same problem, infact even http://localhost was not working.
I tried all the above listed changes and Server reboot also, but no luck.
finally, I resolved it as follows
Open a new webapplication --> run it locally once (bydefault it will run using "Asp.Net Development server").
What a surprise, all issues are vanished!!!.
Hope this will help others.
Thanks ~ Chandru
Error
Mahesh Dhing...
Member
4 Points
3 Posts
Re: A name was started with an invalid character
Jun 14, 2010 07:00 AM|LINK
Thanks!!!
It worked for me after setting the ASP.NET version in the ASP.NET tab in IIS Manager. It was blank in my case.
Mahesh Dhinge
vmb2000_uk
Member
15 Points
35 Posts
Re: A name was started with an invalid character
Jun 18, 2010 09:45 AM|LINK
The following worked for me:
Open Internet Information Service Manager (start -> run -> "inetmgr")
Click on the Web Service Extensions folder,
Ensure "Active Server Pages" and "ASP.NET v2.0.50727" are "Allowed".