No Touch Deploy creating EMF's problem

P

Paul Hetherington

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,
 
P

Paul Hetherington

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

TIA,
Paul
 
B

Ben S. Stahlhood II

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
 
P

Paul Hetherington

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 said:
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


message news:[email protected]...
 
B

Ben S. Stahlhood II

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 said:
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:%[email protected]...
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
 
P

Paul Hetherington

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top