application's configuration files must contain 'trust' section

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YnJ5YW4=?=

    application's configuration files must contain 'trust' section

    I'm getting an odd error with a newly created asp.net website in VS 2005. I
    created a brand new ASP.Net website, and attempted to drag a Label control
    into the design view of Default.aspx, but nothing happened. The Label, nor
    any other control would be placed on the page. I viewed the source of
    Default.aspx, and added <asp:Label ID="lbl1" runat="server"> </asp:Label>, but
    when attempting to access the Label control from the code behind, it did not
    even register that it existed. I tried creating a new control in the code
    behind, but VS did not recognize that any controls existed (nothing was
    listed in the intellisense). I then noticed the error message "The
    application's configuration files must contain 'trust' section." So, I added
    a <trustnode in the web.config file and set the level to "Full", but that
    still did not do anything for me. I uninstalled VS, and reinstalled... but
    I'm still getting the error... ideas? Thanks!


    --
    - bryan -
  • =?Utf-8?B?YnJ5YW4=?=

    #2
    RE: application's configuration files must contain 'trust' section

    Figured it out... My machine.config file was corrupted, I guess. I deleted it
    and renamed the machine.config. default to machine.config, rebooted and all
    was good.

    --
    - bryan -


    "bryan" wrote:
    I'm getting an odd error with a newly created asp.net website in VS 2005. I
    created a brand new ASP.Net website, and attempted to drag a Label control
    into the design view of Default.aspx, but nothing happened. The Label, nor
    any other control would be placed on the page. I viewed the source of
    Default.aspx, and added <asp:Label ID="lbl1" runat="server"> </asp:Label>, but
    when attempting to access the Label control from the code behind, it did not
    even register that it existed. I tried creating a new control in the code
    behind, but VS did not recognize that any controls existed (nothing was
    listed in the intellisense). I then noticed the error message "The
    application's configuration files must contain 'trust' section." So, I added
    a <trustnode in the web.config file and set the level to "Full", but that
    still did not do anything for me. I uninstalled VS, and reinstalled... but
    I'm still getting the error... ideas? Thanks!
    >
    >
    --
    - bryan -

    Comment

    Working...