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



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
    ... are you saying that in the web.confg in the framework CONFIG folder trust is set to Full? ... your IIS server is configured for partial trust - this can be set ... web service on the local IIS server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: UNC file share and NTLM user identity
    ... >Put a web service on the same set of IIS servers. ... >local to each IIS server and will use NTLM ... >will also receive the same cookie) and it will store the ... You can then use Windows authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: UNC file share and NTLM user identity
    ... Copy your content to each IIS server and use your cluster to store session ... Put a web service on the same set of IIS servers. ... local to each IIS server and will use NTLM authentication. ... each visitor a unique cookie (using path = "/" so that the web application ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web Service that calls an external Web Service
    ... This URL is programatically set, I has an initial URL like: ... have full trust. ... I am Luke and I am review this issue ... the web service call another web service and ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Sharepoint Documents Storage
    ... I also wrote a web service that communicates my application with the ... extranet server's database, so I can read/write info from there. ... CAS, and the level of trust, but I really don't understand what I have ...
    (microsoft.public.sharepoint.portalserver.development)