By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

access is denied, dotnet class

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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
"Guoqi Zheng" wrote:
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

Nov 18 '05 #2

P: n/a
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Guoqi Zheng" <no@sorry.nl> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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

"Guoqi Zheng" wrote:
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


Nov 18 '05 #3

P: n/a
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" <no@sorry.nl> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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

"Guoqi Zheng" wrote:
> 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
>
>
>
>


Nov 18 '05 #4

P: n/a
Ok. Dear spammer,

Would you please DO NOT reply to our post. We do not like to read your
advertisement.

--
Kind regards

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

"Peter Blum" <PL****@Blum.info> wrote in message
news:O8**************@TK2MSFTNGP10.phx.gbl...
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Guoqi Zheng" <no@sorry.nl> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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

"Guoqi Zheng" wrote:

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



Nov 18 '05 #5

P: n/a
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 [MVP]" <vapor at steaming post office> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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" <no@sorry.nl> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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

"Guoqi Zheng" wrote:

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



Nov 18 '05 #6

P: n/a
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 [MVP]" wrote:
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" <no@sorry.nl> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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" <Ta***********@discussions.microsoft.com> wrote in
message news:71**********************************@microsof t.com...
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

"Guoqi Zheng" wrote:

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



Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.