|
I have a solution that contains an ASP.NET web service that uses WSE 3.0. It also uses a custom UsernameTokenManager. The application compiles and runs properly. However, when I attempt to open an Application Diagram, Visual Studio locks the diagram and displays the following error:
Application definition MyWebService is locked because there is an error in C:\MySolution\MyWebService.web.config. WSE040: Type MyProject.MyUsernameTokenManager, MyProject could not be loaded. Please check the configuration file.
The configuration file is correct, since the application works fine, and has worked fine for a long time. The web.config lines in question are:
<microsoft.web.services3> <security> <securityTokenManager> <add type="MyProject.MyUsernameTokenManager, MyProject" namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" localName="UsernameToken"/> </securityTokenManager> </security> </microsoft.web.services3>
The custom UsernameTokenManager is contained in a class library and the web service project has a project reference to the class library. The assembly exists in the web service bin folder; like I said, the application runs just fine. The only time there is a problem loading is when I try to open an Application Diagram.
Any ideas?
Oh, I should mention that WSE 3.0 is installed. |