Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Mar 2006 14:25:40 +0000 (UTC)
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
.
- Follow-Ups:
- References:
- Prev by Date: Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
- Next by Date: Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
- Previous by thread: Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
- Next by thread: Re: Build Error while debugging ASP.net 2.0 Web Service on IIS
- Index(es):
Relevant Pages
|