Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 99738

@User 99738
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • System.Environment.MachineName exception
    U User 99738

    I'm not sure what test users permissions are??? sorry, but I created a new user with guests rights. What could I possibly change? (Something .net relative perhaps, changing assembly trust, library trust, executable trust .......) Thanks, Paul

    C# workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    Hi, I don't believe it is signed. If it is I didn't do it. :) thx, Paul

    C# workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    Last message was a little vague, sorry This is just running locally (not over a network). Since I have limited time with my client was wonderiing if you know of anyway I could simulate this on my local machine and is there was a way to include a security policy with the executeable or deployment package.

    C# workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    This is just running locally. If you know of anyway I could simulate this locally that would be helpful as well. thx Paul

    C# workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    Since I have limited time with my client, it would be best if I could simulate this error on my local machine. Can you think of any ways I can give this app, assemblies, groups less rigths, ty

    C# workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    User is logged in as an admin. Not sure what you mean by permission?

    C# workspace csharp asp-net security help

  • System.Environment.MachineName Exception
    U User 99738

    Hi, I'm using the following code to get the Machine name in an app System.Environment.MachineName On most computers this works fine but on one of our testers computers (machine is a windows 2000 desktop pc, not a networking share either), it's throwing the following exception. Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version = 1.0.50000.0, Culture = neutral, publicKeyToken = blahblahblah failed. I have no idea what is causing this. I tried messing around with the .Net Configuration. Figured mscorlib didn't have permission rights. also......... I can't get any computer information in general. Trying to do some WMI core queries as well from code and getting a "Security Error" Exception. Below is the code that gets the disk size. public string GetsDiskSize(){ ManagementClass cimobject; ManagementObjectCollection moc; cimobject = new ManagementClass("Win32_DiskDrive"); moc = cimobject.GetInstances(); try { // BIOS INFO foreach(ManagementObject mo in moc){ this.m_sDiskSize = GetSystemValue("Size",mo); mo.Dispose(); break; } } catch(Exception ex){ System.Windows.Forms.MessageBox.Show("GetsDiskSize " + ex.Message); cimobject.Dispose(); moc.Dispose(); return ex.Message; } cimobject.Dispose(); moc.Dispose(); return this.m_sDiskSize; }

    .NET (Core and Framework) workspace csharp asp-net security help

  • System.Environment.MachineName exception
    U User 99738

    Hi, I'm using the following code to get the Machine name in an app System.Environment.MachineName On most computers this works fine but on one of our testers computers (machine is a windows 2000 desktop pc, not a networking share either), it's throwing the following exception. Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version = 1.0.50000.0, Culture = neutral, publicKeyToken = blahblahblah failed. I have no idea what is causing this. I tried messing around with the .Net Configuration. Figured mscorlib didn't have permission rights. also......... I can't get any computer information in general. Trying to do some WMI core queries as well from code and getting a "Security Error" Exception. Below is the code that gets the disk size. public string GetsDiskSize(){ ManagementClass cimobject; ManagementObjectCollection moc; cimobject = new ManagementClass("Win32_DiskDrive"); moc = cimobject.GetInstances(); try { // BIOS INFO foreach(ManagementObject mo in moc){ this.m_sDiskSize = GetSystemValue("Size",mo); mo.Dispose(); break; } } catch(Exception ex){ System.Windows.Forms.MessageBox.Show("GetsDiskSize " + ex.Message); cimobject.Dispose(); moc.Dispose(); return ex.Message; } cimobject.Dispose(); moc.Dispose(); return this.m_sDiskSize; } Thx for your time, Paul

    C# workspace csharp asp-net security help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups