.NET security warning?

Discussion in 'Programming General' started by Rs2Cheater.net, Aug 26, 2007.

.NET security warning?
  1. Unread #1 - Aug 26, 2007 at 3:11 AM
  2. Rs2Cheater.net
    Joined:
    Jul 30, 2007
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0

    Rs2Cheater.net Member

    .NET security warning?

    Okay, with my program, whenever i click download link and then run i get a security warning and my program wont run....

    [​IMG]

    however when i click the download link and then save the program to desktop and then run it, it works fine

    what the prob plz?
     
  3. Unread #2 - Aug 26, 2007 at 1:41 PM
  4. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    .NET security warning?

    whats the details?
     
  5. Unread #3 - Aug 26, 2007 at 11:18 PM
  6. Rs2Cheater.net
    Joined:
    Jul 30, 2007
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0

    Rs2Cheater.net Member

    .NET security warning?

    The details as follows:

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
    at System.Security.CodeAccessPermission.Demand()
    at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
    at System.Windows.Forms.SendKeys.Send(String keys)
    at AutoSpam_.Form1.Timer1_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The action that failed was:
    Demand
    The type of the first permission that failed was:
    System.Security.Permissions.SecurityPermission
    The Zone of the assembly that failed was:
    Internet


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    AutoSpam!
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Alex%20%26%20Will/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/O1O9IBOT/AutoSpam!%5B1%5D.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.



    ty for the help!
     
  7. Unread #4 - Aug 26, 2007 at 11:33 PM
  8. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    .NET security warning?

    looks like some sort of administration problem, Flaming or cooladrrang would know
     
  9. Unread #5 - Aug 27, 2007 at 12:57 AM
  10. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    .NET security warning?

    Try placing the following attribute in front of the Timer1_Tick sub.
    Code:
    <Security.Permissions.PermissionSet(Security.Permissions.SecurityAction.Demand, Name:="FullTrust")>
    It should look like this:
    Code:
        <Security.Permissions.PermissionSet(Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
        Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
             ' Do your stuff here.
        End Sub
     
  11. Unread #6 - Aug 27, 2007 at 6:14 AM
  12. Rs2Cheater.net
    Joined:
    Jul 30, 2007
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0

    Rs2Cheater.net Member

    .NET security warning?

    great, thx for all the help... but (lol)

    now i have this problem....

    [​IMG]

    lol, i know im probabl;y doing something stupid ;-)
     
  13. Unread #7 - Aug 27, 2007 at 8:42 PM
  14. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    .NET security warning?

    add a _ after Name:="FullTrust")>

    like originally posted
    Name:="FullTrust")> _
     
  15. Unread #8 - Aug 28, 2007 at 5:30 AM
  16. Rs2Cheater.net
    Joined:
    Jul 30, 2007
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0

    Rs2Cheater.net Member

    .NET security warning?

  17. Unread #9 - Aug 29, 2007 at 8:24 PM
  18. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    .NET security warning?

    i dont get any security warnings, may have to do with settings on your PC account. Limited user?
     
  19. Unread #10 - Aug 30, 2007 at 4:16 AM
  20. Rs2Cheater.net
    Joined:
    Jul 30, 2007
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0

    Rs2Cheater.net Member

    .NET security warning?

    ahh okay.. thx m8 for testing the program... ill look into what might be wrong on my computer!

    :)
     
< Send Keys Human? | Help - Adding dll thru code [Add dll in running time] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site