<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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/"><channel><title>0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx</link><description>So, you have (or have to write) ASP.Net page or webservice, which should call native C++. Generally, it’s just extra work, but sometimes there is no other way, at least, no easier way. Overall that’s fairly easy – use COM or P/Invoce, that’s it. However,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#756258</link><pubDate>Fri, 15 Sep 2006 20:48:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:756258</guid><dc:creator>ghuckabone</dc:creator><description>How does one link statically?&lt;br&gt;-gary</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#761308</link><pubDate>Tue, 19 Sep 2006 02:21:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:761308</guid><dc:creator>EldarM</dc:creator><description>Statically? Native .lib files will not link with managed assemblies. If you mean DLLImport, yes, there is such a problem because ASP.NET code is compiled into some other place, and nobody wants to put the binaries into System32. One option is to add a special directory to path -- to the end of the list -- and put there you native DLLs. I used another way -- preloading native DLLs with LoadLibrary() -- this works too. As long as the DLL already loaded, the system does not look for it on the disk. But in this case, you need to know the path to your DLL in ASP.Net page to load it.&lt;br&gt;&lt;br&gt;Actually, I should write about it with examples. Thanks for the idea!</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#1454118</link><pubDate>Fri, 12 Jan 2007 08:55:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1454118</guid><dc:creator>Senthil Balu</dc:creator><description>&lt;p&gt;We create a C++ managed DLL using desktop with VS2005 with SP1. when i try to use the DLL in the desktop without SP1(service pack 1). I am ending with &amp;quot;The application is &amp;quot;the application has failed to start because the application confiquration is incorrect. etc.. (Exception from HRESULT: 0x800736B1)&amp;quot;]. &lt;/p&gt;
&lt;p&gt; &amp;quot;.&lt;/p&gt;
&lt;p&gt;Is there any way to solve the problem. whats the reason for this problem&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#1491205</link><pubDate>Fri, 19 Jan 2007 03:55:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1491205</guid><dc:creator>Tony Antonucci</dc:creator><description>&lt;p&gt;I have exactly the same problem, does anyone have a solution? --I build a DLL that is sent to thousands of users. They do not have Visual Studio, this all worked fine until SP1.&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#1554846</link><pubDate>Tue, 30 Jan 2007 05:47:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1554846</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;See &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;These are the required runtime components to run apps develpoed with VS2005. &amp;nbsp;You either need to include this in your distribution, or use VC++6.&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#1819755</link><pubDate>Tue, 06 Mar 2007 23:51:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1819755</guid><dc:creator>Terrence</dc:creator><description>&lt;p&gt;The available VC+ redist only installs the .42 version of the C Runtime files. &amp;nbsp;This does not resolve the issue when you compile using VS SP1 which references the .762 version of the C Runtime files. &amp;nbsp;We tried everything from including the folders in our install directory to updating the path and system32, but nothing worked. &amp;nbsp;Even Depends showed that everything was available, but the web service would not run on the target machine.&lt;/p&gt;
&lt;p&gt;We resolved this issue by compiling using a machine without VS SP1 installed. &amp;nbsp;Not ideal, of course, but allows us to keep going.&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#2040788</link><pubDate>Fri, 06 Apr 2007 19:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040788</guid><dc:creator>Brent</dc:creator><description>&lt;p&gt;This is also true for windows services and winforms apps developed in .NET, not just web apps/services. I've been struggling with this issue for two days now. I 've got my service running on my local XP Pro machine, but deploying to Server 2003 is rough. Not to mention it's the 64-bit edition.&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#2299596</link><pubDate>Fri, 27 Apr 2007 16:27:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2299596</guid><dc:creator>Erik Miller</dc:creator><description>&lt;p&gt;I took my Win32 dll and in the section where it asks you how to link to MFC, I put in &amp;quot;Use Standard Windows Libraries&amp;quot; and everything works fine now. &amp;nbsp;The DLL is 10x larger but disk space a dime a GB so who cares right?&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#2598404</link><pubDate>Sun, 13 May 2007 14:56:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2598404</guid><dc:creator>Sherif Mansour</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;THanks for the insightful article. I am trying to get a very old application set up in Vista and I am getting the &amp;quot;was loaded but the call to DLLRegisterServer failed with error code 0x80040154&amp;quot; error. After googleing for a bit I found our article. What might be a way for me to find out the dependencies of a dll file for an application that I can't install?&lt;/p&gt;
&lt;p&gt;Any assistance would be great. &lt;/p&gt;
&lt;p&gt;Sherif a t sherifmansour dot com&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#3297546</link><pubDate>Fri, 15 Jun 2007 00:14:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3297546</guid><dc:creator>EldarM</dc:creator><description>&lt;p&gt;SysInternals FileMon was pretty good at that. Also there is a tool in Visual Studio for that, but it did not worked real time, rather trying to model the execution.&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#3548662</link><pubDate>Tue, 26 Jun 2007 20:14:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548662</guid><dc:creator>BrockG</dc:creator><description>&lt;p&gt;I was having the same error when distributing an .exe I built with VS 2005. &amp;nbsp;I found it was solved by including the redist files found in C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86&lt;/p&gt;
&lt;p&gt;If I distributed the folders:&lt;/p&gt;
&lt;p&gt;\Microsoft.V80.CRT and \Microsoft.V80.MFC&lt;/p&gt;
&lt;p&gt;and placed them in the same directory as the application, the configuration error went away. &amp;nbsp;Hope this helps.&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#3576773</link><pubDate>Thu, 28 Jun 2007 09:44:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3576773</guid><dc:creator>nitin</dc:creator><description>&lt;p&gt;Hello friends&lt;/p&gt;
&lt;p&gt;I am facing lotof problems , registering dlls and ocx in vista, even after setting the protective mode off. I use a .Net application that invokes a dll on the client machine that further registers certain controls after transferring them from server.&lt;/p&gt;
&lt;p&gt;I have checked rights in TYPELIB and CLSID both , through my code, and there is ALLACCESS.Still the registerserver fails to run&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#4032286</link><pubDate>Tue, 24 Jul 2007 21:19:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4032286</guid><dc:creator>EldarM</dc:creator><description>&lt;p&gt;BrockG:&lt;/p&gt;
&lt;p&gt;With .exe it's a natural problem. You can replace DLL with static library in the project C++ / Code Generation options, and then you won't have to copy DLLs from Visual Studio. Although your files will grow for about 500K in size.&lt;/p&gt;
&lt;p&gt;Nitin:&lt;/p&gt;
&lt;p&gt;It's really hard to say what's wrong when symtoms are just &amp;quot; a lot of problems&amp;quot;. .Net app may run under a different identity, DLL may have bugs in the way ot registers the coponents, comonents may not match what this DLL tries to register or have their own bugs, if the do part of the self-reg themselves...&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#4650709</link><pubDate>Thu, 30 Aug 2007 20:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4650709</guid><dc:creator>Ryan Taylor</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was facing the same problem yesterday and we resolved it. &amp;nbsp;Basically we have a C# program that includes a C++ project. &amp;nbsp;Like others have mentioned above, when we build the solution it compiles the C++ project using .62. &amp;nbsp;Sure enough, our clients only have .42. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Microsoft recently published service pack for the C++ redistributable package. &amp;nbsp;It is a 2.6MB download. &amp;nbsp;When we installed in our clients machine, everything worked perfectly.&lt;/p&gt;
&lt;p&gt;Here is the link to the download on Microsoft's website: &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, I came to this solution via:&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1240807&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1240807&amp;amp;SiteID=1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
&lt;p&gt;Ryan&lt;/p&gt;</description></item><item><title>Resolution to (Exception from HRESULT: 0&amp;#215;800736B1) &amp;laquo; TechnicalArchitectureWorx</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#5495271</link><pubDate>Wed, 17 Oct 2007 19:56:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5495271</guid><dc:creator>Resolution to (Exception from HRESULT: 0×800736B1) « TechnicalArchitectureWorx</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://archworx.wordpress.com/2007/10/17/resolution-to-exception-from-hresult-0x800736b1/"&gt;http://archworx.wordpress.com/2007/10/17/resolution-to-exception-from-hresult-0x800736b1/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>BadImageFormatException or FileLoadException</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#8422405</link><pubDate>Thu, 24 Apr 2008 21:39:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8422405</guid><dc:creator>Chris Pozsgai</dc:creator><description>&lt;p&gt;I have a problem deploying a managed DLL to a new machine. &amp;nbsp;I am running .NET Visual Studio 2005 (professional ed.).&lt;/p&gt;
&lt;p&gt;When in debug mode, I get a FileLoadException, and in release mode I get a BadImageFormatException. &amp;nbsp;The dll actually does load but instantly unloads itself. &amp;nbsp;I believe that the assembly is loading but cannot instantiate any of the objects that are contained in the dll and the exceptions above are thrown depending on Debug/release mode. &amp;nbsp;I can step to the code right up until I try to instantiate an object. &amp;nbsp;When I step in, I get the load/unload trace to the output window followed by the exception trace. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated. &amp;nbsp;I tried uninst/reinst, and copied dlls from other machines, etc. &amp;nbsp;and have spent nearly a week on this issue. &amp;nbsp;Thanks, &amp;nbsp;Chris&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#8631136</link><pubDate>Sat, 21 Jun 2008 14:58:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8631136</guid><dc:creator>shravan</dc:creator><description>&lt;p&gt;in most of the cases u need following folders:&lt;/p&gt;
&lt;p&gt;The folders you need for that are&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.CRT&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.DebugCRT&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.DebugMFC&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.MFC&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.MFCLOC&lt;/p&gt;
&lt;p&gt;Microsoft.VC80.OPENMP&lt;/p&gt;
&lt;p&gt;as well u sud use depends.exe(C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin) and check the system log for the required file missing.&lt;/p&gt;
&lt;p&gt;but if ur using release mode then leave the debug folders of Microsoft.VC80 .&lt;/p&gt;
&lt;p&gt;i solved my problem but its a royal pain in ass :-)&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#8938437</link><pubDate>Wed, 10 Sep 2008 05:01:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8938437</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I have a vc++ dll that i am using in my web service C# solution that is deployed in IIS. I am getting the same sort of problem as described above.&lt;/p&gt;
&lt;p&gt;Would anoyone please be able to let us know how you solved the problem? I installed the VC++ distributable that is 2mb and provided by MS but that did not solve the problem.&lt;/p&gt;
&lt;p&gt;Any other suggestions?&lt;/p&gt;
&lt;p&gt;Sincerely&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;</description></item><item><title>This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)  </title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#8966386</link><pubDate>Fri, 26 Sep 2008 15:19:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8966386</guid><dc:creator>tushar</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I am getting this error when i transfer my asp.net website from one server to other &lt;/p&gt;
&lt;p&gt;please help me I never done such work before &lt;/p&gt;
&lt;p&gt;I tried to find out reason behind it but not getting solution please provide solution ASAP&lt;/p&gt;</description></item><item><title>DLL won't run on user computers | keyongtech</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#9364511</link><pubDate>Thu, 22 Jan 2009 10:58:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9364511</guid><dc:creator>DLL won't run on user computers | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/672053-dll-wont-run-on-user"&gt;http://www.keyongtech.com/672053-dll-wont-run-on-user&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#9888681</link><pubDate>Fri, 28 Aug 2009 20:37:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9888681</guid><dc:creator>B</dc:creator><description>&lt;p&gt;I had to add the following merge modules to my Setup Project to eliminate that error:&lt;/p&gt;
&lt;p&gt;C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_DebugCRT_x86.msm&lt;/p&gt;
&lt;p&gt;C:\Program Files\Common Files\Merge Modules\policy_9_0_Microsoft_VC90_DebugCRT_x86.msm&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#9890921</link><pubDate>Thu, 03 Sep 2009 17:47:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9890921</guid><dc:creator>Krutarth P. Patel</dc:creator><description>&lt;p&gt;On error :&lt;/p&gt;
&lt;p&gt;---------------------------------------------&lt;/p&gt;
&lt;p&gt;This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)&lt;/p&gt;
&lt;p&gt;----------------------------------------------&lt;/p&gt;
&lt;p&gt;install &lt;/p&gt;
&lt;p&gt;Microsoft Visual C++ 2005 Redistributable Package (x86)&lt;/p&gt;
&lt;p&gt;Download link :&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Will helps you. Keep Smiling&lt;/p&gt;</description></item><item><title>re: 0x800736B1: Calling C++ code from ASP.Net (from .aspx pages or .asmx webservices)</title><link>http://blogs.msdn.com/eldar/archive/2006/06/07/621501.aspx#9897667</link><pubDate>Mon, 21 Sep 2009 20:28:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9897667</guid><dc:creator>Ariel Gonzalez</dc:creator><description>&lt;p&gt;Hi everyone&lt;/p&gt;
&lt;p&gt;I had this error too. &lt;/p&gt;
&lt;p&gt;After trying several solutions which none worked by itself, I found where exactly the problem resides. Well it seems that those who develop in VS with SP1 and then run the app in a pc or publish the website to a server without VS on it got this error. The solution is yes you need to have installed VC ++ &amp;nbsp;redistributable package SP1 but you also have to build the C++ project that generates the problematic dll in Release mode (not debug). Doing this will solve all your problems.&lt;/p&gt;</description></item></channel></rss>