SOS! We need help!
We have the following situation:
1. We have Single form ASPX files (due to some requirements, we can not have regular web form project) with default language as C#.
2. These files have to make calls to Web services
3. We have created WSDL proxy class file and including it in the ASPX files.
4. Since it is single form ASPX file, we can not use USING; hence we are removing the references the proxy class has by default.
5. In the code, we define an object of the proxy class to make appropriate calls to the web service.
6. Now, on win2k and Win 2003 servers, these calls run without any problems. HOWEVER, on win 2003 with SP1, we get the following error at the constructor of the Proxy class.
Unable to generate a temporary class (result=1). error CS0011: Referenced class 'ASP.Default_aspx' has base class or interface 'System.Web.UI.Page' defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web'. error CS0011: Referenced class 'ASP.Default_aspx' has base class or interface 'System.Web.SessionState.IRequiresSessionState' defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web'
AND IT POINTS TO CONSTRUCTOR OF THE PROXY CLASS (thats the place where proxy class defines the WS URL).
We know it has to do with references that we removed from the original proxy class. We tried to include these references in web.config file wih no avail.
Kindly let us know if you know how to resolve this!