473,396 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

access is denied, dotnet class

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
6 1445
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
3
by: jliusolar | last post by:
Hi I am trying to figure out why an application get this error when I am trying to open the application's asmx file from localhost. I don't have indexing service running(it set as manual and not...
7
by: Martin Strojek | last post by:
Hi, I have the following problem with developing some web site. I use Visual Studio 2003 to build a website. I tried Windows 2003 Server and switched now back to Windows XP with PWS but the...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
2
by: Johan Johansson (Sweden) | last post by:
I can't connect to our database (seperate database server) from within my webservice. I cannot understand why.!!! * I have configured IIS not to allow anonymous access and to use "windows...
1
by: Rachel | last post by:
I have created a simple web service in VC# that adds two numbers. It returns an integer value to the client once invoked. I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1. I created a...
1
by: Duffman | last post by:
Hi, I have what seems to be a common problem, but the solutions I've found don't seem to work. I would like to use a web service to create a file at a UNC location in a shared file. Currently...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
7
by: =?Utf-8?B?ams=?= | last post by:
I am using System.Diagnostics.Process class to open a word document by call ing Process.Start("test.doc"). I am using C# as programming language. On some of the computers on running this code i get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.