Groups > Asp .Net > VS 2005 Web Application Projects > Re: Cannot add Web Reference to Web Application Project




Cannot add Web Reference to Web Application Project

Cannot add Web Reference to Web Application Project
Thu, 14 Feb 2008 15:49:53 +000
Hi,

I just created a simple web service in my application project and wanted to add
it to the web reference but get this error as below. This is pretty weird as its
a simple WAP and web service. Any ideas?

Parser Error Message: Could not create type 'WebApplication1.WebService1'.
Line 1:  <%@ WebService Language="C#"
CodeBehind="WebService1.asmx.cs"
Class="WebApplication1.WebService1" %>

Thank You.
Post Reply
Re: Cannot add Web Reference to Web Application Project
Thu, 14 Feb 2008 16:11:01 +000
Make sure you configure your project to run ASP.NET version 2.0 from IIS ==>
ASP.NET configuration
Post Reply
Re: Cannot add Web Reference to Web Application Project
Thu, 14 Feb 2008 16:53:45 +000
I have not even build the application and my IIS is already set as default to
2.0.
Post Reply
Re: Cannot add Web Reference to Web Application Project
Thu, 14 Feb 2008 18:33:27 +000
Its working now. I had to first build the project and then add the web
reference.
Post Reply
about | contact