RE: WSE 3.0 UsernameToken in COM+ to Web Service
- From: wawang@xxxxxxxxxxxxxxxxxxxx ("Walter Wang [MSFT]")
- Date: Wed, 26 Sep 2007 07:54:45 GMT
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi BigJohn,
\par
\par Based on my understanding, you've created a class library in VB.NET 2005 and registered for com interop and it will be used by your VB6 code. You created app.config for the VB.NET 2005 class library project to configure the WSE 3 related settings. You found the added policy name is not found when VB6 code called the VB.NET 2005 component. Please feel free to correct me if I've misunderstood anything.
\par
\par First, the app.config is not used by the compiled class library (.dll). In other words, although the app.config is copied to the output directory and named as the .dll but with .dll.config extension, it's not used by .NET at run-time. This is because .NET configuration file is used per AppDomain and by default it will only use the .exe.config with the main application.
\par
\par You can verify this by creating a simple Console project in .NET and add reference to your class library, then copy the app.config into the Console project and see if it works.
\par
\par On the other hand, I understand that you need to make the config file work with your class library project when called by VB6 code. I will do some further research to see how to make this work. I'll keep you posted. Please feel free to let me know if you have any questions or concerns. Thanks.
\par
\par
\par Regards,
\par Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
\par Microsoft Online Community Support
\par
\par ==================================================
\par When responding to posts, please "Reply to Group" via your newsreader so
\par that others may learn and benefit from your issue.
\par ==================================================
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
- Prev by Date: How do you view the SoapEnvelope xml?
- Next by Date: RE: UsernameToken throws configuration error
- Previous by thread: How do you view the SoapEnvelope xml?
- Next by thread: RE: WSE 3.0 UsernameToken in COM+ to Web Service
- Index(es):
Relevant Pages
|
Loading