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

L

L. Liu

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
 
D

Dominick Baier [DevelopMentor]

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??
 
L

L. Liu

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]" <[email protected]>
schrieb im Newsbeitrag
 
D

Dominick Baier [DevelopMentor]

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
 
L

L. Liu

Hi,

yes, I have modified the trust level setting in the web.config file in the
framework's CONFIG folder. And I also run sharepoint in the same box.

Thanks,

-Liu

"Dominick Baier [DevelopMentor]" <[email protected]>
schrieb im Newsbeitrag
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top