I get a SecurityException. All it says for the message is "Security
Exception". I finally tried using CASPOL to disable security, and it seems
to work. I just don't understand why the WSE Web Service instance required
"Martin Kulov" <kulov@bezbokluk.abv.bg> wrote in message
news:ur3S23hBFHA.1004@TK2MSFTNGP15.phx.gbl...
> Hi Ken,
>
> What is your exception?
> I think you should use the Wse version of the proxy class i.e.
> MyWSEServiceWse class.
>
>
> --
> Martin Kulov
>
http://www.codeattest.com >
> MCAD Charter Member
> MCSD.NET Early Achiever
> MCSD
>
>
>
>
> "Ken Varn" <nospam> wrote in message
> news:eqctDXVBFHA.2180@TK2MSFTNGP12.phx.gbl...
> > I created a sample WSE Service using the DIME image example in the WSE
> SDK.
> > I am basically trying to send an image using DIME attachments.
> >
> > I am calling the web service from a Win Form control that I have
embedded
> in
> > an ASP.NET web form. For some reason, when I try to instantiate the WSE
> > Service using new, I get a SecurityException thrown. I am trying to do
> this
> > on my localhost.
> >
> > Example:
> >
> > private void MyFunc()
> > {
> > MyWSEService Serv;
> >
> > Serv = new MyWSEService(); // Exception thrown here.
> > }
> >
> > If I just instantiate the service without WSE extensions, it works fine.
> >
> > Can someone tell me what I need to do to get this exception to go away?
> >
> >
> >
> > --
> > -----------------------------------
> > Ken Varn
> > Senior Software Engineer
> > Diebold Inc.
> >
> > EmailID = varnk
> > Domain = Diebold.com
> > -----------------------------------
> >
> >
>