473,406 Members | 2,894 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,406 software developers and data experts.

Security Exception Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.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.SecurityException: Request for the
permission of type 'System.Web.AspNetHostingPermission, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
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:
[SecurityException: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean
throwOnError, Boolean ignoreCase) +0
System.Web.UI.Util.GetTypeFromAssemblies(ICollecti on assemblies,
String typeName, Boolean ignoreCase) +140
System.Web.UI.TemplateParser.GetType(String typeName, Boolean
ignoreCase, Boolean throwOnError) +295
System.Web.UI.TemplateParser.ProcessInheritsAttrib ute(String
baseTypeName, String codeFileBaseTypeName, String src, Assembly
assembly) +163

System.Web.UI.TemplateParser.PostProcessMainDirect iveAttributes(IDictionary
parseData) +192


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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: 39b77da5032a40a4ae4f3490228b47c6
Event sequence: 1
Event occurrence: 1
Event detail code: 0

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

Process information:
Process ID: 608
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK 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_Server

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 7716
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.nlwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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.SecurityException: Request for the
permission of type 'System.Web.AspNetHostingPermission, System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
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:
[SecurityException: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean
throwOnError, Boolean ignoreCase) +0
System.Web.UI.Util.GetTypeFromAssemblies(ICollecti on assemblies,
String typeName, Boolean ignoreCase) +140
System.Web.UI.TemplateParser.GetType(String typeName, Boolean
ignoreCase, Boolean throwOnError) +295
System.Web.UI.TemplateParser.ProcessInheritsAttrib ute(String
baseTypeName, String codeFileBaseTypeName, String src, Assembly
assembly) +163

System.Web.UI.TemplateParser.PostProcessMainDirect iveAttributes(IDictionary
parseData) +192


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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: 39b77da5032a40a4ae4f3490228b47c6
Event sequence: 1
Event occurrence: 1
Event detail code: 0

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

Process information:
Process ID: 608
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK 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_Server

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
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...
2
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...
0
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. ...
2
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...
0
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...
1
by: zest4 | last post by:
Getting this error, please help what has to be confugured on Win 2003 server? Server Error in '/' Application. -------------------------------------------------------------------------------- ...
0
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...
6
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...
4
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:...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
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...

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.