JIT Debugging failed: Access is denied

Posted on 2009-02-23
Last Modified: 2013-11-07
I can the following error message when my code tries to execute, JIT Dubugging failed with the followint error: Access is denied.  JIT  Debugging was initiated by the user account 'MDK\someuseraccount'.

I looked for an answer on this forum and this account has full admin rights to the system and is in a member of the Debugger Users.  

Quick background on the application.  We have about 50 dlls in the GAC that we developed with different business logic.  All our applications use one or more of them, but cModatekGlobals.dll is used by ALL of our applications, it's responsible for the connection strings.  One of my windows all is throwing the above error, and a new "hello world" all that I created throws that error as well, but if I remove the cModatekGlobals as a reference it works find.  Our web apps which reference same assembly function fine.  I'm not sure what else I can do.  This assembly is back from 2006 and has not be changed, but seems to me now we're having issues on our production box.  I should say, that on my machine I'm not getting this message and everything runs correctly.  Any help will be much appreciated.
Question by:MDKDevelopers
    1 Comment

    Accepted Solution

    My system admin looked into the problem, he did the below:

    The fix is the 2nd from the bottom from Robinson
    This makes the JIT Debugging message box disappear but then I get the debug details in the command prompt
     The error is below.  

    Unhandled Exception: System.ArgumentNullException: Value cannot be null.
    Parameter name: address
       at System.Net.Mail.MailAddress..ctor(String address, String displayName, Enco
    ding displayNameEncoding)
       at System.Net.Mail.MailAddress..ctor(String address)
       at cModatekGlobals.ModatekGlobals.cModatekGlobals.EmailError(String strBody)
       at cModatekGlobals.ModatekGlobals.cModatekGlobals..ctor()
       at ConsoleApplication1.Module1.Main()

    This gave me a good error message and I was able to track down the problem

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now