Re: Build Error while debugging ASP.net 2.0 Web Service on IIS



Hi,

are you saying that in the web.confg in the framework CONFIG folder trust is set to Full?

do you run sharepoint?

i think sharepoint adds a <trust> element at site level - check if there is a web.config in the root of your site

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

I have added the config element to the local web.config file and it
works now!

However, I wonder why the trust level configuration <trust
level="Full" /> that I add in the global configuration file (global
asp.net's web.config file)does not work? I think, it should be taken
as standard settings by every asp.net application that I run on the
local IIS server, or not?

Thanks!

cheers,
-Liu
"Dominick Baier [DevelopMentor]"
<dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:4580be631978e48c80cd9f4c94b28@xxxxxxxxxxxxxxxxxxxxx

Hi,
your IIS server is configured for partial trust - this can be set
using
the
<trust level="xxx" /> config element.

There must be a reason for this setting - you should check that - it
is not restricted by default

give it a try and add the following to your web.config:

<trust level="Full" />

does this change the behavior or does it trigger another error
message that you are not allowed to change the trust level??

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi there,

I have encountered an asp.net runtime error as I would like to debug
a ASP.net 2.0 web service on IIS. I have developed the Web services
within Visual Studio 2005 by using the integrated development web
server of VS. Everything worked fine until I tried to debug the the
web service on the local IIS server. I got all the time the error
message in Visual studio while building the web service project:

Error 19 C:\BookService.asmx: ASP.NET runtime error: The current
trust level does not allow use of the 'debug' attribute
C:\BookService.asmx 1 1 http://localhost/BookService/

Has anyone also seen this error messeg before? Any help will be
greatly appreciated!

Thanks!

Cheers,
-Liu


.



Relevant Pages

  • Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
    ... does this change the behavior or does it trigger another error message that you are not allowed to change the trust level?? ... ASP.net 2.0 web service on IIS. ... Everything worked fine until I tried to debug the the ... web service on the local IIS server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Deploy Win Form
    ... this is the default CAS setting of any ... That is, defaultly, .Net does not trust ... code to config the CAS settings, or this will become a security hole. ... Manually config all the client machines to trust our network shared ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [OT] Debian mailinglists [was: RE: Debian or Ubuntu?]
    ... don't trust people to hand edit my ssh config. ... Of _course_ we trust programmers. ... And we trust them NOT to do something as stupid as requiring a GUI to be ...
    (Ubuntu)
  • Re: Deploying Sharepoint across two domains
    ... I am looking into having a trust between the two domains. ... > The service accounts and the user accounts that portal uses from a directory ... > sorts off errors because as far as the SharePoint application is concerned ... >> not exist despite being the same account I am using to create the config ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: [OT] Debian mailinglists [was: RE: Debian or Ubuntu?]
    ... files and maybe XML are acceptable; Windoze registry is not. ... Derek's point is that it SHOULD also be possible to edit configs ... don't trust people to hand edit my ssh config. ...
    (Ubuntu)