<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to attach the revit.exe to visual studio debugger in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7922760#M51045</link>
    <description>&lt;P&gt;I'm not sure this will fix your error, but I do know there is a "use managed compatibility mode" that sometimes needs checked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there is another way to start revit by editing the CSPROJ. file.&amp;nbsp; See this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=20132893" target="_blank"&gt;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=20132893&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, are you using the right version of .net for your version of revit?&amp;nbsp; Have you gone through the "my first plug in" tutorial?&lt;/P&gt;&lt;P&gt;Hope something there helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 22:02:32 GMT</pubDate>
    <dc:creator>stever66</dc:creator>
    <dc:date>2018-04-10T22:02:32Z</dc:date>
    <item>
      <title>Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7913562#M51044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing the Revit plugin, for this I have created project from the shared sample in Visual Studio 2017. When&amp;nbsp;I tried to attach the Revit.exe process&amp;nbsp;to debugger in order to debug my plugin. I am getting the following errors. Can you suggest, how to tackle this.&lt;/P&gt;&lt;P&gt;I have attached the screenshot of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 498px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/485244i8492E81C2AE8BE08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 10:53:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7913562#M51044</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-06T10:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7922760#M51045</link>
      <description>&lt;P&gt;I'm not sure this will fix your error, but I do know there is a "use managed compatibility mode" that sometimes needs checked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/use-managed-compatibility-mode-or-enable-native-code-debugging/m-p/6868592&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there is another way to start revit by editing the CSPROJ. file.&amp;nbsp; See this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=20132893" target="_blank"&gt;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=20132893&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, are you using the right version of .net for your version of revit?&amp;nbsp; Have you gone through the "my first plug in" tutorial?&lt;/P&gt;&lt;P&gt;Hope something there helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 22:02:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7922760#M51045</guid>
      <dc:creator>stever66</dc:creator>
      <dc:date>2018-04-10T22:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7923863#M51046</link>
      <description>&lt;P&gt;thanks for your help, with this settings I am able to launch the Revit but I got exception. I am sharing the screenshot can you let me know the probable solution.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 09:13:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7923863#M51046</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-11T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7924665#M51047</link>
      <description>&lt;P&gt;I don't know what you mean by "using the shared sample".&lt;/P&gt;&lt;P&gt;And I don't know why your file is trying to load a apiuilink file.&amp;nbsp; I haven't heard of that file, and I don't see it on my system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest you start with going through the "my first plugin " tutorial and work from there.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 13:19:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7924665#M51047</guid>
      <dc:creator>stever66</dc:creator>
      <dc:date>2018-04-11T13:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7927891#M51048</link>
      <description>&lt;P&gt;here is the detailed error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.TypeInitializationException&lt;BR /&gt;HResult=0x80131534&lt;BR /&gt;Message=The type initializer for '&amp;lt;Module&amp;gt;' threw an exception.&lt;BR /&gt;Source=mscorlib&lt;BR /&gt;StackTrace:&lt;BR /&gt;at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp;amp; canBeCached, RuntimeMethodHandleInternal&amp;amp; ctor, Boolean&amp;amp; bNeedSecurityCheck)&lt;BR /&gt;at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp;amp; stackMark)&lt;BR /&gt;at System.Activator.CreateInstance(Type type, Boolean nonPublic)&lt;BR /&gt;at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp;amp; stackMark)&lt;BR /&gt;at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&lt;BR /&gt;at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&lt;BR /&gt;at Autodesk.Revit.UI.RevitManagedAppStartupAgency.RevitManagedAppStartup(UIControlledApplication pControlledApplication, AString* assemblyName, AString* className, AString* exceptionName, AString* exceptionMessage)&lt;BR /&gt;at Autodesk.Revit.UI.RevitManagedAppStartupAgency.RevitAPIStartup(UIControlledApplication pControlledApplication, AddInManifest* pMani)&lt;/P&gt;&lt;P&gt;Inner Exception 1:&lt;BR /&gt;TypeInitializationException: The type initializer for '笒' threw an exception.&lt;/P&gt;&lt;P&gt;Inner Exception 2:&lt;BR /&gt;TypeInitializationException: The type initializer for '&amp;lt;Module&amp;gt;' threw an exception.&lt;/P&gt;&lt;P&gt;Inner Exception 3:&lt;BR /&gt;AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 13:23:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7927891#M51048</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-12T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7929121#M51049</link>
      <description>&lt;P&gt;Are you targeting the correct .net framework version for the version of Revit you are using (is 'shared sample' out of date)? Such exceptions can be a symptom of that. 4.5.2 is the minimum for Revit 2017.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 19:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7929121#M51049</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2018-04-12T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7929808#M51050</link>
      <description>&lt;P&gt;I am using the 4.6.1, I have tried with 4.5.2&amp;nbsp; but still same error.&lt;/P&gt;&lt;P&gt;Initially I got following exception if&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Exception thrown at 0x00007FF8C5CA0000 (AgileDotNetRT64.dll) in Revit.exe: 0xC0000005: Access violation executing location 0x00007FF8C5CA0000."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I continue the I got unhandled exception&amp;nbsp;&lt;/P&gt;&lt;P&gt;n unhandled exception of type 'System.TypeInitializationException' occurred in mscorlib.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 03:50:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7929808#M51050</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-13T03:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7932565#M51051</link>
      <description>&lt;P&gt;I have no further specific suggestions for this sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go back to the most basic sample included in the Revit&amp;nbsp;SDK, check they work and compare what you have against those (including Target CPU is x64). If they don't work then check a non-Revit project to confirm it is definitely related to how you are interacting with Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 11:53:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7932565#M51051</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2018-04-14T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7932805#M51052</link>
      <description>&lt;P&gt;I have checked the sample in Revit SDk but with that also same error is occurring. But working fine with non Revit project, even I tried with other non Revit exe it is working fine. It seems that issue with Revit. Can you suggest.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 16:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7932805#M51052</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-14T16:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to attach the revit.exe to visual studio debugger</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7934829#M51053</link>
      <description>&lt;P&gt;thanks for the reply I am able to solve the issue. This is due some&amp;nbsp; aadins that are causing the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:43:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/unable-to-attach-the-revit-exe-to-visual-studio-debugger/m-p/7934829#M51053</guid>
      <dc:creator>ritesh.solankeSKPPH</dc:creator>
      <dc:date>2018-04-16T10:43:54Z</dc:date>
    </item>
  </channel>
</rss>

