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

ASP.Net Configuration File

I'm having a problem with ASP.Net on a machine with both .Net
Framework 1.0 and 1.1. This application is targeted to 1.0 using IIS
application extension mappings. The following error page is shown
when the page is accessed.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.

Parser Error Message: Execution permission cannot be acquired.

Source Error:

Line 197: <add assembly="System.Drawing,
Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="System.EnterpriseServices,
Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 199: <add assembly="*"/>
Line 200: </assemblies>
Line 201:

Source File: c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config
Line: 199

Version Information: Microsoft .NET Framework Version:1.0.3705.288;
ASP.NET Version:1.0.3705.360
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The stack trace in the source of the page states:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[PolicyException]: Execution permission cannot be acquired.
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me
assemblyRef, Boolean stringized, Evidence assemblySecurity,
StackCrawlMark& stackMark)...
[ConfigurationException]: Execution permission cannot be acquired.
(c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config line
199)
at System.Web.UI.CompilationConfiguration.LoadAssembl ies(Hashtable
original)
at System.Web.UI.TemplateParser.AppendConfigAssemblie s()
....>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


The following steps have been taken:
- The indexing service has been uninstalled on the server and the
server has been rebooted.
- There is no anti-virus software running on the machine.

I've searched the Microsoft knowledge base and google groups, but
haven't found any answers. Thanks in advance for any help!

Joel Cade, MCSD
Nov 17 '05 #1
2 3198
Check IIS, as ASP.NET Framework 1.1 maps to 1.1 in IIS when installed. In
your config file, you can add the following, which will make sure 1.0 is
used for this app.

<startup>
<supportedRuntime version="v1.0.3705" /> <!-- version 1.0 -->
</startup>

If this does not straighten it, you have to look at the security profile you
are using for this app. 1.1 locks things down more than 1.0, which is
overall a good thing. It sounds like your app, although you feel it is
configured for 1.0, is running under 1.1.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
"Joel Cade" <jc***@brinkster.com> wrote in message
news:d7**************************@posting.google.c om...
I'm having a problem with ASP.Net on a machine with both .Net
Framework 1.0 and 1.1. This application is targeted to 1.0 using IIS
application extension mappings. The following error page is shown
when the page is accessed.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request. Please review the
specific error details below and modify your configuration file
appropriately.

Parser Error Message: Execution permission cannot be acquired.

Source Error:

Line 197: <add assembly="System.Drawing,
Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="System.EnterpriseServices,
Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
Line 199: <add assembly="*"/>
Line 200: </assemblies>
Line 201:

Source File: c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Line: 199

Version Information: Microsoft .NET Framework Version:1.0.3705.288;
ASP.NET Version:1.0.3705.360
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The stack trace in the source of the page states:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[PolicyException]: Execution permission cannot be acquired.
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me
assemblyRef, Boolean stringized, Evidence assemblySecurity,
StackCrawlMark& stackMark)...
[ConfigurationException]: Execution permission cannot be acquired.
(c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config line
199)
at System.Web.UI.CompilationConfiguration.LoadAssembl ies(Hashtable
original)
at System.Web.UI.TemplateParser.AppendConfigAssemblie s()
...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


The following steps have been taken:
- The indexing service has been uninstalled on the server and the
server has been rebooted.
- There is no anti-virus software running on the machine.

I've searched the Microsoft knowledge base and google groups, but
haven't found any answers. Thanks in advance for any help!

Joel Cade, MCSD

Nov 17 '05 #2
I have the exact same problem, and it came out of nowhere. Everything
was working fine and then it just broke on me. I was coding and then I
installed Macromedia Shockwave or something to view something on a web
page and kerplam I'm dead in the water. I checked the last modified
stamp on my machine.config file and it doesn't look modified. I didn't
change anything in the security settings myself.

Also, why would you want to change the application to run on the version
1.0 framework instead of 1.1?

Dave
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!

www.SEN.us

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

2
by: Alexander Kienzle | last post by:
I'm new to Java programming. I'm developing a Servlet for tomcat which needs an external configuration file. With external I mean a file (in XML format) which is customizable and not contained in...
2
by: kathy | last post by:
What Application Configuration File is? And when/where/how to use it? Any documents on that? MSDN has somrthings scatter everywhere - hard to follow. thanks,
4
by: Jessard | last post by:
Hi Guys and Girls, I have a situation where I am wishing to deploy a .NET dll onto a number of servers. The classes in the DLL will be used by VBScripts. When one of the classes - Connection -...
3
by: Florida Coder | last post by:
I have the need to store some application specific configuration data to be used by a class library and or a windows service. I would like to do this in a fashion similar to the way we do with...
0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
1
by: Ramanfromoz | last post by:
Hi, Developing a new we application. Everything okay on my local WIN XP PROFESSIONAL, IIS 5.0 running locally. The website is running smoothly. Now, the same code I am copying over to a...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
0
by: sean rogers | last post by:
hello im using the configuration block and have created the main config file for the application - the file that contains the paths to the other configuration sections i.e. - (my other...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
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: 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: 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
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
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,...
0
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...
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.