Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Have WinControl write to client's file.

Posts: n/a
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
- switching the machine.config's process model username to system (more
- 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 winControl.

Thanks for any insight.
Reply With Quote

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