Results 1 to 13 of 13

Thread: Security Exemption

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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.

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    %WinDir%\Microsoft.Net\Framework\(theframeworkyouhave)\Configuration

    Something like that above.

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Or look in this directory:

    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

    for this app:
    ConfigWizards.exe

  6. #6

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Have you signed your assemblies?
    This will create a bunch of problems on a network based app, but not a local based app.

  8. #8
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  9. #9

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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!

  10. #10

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Nevermind, I got it.... finally

  11. #11
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  12. #12

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    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.

  13. #13
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width