473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
Nov 19 '05 #1
0 942

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
15
by: Arie Kanarie | last post by:
Hello, I want to start with learning VB for my work. I'm a Industrial Automation engineer and i want to know what the difference is between VB6 and VB.NET. Is VB.NET just an anaother word for...
2
by: Stan | last post by:
Is it possible to use VS.NET 2002 to compile for .NET Framework 1.1? I know that VS.NET 2003 would do that and I can install VS.NET 2002 and 2003 but we don't have 2003 yet and there is more and...
0
by: Eric McDaniel | last post by:
This may be a question for ActiveState support, but just in case anyone out there knows what the problem is... My call to Net::POP3->new() works fine when run through the perl interpreter, but...
5
by: clintonG | last post by:
Is the functionality we had available via ActiveX Data Objects Extensions also available to us when using the .NET Framework? I'm interested in learning what I need to learn to develop a database...
9
by: Allan Wong | last post by:
What are the under-lying DLLs or libraries that .NET is sitting on which after installing another program will cause the entire .NET Framework to fail?
3
by: robert | last post by:
Hi everyone, I have a little question. In Visual studio 6 the MFC is based under API WIN 32. In dot net, the MFC of dot net, are based on API of dot net or on API WIN 32? And my last...
3
by: Chery | last post by:
I've Win XP Pro installed in my PC. when i want to create a new web application using Visual Basic .Net 2003, I got the following error : "Visual Studio .Net has detected that the specified web...
3
by: | last post by:
May I ask if you can explain what is ".NET" ? How it effect programmers in general and C++ programmers in particular ? How (or if) it effect Windows and Linux popularity ?
7
by: tony | last post by:
Hi Any one know that can VS.net 2005 with vs.net 2003 worked together in one manchine? if it can working together, how can I set up it? Thanks Tony
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.