Results 1 to 3 of 3

Thread: Getting Security Exceptions While Testing!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Location
    Painesville, OH
    Posts
    70

    Getting Security Exceptions While Testing!

    I used ascertia.com to generate a free code signing certificate.
    I successfully signed my code with Code Signer Pro.
    Great, I no longer get the "unknown publisher" warning!
    But, now when I test my program using Visual Studio 2005,
    I get all kinds of Security Exceptions!

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Getting Security Exceptions While Testing!

    What is it that the exception are trying to do/access? Did you code for security access?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Location
    Painesville, OH
    Posts
    70

    Re: Getting Security Exceptions While Testing!

    I am getting exceptions on a wide variety of commands.

    This is only one of many:
    System.Security.SecurityException was unhandled
    Message="Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
    Source="mscorlib"

    I did not code for security access.
    I just wanted to eliminate the "unknown publisher" warning when users download the 30 day free trial of my Windows app.
    I had a Temporary key in my Setup1.msi.
    I deleted it from the keystore when I used ascertia.com to generate a free code signing certificate.
    This caused some problems, then I deleted the Temporary Key from my Setup1.msi.
    This is what seems to have caused the problem.

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