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

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 programmatically?
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 1576
In other words, how to programmatically change the code access security of
..net 2.0 on the machine so programs can be lunched on remote
machines(localintranet) 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.com

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

Hello,

I need to assign local intranet permission to an application .
How can i do this programmatically?
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.com


The machine from where the app is being lunched does not have the the .net
2.0 SDK. mscorecfg.msc(The 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**************@TK2MSFTNGP09.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.com
| >
|
| The machine from where the app is being lunched does not have the the .net
| 2.0 SDK. mscorecfg.msc(The 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**************@TK2MSFTNGP10.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\Microsoft.NET\Framework\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
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...
3
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
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...
4
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.