473,396 Members | 1,916 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.

smartclient strong named problem...

hi~
I made smartclient.
First, I made a StrongNamed Key(snk file).
I add my key file and set allow partiallytrustedcllers.
[assembly: AssemblyKeyFile(@"..\..\mykey.snk")]
[assembly: AllowPartiallyTrustedCallers]
I add new code group under All_Code -> Internet_Zone.
Member condition = strong named.
Strong named key value = my smartclient strong named key value.
Permission Set = FullTrust
and so, I opened my smart client page by internet explorer.
It's so good, if the control isn't against the rules of Internet_Zone
security policy.
but,
I executed Process.Start(), it raise SecurityPermissionException.
I accessed another site by WebClient, it raised WebPermissionException.

AxWebbrowser, it raised UIPermissionException or
SecurityPermissionException.
so I added that code under namespace.
[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
so, Process.Start() or WebClient didn't raise Exception.
but AxWebbrowser still raise Exception, it related security.
and I used this code.
[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
If I didn't set FullTrust at runtime security policy
, Assembly loading was blocked.
so I edit it to class internal member variable.
private PermissionSet permissionSet = new
PermissionSet(PermissionState.Unrestricted);
before execute Process.Start() or WebClient, I do
permissionSet.Assert();
Security Exception didn't raise.
but AxWebbrowser still raise Security Exception.
How can I run my full code by FullTrust by from smart client loading
time?
I wish to inform my customer, if they haven't full trust permission at
runtime security policy.
but it's impossible by
[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
How do I inform it?
Please reply my question...

Nov 17 '05 #1
0 1146

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

Similar topics

10
by: Tony Jones | last post by:
Can anyone think of a reason why a 3rd party vendor writing .NET components would NOT strong name their assemblies? What harm does adding a strong-name to assembly present - I would think none...
3
by: lanky_tx | last post by:
Hi All, We have an automated build and test environment using NAnt and Nunit. Some of our assemblies are being strong named by modifying the AssemblyInfo.cs and having csc compile it. Some of...
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:...
8
by: Tamir Khason | last post by:
Following the code: Assembly myAssembly = Assembly.LoadFrom(FileName); foreach (Type myType in myAssembly.GetTypes()) {Do_whatever()}
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...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
7
by: Alan T | last post by:
I have create a class library and add it to the reference list in one of the projects. However, when I compile the project and got the error: Assembly generation failed -- Referenced assembly...
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.