application's configuration files must contain 'trust' section

G

Guest

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 <trust> node 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!
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top