Ask a Question related to ASP.NET General, Design and Development.
-
Joel Cade #1
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
Joel Cade Guest
-
CFMX7 Configuration File(s)
OK, I have fugured out how to backup/restore/import data sources thanks to the help of forum members and I do appreciate it. Now, I would like to... -
Configuration file problem
Hi, I have my Winforms client calling a web service by referencing it. Additionally it has application configuration file setup with database... -
Configuration file
Hey, once again... What is the best way to do a configuration file? I want it to be easy to edit and contain a lot of defined values. (But not... -
[PHP] php.ini configuration can we have two include_path in php.in file
I am not able to locate the file you are referring to. Please do help me I am very much frustrated. -Murugesan ----- Original Message -----... -
Hi, where is gnome2 configuration file?
I'm using unstable Gnome2(sawfish) I want to change the font size of window titile, I found that I can't change it using menu options. Thank u... -
Cowboy \(Gregory A. Beamer\) #2
Re: ASP.Net Configuration File
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" <jcade@brinkster.com> wrote in message
news:d7bcd6c0.0307160725.7c2c6d0b@posting.google.c om...c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config> 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:> 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
Cowboy \(Gregory A. Beamer\) Guest



Reply With Quote

