|
-
Dec 20th, 2003, 11:08 PM
#1
Security Exemption
I store my programs on my computer that I also use as a server. If I access the source code and compile it from the server on another computer, I get an exemption because it is remotely executing .NET code.
How can I turn it off or maybe make the computer trust the server?
-
Dec 21st, 2003, 03:05 AM
#2
You should be able to set the security zones in the .NET Framework Configuration thingy. It should be in the Administrative Tools. You can use a url type path to the computer or use the wizard to trust a particular assembly.
-
Dec 21st, 2003, 02:07 PM
#3
Where exactly is the .NET configuration utility? I was looking for it but didn't seem to find it, which is why I made this thread.
-
Dec 21st, 2003, 02:46 PM
#4
PowerPoster
%WinDir%\Microsoft.Net\Framework\(theframeworkyouhave)\Configuration
Something like that above.
-
Dec 21st, 2003, 02:49 PM
#5
PowerPoster
Or look in this directory:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
for this app:
ConfigWizards.exe
-
Dec 21st, 2003, 03:40 PM
#6
Well I made the local intranet trusted but it refused to work, I had to trust EACH damn file for my project to get it to work, but I get wierd errors I don't get when I run it on the computer locally.
Like in my sub main() I got code that executes. It executes, but if I open up a certain form, it throws an exemption that is located WITHIN the code that has ALREADY executed.
Ugh
-
Dec 21st, 2003, 05:23 PM
#7
PowerPoster
Have you signed your assemblies?
This will create a bunch of problems on a network based app, but not a local based app.
-
Dec 23rd, 2003, 11:21 AM
#8
I sometimes use the same setup (store most code on a central server) instead of giving the Intranet Zone Full-Trust you have to make a new entry for the server itself. Pull up the configuration thing for .NET not the wizard then go to 'Runtime Security Policy' and the 'Machine' node. It seemed to me that the Enterprise node would make more sense but it didn't work as expected. Anyway go to 'Code Groups'->'All_Code' then with that selected click 'Add a Child Code Group' in the center menu. This launches a wizard type thing and askes you to name the new group do that. On the next dialog it asks you to choose a condition, from the dropdown select 'URL' which adds a spot to enter a url. For the URL you want to add the network address of the server and share you are using. For instance my server is Mephisto and all the code is in the Code folder for me so I use '\\mephisto\code\*. The * should cover all the files in that location then just set the security for that group to Full Trust and you should be good to go. At least that worked for me.
I think it translates it to 'file://mephisto/code/* so I suppose you could enter that too if you wanted.
-
Dec 24th, 2003, 01:23 AM
#9
Originally posted by Edneeis
Pull up the configuration thing for .NET not the wizard
*crys*
I asked several times, where the hell is the configuration thing FOR .NET at?!?!
Bah, this would have been resolved a while ago if someone would tell me where the hell it is!
-
Dec 24th, 2003, 01:29 AM
#10
Nevermind, I got it.... finally
-
Dec 24th, 2003, 09:43 PM
#11
Originally posted by Edneeis
You should be able to set the security zones in the .NET Framework Configuration thingy. It should be in the Administrative Tools. You can use a url type path to the computer or use the wizard to trust a particular assembly.
I said in the first post. Its in the Administrative Tools for the OS, at least it is for Win 2k or higher. Well sorry but I guess if you got it now then its all good.
-
Dec 24th, 2003, 11:28 PM
#12
Originally posted by Edneeis
I said in the first post. Its in the Administrative Tools for the OS, at least it is for Win 2k or higher. Well sorry but I guess if you got it now then its all good.
I don't know where the administrasive tools are. I know how to get to computer management, directX and such, but I don't have any special folders, shortcuts or anything for :administrasive tools". I had to manually dig into the directories and I found it as a msc file. I assumed it would be an executable so I wasn't looking for msc.
-
Dec 25th, 2003, 02:45 AM
#13
Where Admin Tools is at depends on what OS you are using, but generally its in the Control Panel. In XP its either off of the Start Menu or in the Control Panel->Performance and Maintenance->Administrative Tools. Then there are two things related to the Framework, 'Microsoft .NET Framework 1.1 Wizards' and 'Microsoft .NET Framework 1.1 Configuration'. The Configuration one is what I use.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|