300Mb Download to run a .NET2.0 Application?

S

Scott H

I spent most of yesterday looking into this, and still didn't really find
an answer...

I have a .NET2.0 app that I need to install on a server, and then possibly
several other servers later, it requires access to LAN and internet. I
installed the 20mb Framework, then drop my program on there, but theres no
Framework Configuration for 2.0 only the 1.1 version (MSCORCFG.MSC) so I
can't alter the security, and so my app fails to access the LAN etc.

I then tried copying the 2.0 MSCORCFG.MSC and DLL across to see if I can
run that, but it failed.

The only way I see of resolving this is to install the .NET2.0 SDK on each
server and PC. All the applications I develop require LAN and Internet
access, and some require installing onto several PCs, so a 300mb Download
isn't really acceptable.

Scott
 
S

Scott H

Sorry Ken, but Theres no "Framework 2.0 Configuration" when the 23mb
Framework is installed, so I can't alter the security, tried it on two
Windows 2003 Servers now, then I put the SDK on one of them, and the
Config program appeared.

Its not that its simply not putting it in the start menu, the MSCORCFG.MSC
for 2.0 is not on the PC.

Ouch! So maybe I should stick with .NET 1.1 and wait for .NET 2.1 to come
out :)
 
H

Herfried K. Wagner [MVP]

Scott H said:
Sorry Ken, but Theres no "Framework 2.0 Configuration" when the 23mb
Framework is installed, so I can't alter the security, tried it on two
Windows 2003 Servers now, then I put the SDK on one of them, and the
Config program appeared.

You can actually still alter security by using the "CASPOL.EXE" command-line
tool which is IIRC still part of the .NET Framework. In large heterogenous
corporate networks it may be possible to deploy a security policy via an MSI
package alternatively:

How do I deploy my security policy?
Its not that its simply not putting it in the start menu, the MSCORCFG.MSC
for 2.0 is not on the PC.

Maybe the control-panel applet has been removed because it has been rarely
used by "home users". I cannot imagine a home user changing security
settings for an assembly without reducing security by setting the wrong
options...
 
S

Scott H

Thanks, I'll have a look at that URL, as I'm still not clear on that.

I have found a kind of solution that seems to work well, and I can't
belive how easy it is...there must be a catch :)

The new "ClickOnce" technology. Not only does it install the framework if
required, but sets the security, installs a shortcut and updates itself,
all I have to do is "Publish"...Brilliant!

It seems to be working well so far.

Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top