<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'IIS7 NTDLL.DLL W3WP.EXE 0xc0000374'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=IIS7+NTDLL.DLL+W3WP.EXE+0xc0000374&amp;orTags=0</link><description>Search results matching tag 'IIS7 NTDLL.DLL W3WP.EXE 0xc0000374'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS7 NTDLL.DLL Errors</title><link>http://forums.iis.net/p/1153518/1886558.aspx#1886558</link><pubDate>Tue, 02 Dec 2008 22:21:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886558</guid><dc:creator>DadKind</dc:creator><cs:applicationKey>iis7_-_extensibility--1</cs:applicationKey><description>
&lt;p&gt;&amp;nbsp;Hello All,&lt;/p&gt;

&lt;p&gt;I&amp;#39;m porting an old web app to Server2008/IIS7 (it was originally written in VS2005 and runs on XP Pro and Windows Server 2003).&lt;/p&gt;

&lt;p&gt;&amp;nbsp;This app imports from functions from an unmanaged DLL. &lt;br /&gt;&lt;/p&gt;

&lt;p&gt;When I was first running my app I was getting a bunch of &amp;quot;Unable to load DLL&amp;quot; errors. I then figured out that I needed to copy the unmanaged DLL to the Temporary ASP.NET folder and the DLL is now found (but this is another thread!) but the application runs.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Outside the IDE, whenever my app calls the unmanaged code (using DllImport) my app crashes painfully and I see the following in the Application Log:&lt;/p&gt;

&lt;p&gt;
Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b015d, process id 0x142c, application start time 0x01c954c955ce8d65. &lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve seen other posts here and elsewhere regarding this, but I&amp;#39;ve not seen any real solutuions or explanations as to the actual cause of the problem.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Can anyone shed some light on this?&amp;nbsp;&lt;/p&gt;&lt;p&gt;What is the actual problem?&lt;/p&gt;&lt;p&gt;What is the solution?&lt;/p&gt;&lt;p&gt;&amp;nbsp;TIA&lt;br /&gt;-tomas&lt;br /&gt;&lt;/p&gt;
</description></item></channel></rss>