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

Receiving a strong name error when trying to access a library

I receive the following error 'Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.' when I try to access a property or method of the library. I
was wondering if the library is secure with a key, so the caller has to
be sign with same key or I'm calling the library incorrectly. Do I need
an assembly tag with in code?

I'm attempting to add functionality to a product by adding inline C#
code to a ASP.Net control. The software does not have a published SDK
but I can determine how to use the libaries from previous versions. Any
help is greatly appreciated and links to documentation or explanation
are great helps for learning.

Thank you for the time,

Robert Pottschmidt

Below is the code sample:
....
Software.DataLayer.One a;
Software.BusinessLogic.Two b;
a =(Software.Libary.One) Session["XXXXX"];
a = l.Inbox; //The code blows up here with the above error
....
PermView of the classes:

C:\Documents and Settings\rob>permview /decl Software.Libary.dll

Microsoft (R) .NET Framework Permission Request Viewer. Version
1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Class Software.DataLayer.One LinktimeDemand permission set:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.StrongNameIdent ityPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"

PublicKeyBlob="00240000048000009400000006020000002 40000525341310
0040000010001007F850AB9C51768C40BB2BC90AC0E7A733B0 717D1139F2BDE487A76A8FA93E887D
2CB0B63EF25B401038A7A48CA5DB638EFD867515D8219EF8A5 8F3B1D098C89C278F6078789564F1F
6F6C088729F4D0D3BEE66E923A49B9A22E3404837A14E5DDB1 AC258BB0C122329B06E531E05CF2E7
214936E57EE0F998BC093AD2C351BB9"/>
</PermissionSet>

Jul 21 '05 #1
0 1130

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

Similar topics

1
by: Jason Garland \(Secure Access Pty Ltd\) | last post by:
Hi I am trying to work out how to either create a strong name wrapper for AxInterop.SHDocVw.dll I have researched the following : - 'Wrapper Assembly Key' but this is apparently for c#...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
3
by: Patrick Kowalzick | last post by:
Dear NG, I am trying to build a strong named library with Visual C++. -Therefore I am generating a key pair using sn -k strong_name.snk -Create a new Project in the Visual Studio: Visual...
6
by: Manuel Lopez | last post by:
Hello, I have a Web Project (UserControls.dll) with some user controls that is shared by many asp.net web applicattions. What we do is copy UserControls.dll to all the applications bin...
3
by: Brian | last post by:
Is there a way to compile a program using strong name and a key file while including an outlook dll? Everytime I attempt to compile I get the following error. Unable to emit assembly:...
0
by: pottschmidtr | last post by:
I receive the following error 'Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral,...
1
by: Michael | last post by:
Help please Trying to strong name sign my project within the Assembly using the KeyFileAttribute with a sn generated key and getting an error message that one of the referenced dll's...
8
by: per9000 | last post by:
Dear readers, I have some problems with strong keys. What I want to do is basically this. A - create an application (f.x. strongHello.dll) with a strong key. B - import the functions of this...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.