473,725 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to run .net 2.0 from an intranet location


Hello,

I need to assign local intranet permission to an application .
How can i do this programmaticall y?
The host machine where the app resides does not have the graphical
configuration tool installed?

Many thanks in advance
JJ
Feb 2 '06 #1
8 1586
In other words, how to programmaticall y change the code access security of
..net 2.0 on the machine so programs can be lunched on remote
machines(locali ntranet) from that network?

Feb 2 '06 #2
jens,

Are you sure that the app is not installed, or do you just not have
permissions to see the app? If the graphical user interface is not there,
then it is most likely that there is a problem with the install, as it is
not an "optional" utility.

Doing it in code would require another app domain to be created etc,
etc, and it's just not worth it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"jens Jensen" <je**@jensen.dk > wrote in message
news:eB******** *****@TK2MSFTNG P12.phx.gbl...

Hello,

I need to assign local intranet permission to an application .
How can i do this programmaticall y?
The host machine where the app resides does not have the graphical
configuration tool installed?

Many thanks in advance
JJ

Feb 2 '06 #3
>
Are you sure that the app is not installed, or do you just not have
permissions to see the app? If the graphical user interface is not there,
then it is most likely that there is a problem with the install, as it is
not an "optional" utility.

Doing it in code would require another app domain to be created etc,
etc, and it's just not worth it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m


The machine from where the app is being lunched does not have the the .net
2.0 SDK. mscorecfg.msc(T he scurity configuration tool for .net 2.0) comes
with the sdk.
Feb 2 '06 #4

"jens Jensen" <je**@jensen.dk > wrote in message
news:uT******** ******@TK2MSFTN GP09.phx.gbl...
| >
| > Are you sure that the app is not installed, or do you just not have
| > permissions to see the app? If the graphical user interface is not
there,
| > then it is most likely that there is a problem with the install, as it
is
| > not an "optional" utility.
| >
| > Doing it in code would require another app domain to be created etc,
| > etc, and it's just not worth it.
| >
| > Hope this helps.
| >
| >
| > --
| > - Nicholas Paldino [.NET/C# MVP]
| > - mv*@spam.guard. caspershouse.co m
| >
|
| The machine from where the app is being lunched does not have the the .net
| 2.0 SDK. mscorecfg.msc(T he scurity configuration tool for .net 2.0) comes
| with the sdk.
|
|

mscorecfg.msc is no longer distributed as an end-user tool, you need to use
caspol.exe to set the appropriate CAS level.

As an example, following command sets full trust for all assemblies loaded
from the url \\machine\share

CasPol.exe -pp off -m -ag 1.2 -url file://machine/share/* FullTrust

Check following for more info:
http://msdn2.microsoft.com/en-us/library/a0ke3k86.aspx

Willy.
Feb 2 '06 #5
>
As an example, following command sets full trust for all assemblies loaded
from the url \\machine\share

CasPol.exe -pp off -m -ag 1.2 -url file://machine/share/* FullTrust

Check following for more info:
http://msdn2.microsoft.com/en-us/library/a0ke3k86.aspx

Willy.


Thanks,
It does not seem like caspol.exe comes with .net 2.0 framework.
Feb 2 '06 #6

"jens Jensen" <je**@jensen.dk > wrote in message
news:Og******** ******@TK2MSFTN GP10.phx.gbl...
| >
| > As an example, following command sets full trust for all assemblies
loaded
| > from the url \\machine\share
| >
| > CasPol.exe -pp off -m -ag 1.2 -url file://machine/share/* FullTrust
| >
| > Check following for more info:
| > http://msdn2.microsoft.com/en-us/library/a0ke3k86.aspx
| >
| > Willy.
| >
| >
|
| Thanks,
| It does not seem like caspol.exe comes with .net 2.0 framework.
|
|

Sure it does, it's in the framework install directory, like :
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727

Willy.

Feb 2 '06 #7
yes, that i scorrect....
Feb 2 '06 #8
Willy,

I have to get around to looking at this on our network as well.

I've read that it's generally a better idea to strong-name all of our
assemblies with a single, company-wide strong name key, and then use
caspol.exe to give full trust to assemblies signed with that key. That
way we can locate the assemblies anywhere on our network we like,
without opening up a security hole such as trusting anything coming off
a particular server, no matter who wrote it.

Is that a sensible approach? I'm asking because I figure that if the
answer is "no" then I can save myself a bunch of time. :)

Feb 3 '06 #9

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

Similar topics

10
3565
by: Chris Sharman | last post by:
I'm doing a rough validation of an email address client-side (using js), but it's not enough - our customer service people are apparently incapable of typing in an email address without error - we get spaces, missing '@', multiple '@' which we can field, and simple mis-spellings, which we can't. I'd like to automate a 'mailto:' popup for them on submit, along the lines of "thanks for your email address, just verifying I've got it right"....
3
2026
by: Sue | last post by:
What is the difference between an intranet and a network? Can a split database be put on an intranet? Thanks! Sue
2
2908
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public users). If user is from intranet, web server should recognize it and application should create additional options in controls regarding groups the user belongs to. If user is from extranet it should be logged in as anonymous and a link to login page...
4
1987
by: Barbiturico76 | last post by:
Hi guys, anybody knows if it is possible to generate a <div id="myMap" style="width: 400; height:300; left: 0px; top: 0px;" /> inside your intranet site, to represent a programmatically generated map with the "http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1" script reference?
0
1732
by: Mark112 | last post by:
Hi I am attempting to restore the search feature that was created by an external company using the indexing service for our intranet. the intranet is located locally at each of our offices. The search isn't working on our 2 newest servers at 2 of our branches - Windows Standard 2008 sp2- using IIS 7. The search page is an aspx page. I have the indexing service indexing the intranet folder using mmc. If i go to indexing in the control panel it...
0
8752
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
9401
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
9257
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
9176
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
8097
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...
1
6702
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
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
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
2157
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.