access is denied, dotnet class

G

Guoqi Zheng

Sir,

Some times, I developed class library to use on other sites. When I am
testing the application, I often get an error of access is denied to that
assembly. How can I check the problem?


Below is the error message from debug. I am using ASP.NET 1.1 on XP machine.

Parser Error Message: Access is denied: 'HtmlToText'.

Source Error:

Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>


--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 
G

Guoqi Zheng

That is what I did as well. But very often, that does not work, so I have to
restart my computer.

Some one please help.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com

Tampa .NET Koder said:
In VS.NET 2003 I get that alot, I don't know what that is. All I do is
delete the dll and the reference and add it again and that usually works for
me. I will like to know what causes that though
 
P

Peter Blum

I am not sure I fully understood what you are asking for. I think you want
other visual indicators to make your error stand out. You can use the
ValidationSummary.

Beyond that, you are into the realm of custom code (not just
customValidators, but hacks too).

I rewrote ASP.NET validation to address numerous limitations, including
other ways to make validators get attention, in Professional Validation And
More (http://www.peterblum.com/vam/home.aspx). It includes:
* Show an alert on error
* Set focus to the field with the error
* Change the style of the field with the error
* Change the style of other fields associated with the field with the error
(like the label or containing region)
* Blink the error
Its ValidationSummary includes hyperlinks to set focus to the field with the
error and auto-updating as errors are corrected.

A key goal of Professional Validation And More is to eliminate most of the
custom validators and hacks. For a list of the limitations I've found in
Microsoft's validators, see http://www.peterblum.com/vam/valmain.aspx.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 
A

Alvin Bruney [MVP]

this error is frequently caused by the indexing service running on the
machine. you need to turn it off to prevent the error.
 
G

Guoqi Zheng

Thanks.

Although indexing service is really useful, but if turn it off can solve
this problem, I will give it a try.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com

Alvin Bruney said:
this error is frequently caused by the indexing service running on the
machine. you need to turn it off to prevent the error.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Guoqi Zheng said:
That is what I did as well. But very often, that does not work, so I have
to
restart my computer.

Some one please help.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com


delete the dll and the reference and add it again and that usually works
for
me. I will like to know what causes that though
 
G

Guest

Alvin:

I got the same problem that Mr Zheng had even after turning index services
off. I also tried the solution provided by PRB 813833 which points out that
you may get the Access Denied error when using signed assemblies in the bin
directory of your web application. I am also preventing my antivirus from
reading the windows/.NET folder as well as the web application but I am still
gettting the same error after copying files to the web application. My
solution so far is killing the aspnet_wp process on my XP machine or the w3w
process in Win2003 server.
Any idea ?
Thanks for you help.
Gustavo.-

Alvin Bruney said:
this error is frequently caused by the indexing service running on the
machine. you need to turn it off to prevent the error.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Guoqi Zheng said:
That is what I did as well. But very often, that does not work, so I have
to
restart my computer.

Some one please help.

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com


delete the dll and the reference and add it again and that usually works
for
me. I will like to know what causes that though
 

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

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top