Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Have asp.net-hosted WinControl write to client's file.

Reply
Thread Tools

Have asp.net-hosted WinControl write to client's file.

 
 
=?Utf-8?B?TWFyaw==?=
Guest
Posts: n/a
 
      04-27-2005
Hello,
I know that you can host a WinControl in ASP.Net. If I want my Windows User
Control to be able to write to the client's file system (or access a
database, or any other secure action), how could I configure security to
allow this? I thought Caspol.exe or the .Net Config Wizards could do this,
but I don't see how.

I get the error: "The application attempted to perform an operation not
allowed by the security policy. The operation required the
SecurityException... System.Security.Permissions.FileIOPermission..."

I've tried (none work):
- using Declarative security in the code, i.e. put the attribute on the
appropriate method:
[Permissions.FileIOPermission(Permissions.SecurityA ction.Assert)]
- Use .Net Configuration Wizard > RuntimeSecurityPolicy > Machine >
CodeGroups. I gave the codegroup the Url to match the page with the
WinControl.
- switching the machine.config's process model username to system (more
priviledge).
- setting security in IE.

I've googled on the error and looked at MSDN, and see much stuff for apps
run over a network share, but still don't see a solution for an
asp.net-hosted winControl.

Thanks for any insight.
Mark
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you write JavaScript in document.write and have it workproperly? Frank Peterson Javascript 9 06-28-2009 03:43 AM
Have asp.net-hosted WinControl write to client Mark ASP .Net Security 2 05-05-2005 03:08 AM
Questions about embedded winControl A Lonely Programmer ASP .Net Building Controls 1 03-04-2004 01:44 AM
Embedded winControl A Lonely Programmer ASP .Net Building Controls 1 02-20-2004 01:59 PM
wincontrol question...Please help =( A Lonely Programmer ASP .Net 0 02-20-2004 01:12 PM



Advertisments