473,387 Members | 1,721 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,387 software developers and data experts.

Somebody please help - Request for the permission of type 'System.Web.AspNetHostingPermission' [...] failed

Keywords:
ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a
WinXP Box

I've betting the following for days... it's driving me insane:

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.
The token can be found here:
<DbSource ConnectionRef="strMRConn_Test_System (Web.config)" [...]
ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
This is in my XSD (DataSet) file.

This is a compile error I think (not an RTE), as the default page has
no connection: it's plain HTML. Yet I can buil successfully. Running
(w/ or w/out debugging won't work).

The ASPNET account of the IIS6 server has full permission on the site
folders (under wwwroot).

PLEASE help,
AK

Jul 5 '06 #1
2 20804

You probably do not use frontpage extensions ??

probably you use a file share ,,,, see this
http://support.microsoft.com/?id=320268
Please let us know if this solved the problem

regards

Michel Posseth [MCP]


<An*********@gmail.comschreef in bericht
news:11**********************@b68g2000cwa.googlegr oups.com...
Keywords:
ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a
WinXP Box

I've betting the following for days... it's driving me insane:

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.
The token can be found here:
<DbSource ConnectionRef="strMRConn_Test_System (Web.config)" [...]
ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
This is in my XSD (DataSet) file.

This is a compile error I think (not an RTE), as the default page has
no connection: it's plain HTML. Yet I can buil successfully. Running
(w/ or w/out debugging won't work).

The ASPNET account of the IIS6 server has full permission on the site
folders (under wwwroot).

PLEASE help,
AK

Jul 5 '06 #2
Michel,
Thanks for taking the time.

No, I try to stay away from FP and extension. I'm working locally on my
machine were evering WAS fine and then moved to an IIS6 server on the
network.

Thanks for the suggestion but that did not phase my nice RTE at all!
Still there!

I should mention that now the app stopped working even locally (using
the VS web server).

Here's my web.config if it can shed any light... Thanks again!

<?xml version="1.0"?>
<configuration>
<connectionStrings>
<!--Test System-->
<add name="strMRConn_Test_System" connectionString="Data
Source=[local server];Initial Catalog=MedicalRecords;Integrated
Security=True" providerName="System.Data.SqlClient"/>
<!--Live System-->
<add name="strMRConn" connectionString="Data Source=[prod
server];Initial Catalog=MedicalRecords;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings>
<!--Crystal reports-->
<add key="CrystalImageCleaner-AutoStart" value="true"/>
<add key="CrystalImageCleaner-Sleep" value="60000"/>
<add key="CrystalImageCleaner-Age" value="120000"/>
</appSettings>
<system.web>
<httpHandlers>
<!--Register the AJAX Component(s)-->
<add verb="POST,GET" path="ajax/*ashx"
type="Ajax.PageHandlerFactory, Ajax"/>
<!--Crystal Reports-->
<add verb="GET" path="CrystalImageHandler.aspx"
type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
<httpModules>

</httpModules>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0,
Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0,
Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0,
Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.Desktop.Repo rt,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientD oc,
Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<pages validateRequest="false" enableSessionState="true">
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Data"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Data.SqlTypes.SqlXml"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
<add namespace="System.Xml"/>
</namespaces>
</pages>
<authentication mode="Windows"/>
<customErrors mode="Off"/>
</system.web>
</configuration>


Michel Posseth [MCP] wrote:
You probably do not use frontpage extensions ??

probably you use a file share ,,,, see this
http://support.microsoft.com/?id=320268
Please let us know if this solved the problem

regards

Michel Posseth [MCP]


<An*********@gmail.comschreef in bericht
news:11**********************@b68g2000cwa.googlegr oups.com...
Keywords:
ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a
WinXP Box

I've betting the following for days... it's driving me insane:

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.
The token can be found here:
<DbSource ConnectionRef="strMRConn_Test_System (Web.config)" [...]
ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
This is in my XSD (DataSet) file.

This is a compile error I think (not an RTE), as the default page has
no connection: it's plain HTML. Yet I can buil successfully. Running
(w/ or w/out debugging won't work).

The ASPNET account of the IIS6 server has full permission on the site
folders (under wwwroot).

PLEASE help,
AK
Jul 6 '06 #3

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
1
by: davidw | last post by:
I encountered strange issues. I have code like this sqlReader = SqlHelper.ExecuteReader(connString, System.Data.CommandType.Text,sql); It calls Microsoft.ApplicationBlocks.Data to execute a...
0
by: Troy Donavan | last post by:
A VB Web application that worked in VS2002 was upgraded to VS2005 and on build generates the following error message on build: Request for the permission of type...
0
by: Siberwulf | last post by:
I'm trying to fetch an XML document from a website through an assembly i built and attached to SQL 2005. Here is my code for the SPROC assembly: public static void fetch_FeedData(string...
1
by: Allan Ebdrup | last post by:
I'm using dotNet 2.0 and VS2005. I've got a class library where I've created a webcontrol (Inherits from GridView). The dll for the class library resides on a different server (development...
1
by: goc | last post by:
I have a Web Farm, that fetches its database-data from a separate database-server. Today I was forced to go over to .NET 2.0 (since 1.1 can't be installed on Windows Vista x64), and it brought...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: clintonb | last post by:
I hope this is the appropriate group for posting this question. We have a Web Application Project that compiles using Visual Studio 2005 on Windows XP but it won't compile on Windows Vista. ...
2
by: clintonb | last post by:
I hope this is the appropriate group for my question. We have a Web Application Project that compiles just fine using Visual Studio 2005 on Windows XP but it won't compile on Windows Vista. ...
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.