473,806 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

smartclient strong named problem...

hi~
I made smartclient.
First, I made a StrongNamed Key(snk file).
I add my key file and set allow partiallytruste dcllers.
[assembly: AssemblyKeyFile (@"..\..\mykey. snk")]
[assembly: AllowPartiallyT rustedCallers]
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 SecurityPermiss ionException.
I accessed another site by WebClient, it raised WebPermissionEx ception.

AxWebbrowser, it raised UIPermissionExc eption or
SecurityPermiss ionException.
so I added that code under namespace.
[PermissionSet(S ecurityAction.A ssert, 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(S ecurityAction.A ssert, 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(P ermissionState. Unrestricted);
before execute Process.Start() or WebClient, I do
permissionSet.A ssert();
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(S ecurityAction.A ssert, Name = "FullTrust" )]
How do I inform it?
Please reply my question...

Nov 17 '05 #1
0 1168

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

Similar topics

10
2697
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 whatsoever. Strong-naming the assembly should benefit the end user just in case he/she wants to reference the assembly in another strong-named assembly or add it to the GAC. If you were a third-party vendor, would you strong-name your...
3
2997
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 these strong named assemblies are being dynamically loaded into the runtime. We store the metadata information about the strong named assemblies in a config file. Metadata in the config file looks like this:
20
3201
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I set my project properties as 'Register as COM interop' to true, I can install it my project on my developement machine without a flaw. Great.
8
1861
by: Tamir Khason | last post by:
Following the code: Assembly myAssembly = Assembly.LoadFrom(FileName); foreach (Type myType in myAssembly.GetTypes()) {Do_whatever()}
3
6113
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 C++ Projects -> .NET -> Class Library (.NET) in the main file I add the lines at the beginning of the file
6
1656
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 folders an this works correctly. We want to have this shared code in the GAC.
1
2371
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 installed into the GAC. We originally had this assembly without a strong-name and we were successfully using it by referencing it when it was NOT in the GAC. The assembly was built using the 1.0 framework and we were able to call it from both 1.0...
7
23126
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 'ApplicationsDataAcsess' does not have a strong name. What is that mean? Is my clas library should have another name? Or something inside problem?
6
5687
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 since I've installed so many versions of Visual Studio) RL http://msdn.microsoft.com/en-us/library/h4fa028b.aspx Deployment in Visual Studio
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10369
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10372
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.