473,320 Members | 1,926 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,320 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 20800

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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.