> I have a usernameToken in a VB .Net 2005 Class configured for COM interface
> for a VB6 EXE. The VB6 to COM works fine, but the addition of a Proxy is not
> found.
>
> The error I keep getting is:
> Specified argument was out of the range of valid values.
> Parameter name: Policy 'REVSCOMPolicy' is not configured in the system
>
>
> The other entries I have read reference the Policy names not matching in the
> Config files but are specific to ASP.Net and Forms applications but do not
> address COM.
>
> Suggestions?
>
>
> COM Code:
> Dim wsREVS As New REVS_WS.ServiceWse
> Dim wsToken As New Tokens.UsernameToken(strID, strPSW,
> PasswordOption.SendPlainText)
>
> Try
> wsREVS.SetClientCredential(wsToken)
> wsREVS.SetPolicy("REVSCOMPolicy")
>
>
> app.Config File
> <microsoft.web.services3>
> <policy fileName="wse3policyCache.config" />
> </microsoft.web.services3>
>
>
> WSE3Policy.config File
> <policies xmlns="
http://schemas.microsoft.com/wse/2005/06/policy"> > <extensions>
> <extension name="usernameOverTransportSecurity"
> type="Microsoft.Web.Services3.Design.UsernameOverTransportAssertion,
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" />
> <extension name="requireActionHeader"
> type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" />
> </extensions>
> <policy name="REVSCOMPolicy">
> <usernameOverTransportSecurity />
> <requireActionHeader />
> </policy>
> </policies>
>
I would like to use a sample application with Vb.Net using the UserToken. i tried to download the example from internet but it alwys fails at X.05 certificate not avialable. Can any one please help in with a sample project using UserToken.
My client application is Vb.Net desktop application.
Thanks in advance.
Hope some one will respond to this post.