A questions about the need to install the .NET2 SDK

Dear All,

Having successfully installed some .NET1.1 app's we've turned our attentions to version 2. When we installed .NET1.1 app's we had to modify the Local Intranet trust levels to allow our app's to work. This we could do on our users' PC's as they where able to run the .NET1.1 configuration. However, when we come to .NET2, they don't have any .NET2 configuration. Unless we install the SDK, we can't increase the trust level and the app's don't work.

So my question is, do we need to install the SDK in order to modify the trust levels or is there some other way to do it. Alternatively, am I missing some whole new aspect of security settings within .NET ? I note that we are also able to set up trusted/partially trusted app's with the security tab of the project (and click once).

Can anybody point me in the right direction on this matter?

Cheers,

Tim

[1329 byte] By [MORRTI] at [2007-12-24]
# 1
You can use the caspol.exe command line tool. Check this thread (any many others on these forums)...
nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Hi Hans,

Thanx for the reply. Having tried this we are still getting the security problem. Talking to the folks @ work and may be I should clarify the problem. Our application opens up ok, but the first time we try any DB access we are getting the security problem., it reads ...

The action that failed was:
Demand
The type of the first permission that failed was:
System.Data.SqlClient.SqlClientPermission
The Zone of the assembly that failed was:
Intranet

As regards the fix you suggested, I've run the caspol.exe on my PC against the share where the app' sits. However I still need to set the trust level (to Full) on the users PCs for the app to work. Setting it to the default value caused it to fail.

I've sent your post to our desktop and server teams for them to try to help out ...

Thanx,

Tim

MORRTI at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
Let's

count on them, it's their job ;-). Of course, they can always

start a thread too. Tell them to go to the "Common Language

Runtime" forum.

nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic General...