PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms No Touch Deploy creating EMF's problem

Reply

No Touch Deploy creating EMF's problem

 
Thread Tools Rate Thread
Old 21-01-2004, 12:00 AM   #1
Paul Hetherington
Guest
 
Posts: n/a
Default No Touch Deploy creating EMF's problem


Hi,

I have a No Touch Deploy application that I want to create and EMF File and
serialize it back to the Server via Web Services.
When I test the client application running from a local directory
(MyComputer zone) it works fine. But when I launch with NTD from my web
server I get a Security Exception in the CTOR of the emf. Is there anyway
around this. I have tried several of the different CTORs available and the
all have thrown the exception. It doesn't make sense that Creating a
metafile would be a security violation. I am using the CTORs with a Memory
Stream for saving to, so it isn't a FileIO Security issue.

Thank You,
--
Paul


  Reply With Quote
Old 21-01-2004, 12:14 AM   #2
Paul Hetherington
Guest
 
Posts: n/a
Default Re: No Touch Deploy creating EMF's problem

BTW, I have tried creating the HDC for the emf both from a picturbox and
from bitmap object. Neither works.

TIA,
Paul


  Reply With Quote
Old 23-01-2004, 04:38 AM   #3
Ben S. Stahlhood II
Guest
 
Posts: n/a
Default Re: No Touch Deploy creating EMF's problem

Paul,

Have you tried using an Isolated Storage stream? You can then read it into
a byte[] and that can be serialized over to a Webservice... Do not know if
this helps or not, just trying to think of other ideas.

Take care,
Ben S. Stahlhood II


"Paul Hetherington" <pNhOetShPeArMington@vNiOsSuPaAlMstatement.com> wrote in
message news:Ok6ENG73DHA.1636@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have a No Touch Deploy application that I want to create and EMF File

and
> serialize it back to the Server via Web Services.
> When I test the client application running from a local directory
> (MyComputer zone) it works fine. But when I launch with NTD from my web
> server I get a Security Exception in the CTOR of the emf. Is there anyway
> around this. I have tried several of the different CTORs available and the
> all have thrown the exception. It doesn't make sense that Creating a
> metafile would be a security violation. I am using the CTORs with a

Memory
> Stream for saving to, so it isn't a FileIO Security issue.
>
> Thank You,
> --
> Paul
>
>



  Reply With Quote
Old 23-01-2004, 04:15 PM   #4
Paul Hetherington
Guest
 
Posts: n/a
Default Re: No Touch Deploy creating EMF's problem

Ben,
I thought of that method, but with Low Trust settings (default for Internet)
you are only allowed access to 10kb of Isolated Storage space.
Which is pretty much useless. My Emf's are also bigger than that
Thanks for the suggestion though.

Thanks,
Paul

"Ben S. Stahlhood II" <ben[.dot.]stahlhood[.at.]intellified[.dot.]com> wrote
in message news:%23XRj6qW4DHA.3436@tk2msftngp13.phx.gbl...
> Paul,
>
> Have you tried using an Isolated Storage stream? You can then read it

into
> a byte[] and that can be serialized over to a Webservice... Do not know

if
> this helps or not, just trying to think of other ideas.
>
> Take care,
> Ben S. Stahlhood II
>
>
> "Paul Hetherington" <pNhOetShPeArMington@vNiOsSuPaAlMstatement.com> wrote

in
> message news:Ok6ENG73DHA.1636@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > I have a No Touch Deploy application that I want to create and EMF File

> and
> > serialize it back to the Server via Web Services.
> > When I test the client application running from a local directory
> > (MyComputer zone) it works fine. But when I launch with NTD from my web
> > server I get a Security Exception in the CTOR of the emf. Is there

anyway
> > around this. I have tried several of the different CTORs available and

the
> > all have thrown the exception. It doesn't make sense that Creating a
> > metafile would be a security violation. I am using the CTORs with a

> Memory
> > Stream for saving to, so it isn't a FileIO Security issue.
> >
> > Thank You,
> > --
> > Paul
> >
> >

>
>



  Reply With Quote
Old 23-01-2004, 09:03 PM   #5
Ben S. Stahlhood II
Guest
 
Posts: n/a
Default Re: No Touch Deploy creating EMF's problem

Paul,

Duh.. I totally forgot about the space limitation. Sorry for the brain
fart suggestion. I hope you figure it out, if I come across anything I will
post it.

Regard,
Ben S. Stahlhood II


"Paul Hetherington" <pNhOetShPeArMington@vNiOsSuPaAlMstatement.com> wrote in
message news:ug1Bcwc4DHA.1816@TK2MSFTNGP12.phx.gbl...
> Ben,
> I thought of that method, but with Low Trust settings (default for

Internet)
> you are only allowed access to 10kb of Isolated Storage space.
> Which is pretty much useless. My Emf's are also bigger than that
> Thanks for the suggestion though.
>
> Thanks,
> Paul
>
> "Ben S. Stahlhood II" <ben[.dot.]stahlhood[.at.]intellified[.dot.]com>

wrote
> in message news:%23XRj6qW4DHA.3436@tk2msftngp13.phx.gbl...
> > Paul,
> >
> > Have you tried using an Isolated Storage stream? You can then read it

> into
> > a byte[] and that can be serialized over to a Webservice... Do not know

> if
> > this helps or not, just trying to think of other ideas.
> >
> > Take care,
> > Ben S. Stahlhood II
> >
> >
> > "Paul Hetherington" <pNhOetShPeArMington@vNiOsSuPaAlMstatement.com>

wrote
> in
> > message news:Ok6ENG73DHA.1636@TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > >
> > > I have a No Touch Deploy application that I want to create and EMF

File
> > and
> > > serialize it back to the Server via Web Services.
> > > When I test the client application running from a local directory
> > > (MyComputer zone) it works fine. But when I launch with NTD from my

web
> > > server I get a Security Exception in the CTOR of the emf. Is there

> anyway
> > > around this. I have tried several of the different CTORs available and

> the
> > > all have thrown the exception. It doesn't make sense that Creating a
> > > metafile would be a security violation. I am using the CTORs with a

> > Memory
> > > Stream for saving to, so it isn't a FileIO Security issue.
> > >
> > > Thank You,
> > > --
> > > Paul
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 23-01-2004, 09:43 PM   #6
Paul Hetherington
Guest
 
Posts: n/a
Default Re: No Touch Deploy creating EMF's problem

Hi Ben,
Thank you for the consideration.
I have been unable to find another way around it yet. If I do figure
something out I will post the solution.

Cheers,
Paul


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off