ASP.Net Configuration File

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. [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 -----...
    5. 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...
  3. #2

    Default 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...
    > 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

    Cowboy \(Gregory A. Beamer\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139