Professional Web Applications Themes

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

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

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

  3. #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

  4. #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

Similar Threads

  1. Machine.config Configuration Error
    By Calvin Willman in forum Dreamweaver AppDev
    Replies: 1
    Last Post: April 4th, 10:15 PM
  2. web.config vs machine.config ?
    By WJ in forum ASP.NET Security
    Replies: 1
    Last Post: April 13th, 01:37 AM
  3. Replies: 6
    Last Post: October 31st, 02:34 PM
  4. Replies: 2
    Last Post: July 22nd, 08:45 PM
  5. .NET Framework 1.1 and cookieless=true in web.config file
    By James Martin in forum ASP.NET General
    Replies: 0
    Last Post: July 22nd, 06:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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