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.

image

But when you try to click at the “Service.asmx”, it prompted you “Parse Error”, saying Could not create type “Service”.

image

This is how you can resolve it:

1. First, right-click at the virtual directory, and select “Properties”.

image

2. Click “ASP.NET” tab, under the ASP.NET version drop down list, select “2.0.50722″

image

Try to browse the service again, and you will see the list of methods you have in your web service.

image

Hope this solution helps to solve your problem.

Entry Filed under: Developer Technologies, How To?, Tips & Tricks, Visual Studio 2008. Tags: , .

Leave a Comment

Required

Required, hidden

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


Links

Tags

Archives