473,749 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security Exception Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET Version:2.0.507 27.42

Hello,

I am struggling with a website on a W2K3 server which has the actual
content on a NAS server (also W2K3 based). The servers doesn't run in a
domain and arent intended to.

I did make the web space on the W2K3 IIS Server and pointed it to the
NAS server via an UNC path (no virtual directory).

When I place the content on the IIS, everything works fine, but when I
want to use the content on the NAS, I get the following error message
in my IE :

Server Error in '/' Application.
--------------------------------------------------------------------------------

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.
Stack Trace:
[SecurityExcepti on: Request for the permission of type
'System.Web.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.]
System.Reflecti on.Assembly.Get Type(String name, Boolean
throwOnError, Boolean ignoreCase) +0
System.Web.UI.U til.GetTypeFrom Assemblies(ICol lection assemblies,
String typeName, Boolean ignoreCase) +140
System.Web.UI.T emplateParser.G etType(String typeName, Boolean
ignoreCase, Boolean throwOnError) +295
System.Web.UI.T emplateParser.P rocessInheritsA ttribute(String
baseTypeName, String codeFileBaseTyp eName, String src, Assembly
assembly) +163

System.Web.UI.T emplateParser.P ostProcessMainD irectiveAttribu tes(IDictionary
parseData) +192


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42

My Event Log tells me :

Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 8/18/2006 4:47:59 PM
Event time (UTC): 8/18/2006 2:47:59 PM
Event ID: 39b77da5032a40a 4ae4f3490228b47 c6
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1542597267/Root-4-128003860780000 000
Trust level: Full
Application Virtual Path: /
Application Path: \\bullseye\Webs ites\www.digitalnews.nl\
Machine name: SEASPIKE

Process information:
Process ID: 608
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWO RK SERVICE

Request information:
Request URL: http://www.digitalnews.nl/Default.aspx
Request path: /Default.aspx
User host address: 192.168.150.20
User:
Is authenticated: False
Authentication Type:
Thread account name: SEASPIKE\IIS_Se rver

Custom event details:

For more information, see Help and Support Center at

Anyone an idea what could be wrong and how I can solve it ?
Help would be very much appreciated ! Thank you !

Regards,

Ferry Wenning
we*****@kvsa.nl

Aug 18 '06 #1
5 7772
by default the asp.net system account does not have network access, so unc
shares are not allowed. yu need to change the machine account to one that
has network access. also because you code will be runing from a share, it
run in a sandbox with restricted access. you will probably need to make the
share trusted.

-- bruce (sqlwork.com)
<we*****@kvsa.n lwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Hello,

I am struggling with a website on a W2K3 server which has the actual
content on a NAS server (also W2K3 based). The servers doesn't run in a
domain and arent intended to.

I did make the web space on the W2K3 IIS Server and pointed it to the
NAS server via an UNC path (no virtual directory).

When I place the content on the IIS, everything works fine, but when I
want to use the content on the NAS, I get the following error message
in my IE :

Server Error in '/' Application.
--------------------------------------------------------------------------------

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.
Stack Trace:
[SecurityExcepti on: Request for the permission of type
'System.Web.Asp NetHostingPermi ssion, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.]
System.Reflecti on.Assembly.Get Type(String name, Boolean
throwOnError, Boolean ignoreCase) +0
System.Web.UI.U til.GetTypeFrom Assemblies(ICol lection assemblies,
String typeName, Boolean ignoreCase) +140
System.Web.UI.T emplateParser.G etType(String typeName, Boolean
ignoreCase, Boolean throwOnError) +295
System.Web.UI.T emplateParser.P rocessInheritsA ttribute(String
baseTypeName, String codeFileBaseTyp eName, String src, Assembly
assembly) +163

System.Web.UI.T emplateParser.P ostProcessMainD irectiveAttribu tes(IDictionary
parseData) +192


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42

My Event Log tells me :

Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 8/18/2006 4:47:59 PM
Event time (UTC): 8/18/2006 2:47:59 PM
Event ID: 39b77da5032a40a 4ae4f3490228b47 c6
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1542597267/Root-4-128003860780000 000
Trust level: Full
Application Virtual Path: /
Application Path: \\bullseye\Webs ites\www.digitalnews.nl\
Machine name: SEASPIKE

Process information:
Process ID: 608
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWO RK SERVICE

Request information:
Request URL: http://www.digitalnews.nl/Default.aspx
Request path: /Default.aspx
User host address: 192.168.150.20
User:
Is authenticated: False
Authentication Type:
Thread account name: SEASPIKE\IIS_Se rver

Custom event details:

For more information, see Help and Support Center at

Anyone an idea what could be wrong and how I can solve it ?
Help would be very much appreciated ! Thank you !

Regards,

Ferry Wenning
we*****@kvsa.nl

Aug 18 '06 #2
After fighting and reading for two hours, Here's my fix.

On IIS 6.0 , the website in question, the Home Directory needs to be a
directory located on this computer, not a UNC name ( or a share located
on another comptuer). Yes, it can still be a shared folder, but the
location needs to be drive:\folder

With half my hair missing,

Rob

bruce barker (sqlwork.com) wrote:
by default the asp.net system account does not have network access, so unc
shares are not allowed. yu need to change the machine account to one that
has network access. also because you code will be runing from a share, it
run in a sandbox with restricted access. you will probably need to make the
share trusted.

-- bruce (sqlwork.com)
Aug 21 '06 #3
After fighting and reading for two hours, Here's my fix.

On IIS 6.0 , the website in question, the Home Directory needs to be a
directory located on this computer, not a UNC name ( or a share located
on another comptuer). Yes, it can still be a shared folder, but the
location needs to be drive:\folder

With half my hair missing,

Rob

bruce barker (sqlwork.com) wrote:
by default the asp.net system account does not have network access, so unc
shares are not allowed. yu need to change the machine account to one that
has network access. also because you code will be runing from a share, it
run in a sandbox with restricted access. you will probably need to make the
share trusted.

-- bruce (sqlwork.com)
Aug 21 '06 #4
After fighting and reading for two hours, Here's my fix.

On IIS 6.0 , the website in question, the Home Directory needs to be a
directory located on this computer, not a UNC name ( or a share located
on another comptuer). Yes, it can still be a shared folder, but the
location needs to be drive:\folder

With half my hair missing,

Rob

bruce barker (sqlwork.com) wrote:
by default the asp.net system account does not have network access, so unc
shares are not allowed. yu need to change the machine account to one that
has network access. also because you code will be runing from a share, it
run in a sandbox with restricted access. you will probably need to make the
share trusted.

-- bruce (sqlwork.com)
Aug 21 '06 #5
Hi,

Thank you for submitting your tips and tricks.
It did the job, everything is working properly now !

Regards,

Ferry Wenning

Aug 23 '06 #6

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

Similar topics

1
3392
by: SQLJunkie | last post by:
Hi, I have installed SQL 2005 RTM on a new server and I keep getting this error (described below) quite frequently. Was wondering if anyone has a clue on what's happening here. I tried googling but no success! This generally happens when I am browsing the tree in Object explorer in SQL 2005 Management Studio. I can be doing anything - like viewing databases, or viewing table list or viewing stored procedure list, etc.
2
2301
by: John Kotuby | last post by:
Hello all, Note: This is the full version of a Post that I inadvertently sent before it was complete. About a year ago I wrote a VB.NET 2003 solution that consists of a number of assemblies (1 EXE and 15 DLLS). As I recall, in order to deploy the solution to a testing server I simply copied the contents of the Bin folder in the development area where the compiled assemblies reside. Be patient with me here, because I haven't used...
0
1430
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. Every time I click on the textBox a System.Security.SecurityException is raised.
2
2250
by: KaNos | last post by:
Hello world, I've made a webservice (c# v2) to install in a server IIS 6 on a Windows 2000 last SP. We can use the webservice in local, throw the pages wich present the methods, with a windows mode connection (<authentication mode="Windows"/>) if impersonate is false (<identity impersonate="false"/>). Note that i use the administrator user to be sure. But when I change impersonate element (<identity impersonate="true"/>) a system...
0
2027
by: gxl034000 | last post by:
Hi, I have been trying to use a .net Forms control in my webpage to open up an application(notepad) on the client. The control works fine when embedded in a windows form, but I keep getting a security exception when trying to run it from my webpage on my intranet. I have tried playing with the Code Access Security settings, but I can't get it to work. What do you think? Thanks,
1
1141
by: zest4 | last post by:
Getting this error, please help what has to be confugured on Win 2003 server? Server Error in '/' Application. -------------------------------------------------------------------------------- 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...
0
1072
by: sunoj | last post by:
Hello friends.....! I developed a windows application using VB.Net. and Installed it on D Drive of my server Machine. The D Drive is mapped as G on all other machines. When I am working with the application from the server itself it working Properly. When I am Accessing the application from other machines it shows an error as follows. Name of my application is HAMACHI, The EXE filename is HamahiLog and the Back End is...
6
4895
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my other pc, and running it I get an error. The Dataset loads properly, but when the button is pushed to view the report I get this error: ************** Exception Text **************
4
3313
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website: https://www.sdn.sap.com/irj/sdn/businessobjects-downloads ..NET Utility CR 2008 Merge Modules for the .NET Framework ZIP 74.716 Windows English 12.03.2008 and it states:
0
9566
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
9333
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
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8256
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
6800
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
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
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.