Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config

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

  1. #1

    Default Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config

    I had many ASP.NET web applications that I created before I had to
    rebuild my machine. After a fresh install of XP Pro, VS.NET 2003,
    etc, I now get the following when running them. Note that I've
    already added the following to the web.config file just before the
    <appsettings> section:

    <startup>
    <supportedRuntime version="v1.1.4322"/>
    <requiredRuntime version="v1.1.4322"/>
    </startup>

    Here's the error (I've replaced the references to publickeytoken with
    "*"):

    Server Error in '/TestApp' Application.
    --------------------------------------------------------------------------------

    Error loading XML file
    c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config
    Request for the permission of type
    System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib,
    Version=1.0.3300.0, Culture=neutral, PublicKeyToken=* failed.
    (c:\windows\microsoft.net\framework\v1.0.3705\Conf ig\machine.config)
    Description: An unhandled exception occurred during the execution of
    the current web request. Please review the stack trace for more
    information about the error and where it originated in the code.

    Exception Details: System.Configuration.ConfigurationException: Error
    loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config
    Request for the permission of type
    System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib,
    Version=1.0.3300.0, Culture=neutral, PublicKeyToken=* failed.
    (c:\windows\microsoft.net\framework\v1.0.3705\Conf ig\machine.config)

    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.

    Stack Trace:


    [ConfigurationException: Error loading XML file
    c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config
    Request for the permission of type
    System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib,
    Version=1.0.3300.0, Culture=neutral, PublicKeyToken=* failed.
    (c:\windows\microsoft.net\framework\v1.0.3705\Conf ig\machine.config)]
    System.Configuration.ConfigurationSettings.GetConf ig(String
    sectionName) +210
    System.Configuration.ConfigurationSettings.get_App Settings() +16
    System.Configuration.AppSettingsReader..ctor() +8
    assessments.LoginForm.InitializeComponent()
    assessments.LoginForm.OnInit(EventArgs e)
    System.Web.UI.Control.InitRecursive(Control namingContainer) +235
    System.Web.UI.Page.ProcessRequestMain() +171




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.288;
    ASP.NET Version:1.0.3705.288
    CSharpner Guest

  2. Similar Questions and Discussions

    1. Machine.config Configuration Error
      I've recently moved web hosts to Network Solutions (Sorry to drop names), and I'm now getting the following error... Configuration Error...
    2. web.config vs machine.config ?
      1. I got this following error: ******************** Configuration Error Description: An error occurred during the processing of a...
    3. config file: a) what Module ? b) conditionals in config (for multiple hosts)
      Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right...
    4. Web config file in another app being accessed in error!!??
      Hi I am noticing some strange behaviour in some asp.net pages that I have put together and am hoping someone can explain to me what is...
    5. .NET Framework 1.1 and cookieless=true in web.config file
      With the .NET Framework version 1.1, the following web.config code causes all of the html/aspx relative path references to fail: <sessionState...
  3. #2

    Default Re: Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config

    I have this same problem.

    It looks like it turned on SSL security for the whole web site... wild!
    I Tried downloading Microsofts IIS 6.0 resource kit..

    [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en[/url]

    and then running the selfssl tool.... still no luck!



    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    DotNetJunkies User Guest

  4. #3

    Default Re: Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config

    If you install IIS after you install .NET Framework, that's most of your problem... Run the following command from
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

    aspnet_regiis -i

    It will install 1.1 version of ASP .NET and update scriptmaps for you.

    Hope it helps.


    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    DotNetJunkies User Guest

  5. #4

    Default Re: Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Confi g\machine.config

    aspnet_regiis -i

    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from [url]http://www.DotNetJunkies.com/newsgroups[/url] Our newsgroup engine supports Post Alerts, Ratings, and Searching.
    DotNetJunkies User 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