The message sent to the browser is as follows:
The type My.API.Class is ambiguous: it can be obtained from the assembly '[on temporary ASP.NET files]' or from the assembly '[in the bin folder]'
The problem occurs when debugging a web application, especially when accessing WebMethod WebService.
The project is running correctly. He creates My.Website.dll in the bin folder and published the web application. It works great.
The asmx file is at the root of the application. The CodeBehind file is located on App_Code and is marked for compilation to create My.Website.dll.
I need to miss something really important.
I found that someone has the same problem with a possible related cause. Check it out . The way this person reveals his problem is somehow similar, but I start to get lost when he talks about the proxy class and common DLLs that I do not use.
Any help is appreciated.
source
share