index > Visual Studio Team System - Architects > Application Diagram problem with WSE 3.0

Application Diagram problem with WSE 3.0


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.

JohnGray

Hi John,

This sounds like another instance of the problem described at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=739843&SiteID=1. Please try the workaround detailed in that post and let me know if it works or not.

Regards,

Ian Bavey Lead Software Development Engineer

Team Architect

Ian Bavey

I tried the workaround and it didn't make any difference. This line was already in my web.config:

<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

I copied the Microsoft.Web.Services3.dll into PrivateAssemblies; is there something else I should do? Right now I have to comment out the <securityTokenManager> in order to work with the diagrams.

Thanks!

JohnGray

Hi John,

I tried installing WSE 3.0 on my machine and added the same section to a config file but can still open an Application Designer. On my machine Microsoft.Web.Services3.dll is installed in the GAC. Is that also true on your machine? What install options did you use when installing WSE 3.0? I chose Visual Studio Developer.

Is it possible that you could forward a more complete snippet of your config file so that I can debug further as it's possible there are some other interactions going on that I don't have visibility into.

Ian

Ian Bavey

Hi Ian,

Microsoft.Web.Service3.dll is in the GAC on my machine as well. I installed WSE 3.0 as Visual Studio Developer. WSE works just fine, the only time I have a problem is using the system/application designers. If I comment out the custom username token manager from the web.config then the designers work, but that's not a practical workaround. Here is my web.config, thanks for your help:

<?xml version="1.0"?>
<configuration
>
<
configSections
>
<
section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
configSections
>
<
system.web
>
<
webServices
>
<
soapExtensionImporterTypes
>
<
add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
soapExtensionImporterTypes
>
<
wsdlHelpGenerator href=""
/>
<
soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</
webServices
>
<
compilation debug="true"
>
<
assemblies
>
<
add assembly="Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
</
assemblies
>
</
compilation
>
<
identity impersonate="true"></identity
>
</
system.web
>
<
microsoft.web.services3
>
<
policy fileName="wse3policyCache.config"
/>
<
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
>
</
configuration>

JohnGray

Hi John,

I'm seeing the same problem now. You should be able to fix it by repeating the workaround described earlier for MyProject.dll. Please let me know if this fixes the issue for you.

Thanks,

Ian

Ian Bavey
reply 6

You can use google to search for other answers

 

More Articles

PowerToys for the Visual Studio 2005 Class Designer and Distribut...
SDM and WebProject
How to implement database size constraint in business logic
Problem with UnitofWork
Latest Distributed System Designers
Deployment attribute : System Designer
Mobile Distributed Application in Application Diagram
DevConnection.ProviderPort ??inconsistent behavior
Best Practices for Collaborating on Diagrams
Logical Datacenter
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

CustomEndpoint
Individual Website settings versus Defau…
where do newbies ask questions?
add a new ditributed system Diagram from…
Windows Communication Foundation Support
Reverse Engineer and Sequence Diagram
Issue installing Visio for Enterprise Ar…
biztalk message problem
Cannot See the Distributed System Design…
Designing n-tier application in Architec…
how to create package diagram in vs 2005…
Reengineering Migrated Applications
shared types in the distributed system d…
SDM - FTP Endpoint tutorial
Constraint error when restricting zone t…

Hot Articles

Application/System Designer question
Application Diagram: Windows Service
N-Tier application in Application Design…
Application types
GenericApplication and GenericEndPoint
Adaptive Object Modelling
application designer - generic application
automatic data generation tool
Using Incubation and Bootstrapping in Ar…
VSTS Architects - how can I unit test?
permisson error trying to implement an w…
Problems with dots in the name of projects
SDM and WebProject
Deployment attribute : System Designer
Application locked - error creating conf…

Recommend Articles

DevConnection.ProviderPort ??inconsisten…
Error trying to add a new port to a cust…
Representing external non-WSDL Web Servi…
Correct values for Platform property in …
Sequence Diagram
Application Designer Error
Best Practices for Collaborating on Diag…
VSTS Architects - how can I unit test?
SDM Model
where do newbies ask questions?
Extending Application Designer
New System definition using SDM SDK
Satellite Assembly
SystemDefinitionModel and Databases
Constraint error when restricting zone t…