473,770 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SecurityExcepti on when calling DLL while using a UNC share

Hello-

Platform:
- web server using IIS 6 connecting to UNC share on separate file
server
- Both servers are Windows 2003 with dotNetFramework 2.0
General:
- basic ASP.NET pages work fine in this situation
- However, if I'm calling a DLL (located in the bin directory), I get
the following error:
Error:
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the
required permission please contact your system administrator or change
the application's trust level in the configuration file.

Exception Details: System.Security .SecurityExcept ion: Request for the
permission of type 'System.Web.Asp NetHostingPermi ssion, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9'
failed.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

_________

The Event Log shows the following:

Source: ASP.NET 2.0.50727.0
Event Id: 1310

Event code: 3008
Event message: A configuration error has occurred.
Event sequence: 11
Event occurrence: 5
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2908527797/Root/
forms-6-128231063458178 510
Trust level: Full
Application Virtual Path: /forms
Application Path: \\servername\sh are\webapp\fold er\

Process information:
Process ID: 2752
Process name: w3wp.exe
Account name: domain\IWAM_WEB

Exception information:
Exception type: ConfigurationEr rorsException
Exception message: Request for the permission of type
'System.Web.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed. (\\servername
\share\webapp\f older\web.confi g line 18)

Request information:
Request URL: http://www.domain.com/folder/filename.aspx
Request path: /folder/filename.aspx
User:
Is authenticated: False
Authentication Type:
Thread account name: domain\IWAM_WEB

_________
Appropriate code (and source of error) in web.config:
<httpHandlers >
<add verb="GET" path="filename. aspx"
type="WebContro lCaptcha.Captch aImageHandler, WebControlCaptc ha"/>
</httpHandlers>

_________

The Event Log seems to confirm I have a full trust to the UNC on the
file server. However, I'm not using impersonation. (Is this needed?)

This application works fine in a single-server testing environment,
(with no UNC share). Your help is greatly appreciated.

Steve

May 9 '07 #1
0 2101

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

Similar topics

1
1804
by: Zak Taemur | last post by:
Whenever I try to run my application I get the following error: "An unhandled exception of type 'System.Security.SecurityException' occured in WorkFlow-Projects.exe Additional information: Request failed" I have my project files on a network share drive on our
2
7071
by: David Lindgren | last post by:
Hello! When I am trying to run my .NET application from a network drive a System.Security.SecurityException exception is thrown. Why is that? How do I prevent it? Thanks! /David.
0
1548
by: Brian A | last post by:
I have code that calls some Win32 code. My library is accessed via remoting from a client. In version 1.0 of the framework I had no problems. With 1.1 I consitently get the securityException: An unhandled exception of type 'System.Security.SecurityException' occurred in myfile.dll Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral,...
1
4451
by: edge | last post by:
hi, here it is my problem. My console app, reads a text file where it grabs username/password. Next, my app creates a .BAT file to trigger the command ftp:\\user:password@ftphomeaddress. Then, I use Process() to start the batch. In my local machine, the app runs just fine. But the users
2
4229
by: jwgoerlich | last post by:
I wrote a simple VB.Net console application. It accepts command line parameters and creates a folder structure. It works on the local file system without a problem If I run the console app from a UNC or network share, I get a SecurityException on the following line: Dim args() As String = Environment.GetCommandLineArgs() Has anyone seen this before? Is there something special I need to do
2
2989
by: Jason | last post by:
I have written a VB app using the RS323.vb code from the VB resource kit. When I try to run the code from a network drive I get a securityexception error. If I copy the file to the local c drive it works perfectly. I have seen posts that say the best thing to do is change the runtime security policys on the PCs. I would rather code the program so I don't have to change the security policy at all. I have seen a few examples of permission...
0
1090
by: José Nunes | last post by:
Hi, I'm developing a Windows Control Library to use as Smart Client in a ASP.NET application and one of the tasks of my custom control is call a WebService. So, when i try to call the WebService using my control through the IE, i get this exception: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral,...
1
1581
by: Phillip Taylor | last post by:
Hi The Visual Basic 2003 application that I wrote was installed on Windows 2003 Server and we are trying to acess it across the network from Windows XP Pro but we are getting An Exception System.Security.SecurityException has accured when we try and run it. The application is a Executable the network administrator do not want to add the application to the .Net Wizard Trust because they fear that it will open up a bunch of security...
4
2330
by: =?iso-8859-1?q?Eir=EDkur_Fannar_Torfason?= | last post by:
I'm wrestling with a problem that I'm hoping someone can help me with. I have a web application written in VS.2003 and running on version 1.1 of the .NET Framework on XP pro and Windows server 2003 that connects to a SQL server database and authenticates itself using windows authentication. The web application is configured to impersonate a local user account that has been granted access to the database. Here's the impersonation snip...
0
9618
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
9454
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
10259
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...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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
8933
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
7456
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...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.