RE: WSE 3.0 UsernameToken in COM+ to Web Service



{\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 }

Relevant Pages

  • ClientPOST Sample code wont run in Console
    ... System.Web.dll and manually added the reference to my ... to HttpUtility and I got it to compile. ... >apparently is designed to run in a Console project. ... >System.Web does not contain the HTTPUtility class as ...
    (microsoft.public.vsnet.general)
  • Re: VC++ 7.1 annoying bug?
    ... I've used a Form in a console project. ... > reference in Solution Explorer/References did the trick, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: C Sharp Console in VS2008 Adding Reference not generating Proxy
    ... New VS 2008 Console project ... Add Reference on solution explorer ... Proxies are not generated, only a Reference entry with a globe icon ... should be able to see the .cs file with the proxy. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: running a console project from within a windows project
    ... > I have a console project that communicates to a site via FTP. ... > a windows application that uses a text box to capture a file name and a ... > pushed on the windows application? ... I tried to reference the project but ...
    (microsoft.public.dotnet.languages.vb)

Loading