Is it possible to change Intranet Zone to Full Trust thrue code?
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?
i highly doubt you can change to full trust via an application, i've tried to programatically change a handful of security settings all with negative results. Are you talking about the error you get running a .net program from a network drive because windows doesnt trust .net apps executing from a network drive, or your app is trying to write a file and the user doesnt have write permissions to the network drive? in either event i dont think theres any way to change it from the app, but you may convince whoever is deploying it to give write access to that directory for the latter problem. to solve the former you'll have to deploy it to each computer, or manually tell windows to trust that app on each system. I've had a similar problem before 6 mo or a year ago and couldnt find a work around aside from changing the setting on each computer, so i just told the users they had to locate the app on the system that would run it tho it doesnt sound like that solution will work for you.
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?
NO AND IT ABSOLUTELY SHOULD NOT BE ALLOWED TO HAPPEN. Being able to do this would be a road paved in gold for malware writers. "No need to worry about user security settings we can just turn it off for them WOOHOO!"
You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?
Due to user feedback, Microsoft will be adding this to .NET 3.5 Service Pack 1: .NET 3.5 SP1 apps will run with full trust from the Intranet Zone[^]. .NET 3.5 SP1 will be released this summer, so if you can wait until then, you're all set. Until then, you'd have to setup a .NET security policy.
Life, family, faith: Give me a visit. From my latest post: "When Constantine severed the Hebrew origins of this faith in Messiah, a new religion was officially created. It is this religion that Orthodox Jews fear their relatives and friends becoming members of." Judah Himango
-
I'm currently developing a desktop application in C# that will be installed on a network drive. This will cause FileIOPermission error because the users don't have the Full Trust on the Intranet Zone. I don't want that the user should have to install the SDK to change the settings and wonder then if it possible to change the settings to Full Trust thrue the application?