473,804 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
SecurityExcepti on... System.Security .Permissions.Fi leIOPermission. .."

I've tried (none work):
- using Declarative security in the code, i.e. put the attribute on the
appropriate method:
[Permissions.Fil eIOPermission(P ermissions.Secu rityAction.Asse rt)]
- Use .Net Configuration Wizard > RuntimeSecurity Policy > 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 957

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

Similar topics

3
4049
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
27399
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 VB.7 ?? Regards Arie
2
2263
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 more components that require 1.1. I don't want to use the command line compilers... thanks, -Stan
0
2609
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 fails when I compile the script with PerlApp and run it. My system is Windows 2000, ActiveState Perl 5.8.0 build 806, PerlApp 5.2.0 build 520. Here is the script:
5
4723
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 via code, add tables, or add columns to existing databases and so on. I'm hoping somebody has learned to do this and will tell me how to use the framework to do so. --
9
3289
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
3329
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 question, when i writte a application in dot net with mfc of
3
16548
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 server is not running ASP .NET version !.1. You will be unable to run ASP.NET web application or services." FYI, I got Microsoft .NET framework version 1.0 and version 1.1 installed in my PC.
3
2161
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
319
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
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10599
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.