PC Review


Reply
Thread Tools Rate Thread

access is denied, dotnet class

 
 
Guoqi Zheng
Guest
Posts: n/a
 
      22nd Jul 2004
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



 
Reply With Quote
 
 
 
 
Guoqi Zheng
Guest
Posts: n/a
 
      22nd Jul 2004
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" <(E-Mail Removed)> wrote in
message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
> 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
> >
> >
> >
> >



 
Reply With Quote
 
Peter Blum
Guest
Posts: n/a
 
      22nd Jul 2004
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 Removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Guoqi Zheng" <(E-Mail Removed)> wrote in message
news:OJlTiV$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in
> message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
> > 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
> > >
> > >
> > >
> > >

>
>



 
Reply With Quote
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      22nd Jul 2004
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" <(E-Mail Removed)> wrote in message
news:OJlTiV$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in
> message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
>> 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
>> >
>> >
>> >
>> >

>
>



 
Reply With Quote
 
Guoqi Zheng
Guest
Posts: n/a
 
      23rd Jul 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 Removed)
> Creator of "Professional Validation And More" at
> http://www.peterblum.com/vam/home.aspx
>
> "Guoqi Zheng" <(E-Mail Removed)> wrote in message
> news:OJlTiV$(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in
> > message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
> > > 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
> > > >
> > > >
> > > >
> > > >

> >
> >

>
>



 
Reply With Quote
 
Guoqi Zheng
Guest
Posts: n/a
 
      23rd Jul 2004
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:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:OJlTiV$(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in
> > message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
> >> 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
> >> >
> >> >
> >> >
> >> >

> >
> >

>
>



 
Reply With Quote
 
=?Utf-8?B?R3VzdGF2byBBbnNvcmVuYQ==?=
Guest
Posts: n/a
 
      23rd Sep 2004
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" <(E-Mail Removed)> wrote in message
> news:OJlTiV$(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in
> > message news:71AF0ACC-1B31-4CA5-8441-(E-Mail Removed)...
> >> 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
> >> >
> >> >
> >> >
> >> >

> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use dotnet 2.0 class in 1.x ravi Microsoft ASP .NET 0 28th Jan 2009 12:50 PM
Access denied to directory COM+ Class Registration Database =?Utf-8?B?REJR?= Microsoft Windows 2000 0 23rd Sep 2005 10:39 PM
Registry access denied using RegistryKey class g82martin@msn.com Microsoft C# .NET 0 20th Jan 2005 06:17 PM
Access denied while loading class library Murali Microsoft ADO .NET 1 11th Oct 2004 02:01 PM
Gettting Access denied error while accessing Class library Murali Microsoft Dot NET Framework 1 11th Oct 2004 12:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.