.Net 2.0 Framework

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I compile my asp.net project under the 2.0 Framework it get the error
message "The current trust level does not allow use if the 'compilerOptions'
attribute.
What can I do about that?
 
It sounds like you are running in a partial trust environment. Are you on
a shared host server? Are you admin of the server? Do you have a <trust>
element in your web.config?

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
I am on my localhost. I tried to add a trust element to web.config. I removed
my compiler switch from web.config. The error message went away.
 
Ok, if that works :)

The reason I was asking all of these questions is because when you're running
in partial trust you're doing that either because you want to (which is good)
or because someone has forced you to (like in a hosting environment). When
you're running in partial trust, you're not allowed to alter the compilation
options. So I was simply trying to determine why you're running in partial
trust. If you have no choice but to run in PT (like the hosting environment),
then there's little you could do to modify the compiler options.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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

Back
Top