Hello,
how can I mark a Server as "trusted location"
Problem:
Was studying C# during my holidays on my notebook.
Wanted to transport the projects to our code-fileserver in the company. But now some parts of the application won't run. Message: "That assembly does not allow partially trusted callers."
If I copy the project to the local harddisk, it runs without problems.
But I need it running from our development fileserver.
How to add this Server to my "trusted locations"
thanks,
Andre

How to trust an intranet-server?
JGN
dizzyjay
I use the following
@set CASPOL=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\caspol.exe
@%CASPOL% -machine -addgroup All_Code -url "file://APPS1/*" FullTrust -name "APPS1" -description "Applications residing on the network share \\APPS1"
It is different if you are using the 2.0 framework
mayurkotlikar
In my situation it was absolutely useless to set the policy for the "machine"-range.
Setting the policy for the "enterprise"-range did the trick.
Now I have to discuss with admins if this is such a good idea.
I still hope to get a clean solution by MS, of how I can tell my locally installed VS 2005 that Server XY of our local Intranet is trusted, on "machine"-level.
ciao,
Andre
Ducbian
since I was not able to solve my problem, I tried also your soggestion as well.
It works the same with 2.0; you just have to call the caspol.exe for the correct version.
Alas,
it did not solve the problem either.
Now I do have a new entry in the section
Runtime Security Policy/Machine/Code Groups/All_Code/CodeServer
(where CodeServer is just the name for my new entry)
The properties of this new entry are showing (on the tab "membership condition"):
"condition type" := "URL"
"URL" := "file://CodeServer/*"
(where CodeServer is the name of the network share)
I tried several other things (Computername, full path...), but nevertheless, this location is not trusted.
Do you, or does somebody else, have a further idea
thanks,
Andre
sunilkumar
but I somehow don't seem to be able to.
I used the Configuration Tool to increase trust-level for _all_ zones (as a test only, of course) to "full trust".
Nevertheless, starting Visual Studio again, trying to open the project, I get a "this location is not trusted..."
How's that possible that this remote server is not in any of the zones Or, what did I get wrong here
Maybe you have a step-by-step for dummies.
The Server with the code-libraries is named "S05-01" and it has an IP-Adress in our local network (192.168...)
thanks once more in advance,
Andre