473,794 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running application in local intranet

I´ve made a desktop application in C# (.NET 1.1) and now I would like
it to run in a local intranet. I know that I can change the .NET
configuration on each client and give the specific application
FULL_TRUST permission on the machine ... but isn´t there an easier way
??

Each assembly in the application is strong named, and I seem to
remember that this should make it possible to have .NET prompt each
user for FULL_TRUST permission when the application is initially
launch. This would remove the need for changing the .NET configuration
on each machine and make my life much easier :-)

Is this possible or is my memory playing me for a fool :-)

Regards
Bjarne

Feb 8 '06 #1
5 2122
Hello Bjarne,

What you can possibly do is to create a code group for your application on
the enterprise security policy level and designate the "FullTrust"
permission set for said code group. The strong name of the application's
assembly can serve as the evidence for the code group membership condition.

<bj****@eurisko .dk> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com...
I´ve made a desktop application in C# (.NET 1.1) and now I would like
it to run in a local intranet. I know that I can change the .NET
configuration on each client and give the specific application
FULL_TRUST permission on the machine ... but isn´t there an easier way
??

Each assembly in the application is strong named, and I seem to
remember that this should make it possible to have .NET prompt each
user for FULL_TRUST permission when the application is initially
launch. This would remove the need for changing the .NET configuration
on each machine and make my life much easier :-)

Is this possible or is my memory playing me for a fool :-)

Regards
Bjarne
Feb 8 '06 #2
or, if you plan to deploy several applications which will have of course different
strong names, you could set up the policy level using the Publisher's signing
certificate (which generates an Authenticode signature on the assembly) as
evidence. This would then apply to ANY assembly signed by the (presumably
enterprise-trusted) certificate with its associated fingerprint.
- Mitch Gallant
MVP Security

"Dmytro Lapshyn [MVP]" <x-****@no-spam-please.hotpop.c om> wrote in message
news:e$******** ******@TK2MSFTN GP09.phx.gbl...
Hello Bjarne,

What you can possibly do is to create a code group for your application on the enterprise security
policy level and designate the "FullTrust" permission set for said code group. The strong name of
the application's assembly can serve as the evidence for the code group membership condition.

<bj****@eurisko .dk> wrote in message news:11******** *************@g 43g2000cwa.goog legroups.com...
I´ve made a desktop application in C# (.NET 1.1) and now I would like
it to run in a local intranet. I know that I can change the .NET
configuration on each client and give the specific application
FULL_TRUST permission on the machine ... but isn´t there an easier way
??

Each assembly in the application is strong named, and I seem to
remember that this should make it possible to have .NET prompt each
user for FULL_TRUST permission when the application is initially
launch. This would remove the need for changing the .NET configuration
on each machine and make my life much easier :-)

Is this possible or is my memory playing me for a fool :-)

Regards
Bjarne

Feb 8 '06 #3
Hello Dmytro

With the risk of sounding stupid ... how do I do that ? :-)

Feb 8 '06 #4
As an addition to this, I am trying to do a very similar thing, however
after adding a code group with the strong name for the dll as evidence,
it still does not work. The only time it works is if I set ALL CODE to
FULL TRUST. Any clues?

Thanks

Feb 8 '06 #5
Hello Bjarne,

These links should be a good start.

http://www.15seconds.com/issue/040121.htm
http://msdn2.microsoft.com/en-us/library/w0fa60b5.aspx
"Bjarne Riis" <bj****@eurisko .dk> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
Hello Dmytro

With the risk of sounding stupid ... how do I do that ? :-)

Feb 9 '06 #6

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

Similar topics

10
2049
by: Tobias Nilsson | last post by:
I have almost exactly the same problem as the guy below. Is it NOT possible running .NET code locally in Internet Explorer WITHOUT a webserver???? / Tobias --------- My company has in the past created local browser applications with front end in HTML/JavaScript and backend in the form of a Java applet. The applet code contained the business code and calculations. Benefit of this approach is
4
1522
by: Mario Reiley | last post by:
If I put my .exe file on my Local Network (in a Folder of course) and try to run from my Pc which would be the causes ? such application don't Run. I make the Wrap a COM component for Export data to MS-Excel: Interop.Excel.dll Interop.VBIDE.dll Note: Only Run in my local PC
1
1805
by: Zak Taemur | last post by:
Whenever I try to run my application I get the following error: "An unhandled exception of type 'System.Security.SecurityException' occured in WorkFlow-Projects.exe Additional information: Request failed" I have my project files on a network share drive on our
2
7071
by: David Lindgren | last post by:
Hello! When I am trying to run my .NET application from a network drive a System.Security.SecurityException exception is thrown. Why is that? How do I prevent it? Thanks! /David.
4
2541
by: GTi | last post by:
Maybe is this a old and well known question, but can't my C# .NET application run from a network share? Running it from a local disk is OK but not from my F:\ disk (nettwork disk).
3
3556
by: Sebastian Santacroce | last post by:
Running an VB .net application off the network, is this possible? I try running the executable on a network and it gives me an exception error: An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module. Additional information: The type initializer
3
6560
by: Uday Deo | last post by:
Hi everyone, My coworker has a simple desktop app created in VB.NET. He compiled it and posted on the network drive. When we try to run it from it's network location, it generates unhandled exception error. When we run it from local machine it runs fine. Two things I want to get clarified. 1. Does VB.NET requires any specific namespace to be imported to run the exe over network?
4
4674
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients and a desktop shortcut to the exe out on the network)... but is it really a good idea? What are some arguments for and against running a .NET Windows Forms client from a network share? Here is my initial list... I'd appreciate any additions,...
11
2013
by: John Sheppard | last post by:
Hello there, I am running a webservice on IIS6, sometimes it runs at a reasonable speed, sometimes it runs painfully slow and sometimes inbetween. The application that consumes the service is vb.dotnet and runs on a local area network. Does anyone have any ideas? Where should I start to look? What could be causing this? Thank you for any help or ideas
0
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
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...
1
10161
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,...
0
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6777
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();...
1
4112
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
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
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.