PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
No Touch Deploy creating EMF's problem
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
No Touch Deploy creating EMF's problem
![]() |
No Touch Deploy creating EMF's problem |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
BTW, I have tried creating the HDC for the emf both from a picturbox and
from bitmap object. Neither works. TIA, Paul |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > > > > > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 > > > > > > > > > > > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


