ASP.NET Web service - Parse Error
October 5, 2008
For those who have an ASP.NET 2.0 web service, and you try to host it on your IIS [IIS 6.0], if you have an issue saying “Parse Error” for your web service. Here is solution for you.
When you created a virtual directory for your web service, and try to browse, you will get this view.
But when you try to click at the “Service.asmx”, it prompted you “Parse Error”, saying Could not create type “Service”.
This is how you can resolve it:
1. First, right-click at the virtual directory, and select “Properties”.
2. Click “ASP.NET” tab, under the ASP.NET version drop down list, select “2.0.50722″
Try to browse the service again, and you will see the list of methods you have in your web service.
Hope this solution helps to solve your problem.
Entry Filed under: Developer Technologies, How To?, Tips & Tricks, Visual Studio 2008. Tags: ASP.NET web service, Parse Error.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed