473,395 Members | 1,335 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,395 software developers and data experts.

Permissions

I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am
getting a RegistryPermission error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflection.Assembly ControlAssembly =
System.Reflection.Assembly.LoadFrom("\\Server1\Rep orts\output\Reports.dll");

report =
(ExpoExchange.Registration.Common.Business.Product ionActiveReportBase)
ControlAssembly.CreateInstance("Reports.Production .rptBadge");

THE ERROR:

{"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed." }
Nov 15 '05 #1
5 2168
Since the other assembly is loaded from a network resource, that code will
run with "local intranet" security permissions - which are a lot more
limited than assemblies run from the local machine. You will need to
configure the security for the given assembly, or bump up the security level
of the "local intranet" zone.

Arild

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003 framework 1.1). When I go to run my code on my box and late bind to a dll on the server machine I get an error. Below is the lines of code and the error I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am getting a RegistryPermission error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflection.Assembly ControlAssembly =
System.Reflection.Assembly.LoadFrom("\\Server1\Rep orts\output\Reports.dll");
report =
(ExpoExchange.Registration.Common.Business.Product ionActiveReportBase)
ControlAssembly.CreateInstance("Reports.Production .rptBadge");

THE ERROR:

{"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed." }

Nov 15 '05 #2
I tried to change the permisions of LocalIntranet_Zone to FullTrust and I am
still getting the error.
"Arild Bakken" <ar*****@hotmail.com> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
Since the other assembly is loaded from a network resource, that code will
run with "local intranet" security permissions - which are a lot more
limited than assemblies run from the local machine. You will need to
configure the security for the given assembly, or bump up the security level of the "local intranet" zone.

Arild

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge.

I am
getting a RegistryPermission error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid

for the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflection.Assembly ControlAssembly =

System.Reflection.Assembly.LoadFrom("\\Server1\Rep orts\output\Reports.dll");

report =
(ExpoExchange.Registration.Common.Business.Product ionActiveReportBase)
ControlAssembly.CreateInstance("Reports.Production .rptBadge");

THE ERROR:

{"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed." }


Nov 15 '05 #3
Does anyone else have any help

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I
have my local machine (Windows XP framework 1.1) and a Server (Windows 2003 framework 1.1). When I go to run my code on my box and late bind to a dll on the server machine I get an error. Below is the lines of code and the error I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge. I am getting a RegistryPermission error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid for
the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflection.Assembly ControlAssembly =
System.Reflection.Assembly.LoadFrom("\\Server1\Rep orts\output\Reports.dll");
report =
(ExpoExchange.Registration.Common.Business.Product ionActiveReportBase)
ControlAssembly.CreateInstance("Reports.Production .rptBadge");

THE ERROR:

{"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed." }

Nov 15 '05 #4

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:OI**************@TK2MSFTNGP12.phx.gbl...
Does anyone else have any help

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
I am wondering if anyone can help me out with this one. Here goes....... I have my local machine (Windows XP framework 1.1) and a Server (Windows 2003
framework 1.1). When I go to run my code on my box and late bind to a dll on
the server machine I get an error. Below is the lines of code and the error
I get. I have no problem accessing the Reports.dll so it should not be a
security problem. I get the error when I try to run the class rptBadge.

I am
getting a RegistryPermission error. Here is some background on the
class..... I am extending from a class from a 3rd party. We have paid

for the product and I am wondering if it has something to do with that. The
third party might have some information in the registry and I don't have
permissions to read the registry.

Any help would be appreciated.

System.Reflection.Assembly ControlAssembly =

System.Reflection.Assembly.LoadFrom("\\Server1\Rep orts\output\Reports.dll");

report =
(ExpoExchange.Registration.Common.Business.Product ionActiveReportBase)
ControlAssembly.CreateInstance("Reports.Production .rptBadge");

THE ERROR:

{"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed." }


The latter is pretty easy to check out (assuming you can find the correct
hive/key that is giving you trouble.) just open regedt32 (regedit - doesn't
provide for changing permissions) as an admin - find the key/path and reset
the permissions to everyone, or specific name, etc.

There are various Registry Monitoring programs available for sale,
shareware, free, etc on the web that might help in your search.

There is likely more to the problem, but this would be a quick check if it
is a simple matter of registry permission. I am passing a note of doubt
because frankly M$ has been monkeying around with security over the last
couple of 24 months or so and .NET uses a slightly different security model
that Windows itself uses. I still don't have a warm fuzzy as to
understanding all the specifics.

HTH
-ralph
Nov 15 '05 #5

"Sean McKaharay" <se************@expoexchange.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
I tried to change the permisions of LocalIntranet_Zone to FullTrust and I
am
still getting the error.

Are you sure you did this correctly?

On the client machine you should add a code group with at least "Registry"
access permissions to the Machine policy level, You would then give the code
group a URL membership condition which would specify the UNC path of your
file share.

Willy

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Kim Lots | last post by:
Hi Sorry to disturb you again but i really like to know what's the NTFS folder permissions on a "virtual directory" folder for a public webserver iis 5.x running ASP 3.0 with an Access DB on a...
1
by: Brad H McCollum | last post by:
I'm writing an application using VB 6.0 as the front-end GUI, and the MSDE version of SQL Server as the back-end (it's a program for a really small # of users --- less then 3-4). I'm trying to...
6
by: !!! Klutzo !!! | last post by:
I give permissions for ASPNET on a top level subdirectory. A windows program copies a file into the subdirectory, however, my web service cannot access the file because it does not have...
2
by: Jozef | last post by:
Hello, Is there a way to change table permissions in VB Code? I can't seem to find much that's concise in the help file. Here's the situation; I have a table in the "data" portion of a split...
7
by: none | last post by:
Hello: I had a nice php application running on my server here at home, and I uploaded it to a shared public type server and it started to break all over the place. It turns out that some...
13
by: MLH | last post by:
Invalid qualifier error displays at compile time on this A97 example from Permissions Property HELP. What's wrong with the strContainerName assignment line? (6th line) Sub...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
8
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
3
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007...
6
by: DotNetNewbie | last post by:
Hello, in my web application, I have to create permissions for each user. So what I am doing is that for each role (using sqlmembership in .net) I am creating a column in the database to hold a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.