I have a C# website running in IIS. I have few .cs files under the directory App_code. I am able to refer them in all *.aspx.cs and *.ascx.cs files. I do not have Visual studio and I need to make my changes manually.
I now need to consume a web service in .aspx.cs file. I generated a proxy class using wsdl.exe and placed it under App_code directory. But I am not able to refer to the file in my aspx.cs file. I get the error
Compiler Error Message: CS0246: The type or namespace name 'TestSearchProxy' could not be found (are you missing a using directive or an assembly reference?)
The proxy doesnt have any namespace defined and I am assuming that it is the default namespace. I haven't added any "using *" in the aspx.cs fiile.
Can someone help me on how to resolve this issue?
Another approach I tried is :
I generated a dll from the proxy file using csc command and placed the dll under bin directory. I am still unable to access the proxy class.
msbuild /t:Build <name>.csproj