64-Bit .NET Framework Development. ForumNeed help making your .net applications (any language) work on 64-bit? Ask your questions here!© 2009 Microsoft Corporation. All rights reserved.Mon, 30 Nov 2009 04:05:12 Z866ccbce-53c9-4c68-afb2-d314c5915f4bhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/c9cc08f5-8a86-4ea0-9842-a9246584e5d9http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/c9cc08f5-8a86-4ea0-9842-a9246584e5d9aine17http://social.msdn.microsoft.com/Profile/en-US/?user=aine17error code 0xc000007bafter my system boots i get a message saying..application failed to initialize(0xc000007b)... what is the solution pleaseMon, 23 Nov 2009 14:09:24 Z2009-11-30T03:04:43Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/2456b872-73fd-4127-9415-511626d2f519http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/2456b872-73fd-4127-9415-511626d2f519Student Debt Reliefhttp://social.msdn.microsoft.com/Profile/en-US/?user=Student%20Debt%20ReliefError correction<p>Ever since an update on windows I get an &quot;runtime error 76 What is this and how do I correct?</p><hr class="sig">http://www.studentdebtsrelief.comSat, 28 Nov 2009 12:16:50 Z2009-11-30T02:10:34Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/73cf4bdf-4d84-4c09-a49d-dd6315ec3b8ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/73cf4bdf-4d84-4c09-a49d-dd6315ec3b8ePankajGautamhttp://social.msdn.microsoft.com/Profile/en-US/?user=PankajGautamIs there a .Net Framework 2.0 SP2 available for 64bitI'm trying to update .net 3.0 with .net 2.0 SP2 which is available now. I did update the 32bit version with issues but I was wondering if there is 64 bit version also available for this service pack<br>thanks,<br>-Pankaj GautamWed, 04 Jul 2007 07:26:20 Z2009-11-29T18:24:27Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/feaaeb48-fee1-4b3a-91b6-9e4f585ce2f1http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/feaaeb48-fee1-4b3a-91b6-9e4f585ce2f1henrikxxhttp://social.msdn.microsoft.com/Profile/en-US/?user=henrikxxgdi32.dll + unsafe code on 32+64Bit WindowsWhich target cpu should I use to compile a .NET 3.5 app (developed on a 32 Bit System) that contains an assembly which uses<br/> <br/> <pre> [DllImport(&quot;gdi32.dll&quot;)] static extern IntPtr CopyEnhMetaFile(IntPtr hemfSrc, IntPtr hNULL);</pre> <br/> and which also has the option checked: <strong>&quot;Allow unsafe code&quot;</strong> because of the following code:<br/> <br/> <pre> ((byte*) dst.Scan0.ToPointer())[(dst.Stride*y) + x] =...<br/> </pre> <br/> so that the app is able to run both on 32 and 64 Bit Windows ?<br/> <br/> If the answer is &quot;x86&quot;, does it mean that all referenced assemblies of the app have to be compiled with &quot;x86&quot; or just the &quot;app.exe&quot; ?<br/> <br/> Thanks.Sun, 29 Nov 2009 13:36:00 Z2009-11-29T17:55:14Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/54937f87-c7d4-4182-a34c-1bfe52b4a83bhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/54937f87-c7d4-4182-a34c-1bfe52b4a83bSneha05http://social.msdn.microsoft.com/Profile/en-US/?user=Sneha05BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)] BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)] <br/><br/>I have this error when I try to run a .net 2.0 web application. please helpSat, 28 Nov 2009 19:05:18 Z2009-11-29T17:52:49Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5a316848-1ec3-4d01-a395-7c5b17756239http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5a316848-1ec3-4d01-a395-7c5b17756239Jamie Claytonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jamie%20ClaytonDetermining current CPU architecture (x32 or x64)G'day,<br/><br/>I've got a data loading application in .net and I need to check various registry entries to ensure that reading excel documents works correctly.<br/><br/>In x32 clients there is a registry entry - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity Engine\Engines\Excel\TypeGuessRows <br/>In x64 clients there is a registry entry - HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access Connectivity Engine\Engines\Excel\TypeGuessRows<br/><br/>At the moment I try one the if that causes an exception I read the other and thats just clunky. I really want to include some logic before trying to read these entries to do something like.  <br/><br/>Select Case CPUArchitecture<br/>  Case x32<br/>    Read x32 Registry<br/>  Case x64<br/>    Read x64 Registry<br/>End select.<br/><br/>How do I do this logic in .net?<br/><br/> <hr class=sig> Jamie ClaytonThu, 26 Nov 2009 23:31:23 Z2009-11-27T14:58:11Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/31680f95-b4cb-46e6-b030-51496b287f83http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/31680f95-b4cb-46e6-b030-51496b287f83DEEBO-go-gatorshttp://social.msdn.microsoft.com/Profile/en-US/?user=DEEBO-go-gatorsoutput audio device not installed-NO SOUND?how do i get my sound back?Sun, 22 Nov 2009 18:28:13 Z2009-11-27T06:10:47Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/be63b84a-4818-4dc4-baa6-0c81cc0f25echttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/be63b84a-4818-4dc4-baa6-0c81cc0f25ecLuvukohttp://social.msdn.microsoft.com/Profile/en-US/?user=Luvukohelp<p>I want to download windows installer for windows vista business</p> <p> </p>Tue, 24 Nov 2009 08:31:53 Z2009-11-30T01:47:17Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3e939ea1-e9a4-4fcb-8634-4c4c0232ac8fhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3e939ea1-e9a4-4fcb-8634-4c4c0232ac8fCaptain Kernelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Captain%20KernelWhy is PDB not used?Hi<br/><br/>I have a built managed executable, it uses some unmanaged code (DLLs) but that is nothing special in and of itself.<br/><br/>The code runs as a service and is being tested on Vista, it pretty much works OK.<br/><br/>However I want to debug it arbitrarily while it is running, so I click the process in Task Manager and attempt it.<br/><br/>I then get asked to select an instance of Visual Studio, that's all fine and I do that.<br/><br/>Then I get the process and break, BUT the Loaded Modules window shows that the PDB has been loaded but &quot;Contains no native symbols&quot;.<br/><br/>Now I understand that this means the PDB does not pertain to native code, but why should it?<br/><br/>Thus I am unable to debug the code as I want to, can't see the src etc even though the PDB and src are all here on the dev Vista x64 machine.<br/><br/>Now I did retry this and tried to &quot;manually select the debugging engine&quot;, I then unchecked &quot;Native&quot; (so that only &quot;Managed&quot; was checked) but this failed, saying &quot;For the debugger to handle the current exception, 'Native' code must be selected&quot;.<br/><br/>I click OK and continue, then I get another error Message Box saying &quot;Unable to attach to the process. Mixed mode debugging is not supported on Windows 64-bit platforms.&quot;<br/><br/>Now I am well aware that mixed mode debugging of 64-bit code is not supported, BUT why does it give this error msg box ONLY when I try to deselect 'Native&quot;, if I do not elect to manually choose the debugging engine it doesn's show this error, BUT it surely has the same setting (Native selected and Managed selected).<br/><br/>So what is going on? How can I dynamically break into and debug this maaged windows service?<br/><br/>Is there a way to get around this?<br/><br/>Incidentally, I have confirmed that the PDB is valid and loaded correctly, the &quot;Symbol Load Information&quot; that one can get from the Loaded Modules window confirms this; the PDB matches the code and was loaded without issues.<br/><br/>It seems that when I break into the process, the debugger &quot;knows&quot; that the process is &quot;in&quot; native code and so insists on mixed mode debugging, and that is the real issue, it insists on debugging at the unmanaged level (which I do not want it to do) and because mixed mode debugging is not supported, I then lose any ability to debug the managed code.<br/><br/>It looks like there is no way to break into a running managed process/service and debug at the managed level on x64, if so this is a surprising and rather serious weakness.<br/><br/>Let me be 100% clear, I am <strong>not</strong> seeking to do mixed mode debugging, I just want to do <strong>managed debugging</strong> but cannot, I guess this would work if I built for 32-bit but that is not good, I need and I want to debug real world scenarios that customers may encounter.<br/><br/>Thanks<br/><br/>Cap'n<br/><br/>Thu, 26 Nov 2009 08:58:47 Z2009-11-26T08:58:52Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/0dfcb40a-2bb1-426a-aa02-41850094ba93http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/0dfcb40a-2bb1-426a-aa02-41850094ba93golduhttp://social.msdn.microsoft.com/Profile/en-US/?user=goldusingle client backup<p><strong><em>hello frnds i am making the project in c#...now i want to take only single client backup and single client restore..<br/>how it is possible.<br/>help me.<br/>thanks</em></strong></p>Tue, 24 Nov 2009 10:28:51 Z2009-11-26T03:03:47Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/6078be16-0d1a-4d6a-81f3-09418ac94c34http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/6078be16-0d1a-4d6a-81f3-09418ac94c34Carlos_zxlhttp://social.msdn.microsoft.com/Profile/en-US/?user=Carlos_zxlSystem.Runtime.InteropServices.COMException: Unknown error (0x80005000)This is the detailed error info.<br/><br/><span class=logStreamHeading>Failures</span> <div class=logStreamBody><span class=logStreamMarker-Exception><span class=logStreamMarker-ExceptionType>System.Reflection.TargetInvocationException</span>: <span class=logStreamMarker-ExceptionMessage>Exception has been thrown by the target of an invocation.</span> ---&gt; <span class=logStreamMarker-Exception><span class=logStreamMarker-ExceptionType>System.Runtime.InteropServices.COMException</span>: <span class=logStreamMarker-ExceptionMessage>Unknown error (0x80005000)</span><br/><span class=logStreamMarker-StackTrace>   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)<br/>   at System.DirectoryServices.DirectoryEntry.Bind()<br/>   at System.DirectoryServices.DirectoryEntry.get_NativeObject()<br/></span></span></span><br/>Code that causes the above exception:<br/><br/> <pre lang="x-c#"> DirectoryEntry de1 = new DirectoryEntry(&quot;RNA:&quot;); IRnaNamespace rnaNamespace = (IRnaNamespace)de1.NativeObject; </pre> <br/>After the del object is created, I try to watch the values for variant <strong>del</strong>, and this is the result:<br/><a href="http://picasaweb.google.com/lh/photo/WFhTvRWS2w3TL-gad1OvuQ?feat=directlink">http://picasaweb.google.com/lh/photo/WFhTvRWS2w3TL-gad1OvuQ?feat=directlink</a><br/><br/>The OS is Windows2008 R2 64bits. And it can run successfully on Windows2008Sp2 32bit.</div>Mon, 16 Nov 2009 08:07:47 Z2009-11-25T09:04:16Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3c907dd8-69a6-448d-8512-0cb79f49e63ahttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3c907dd8-69a6-448d-8512-0cb79f49e63aPiyush Phttp://social.msdn.microsoft.com/Profile/en-US/?user=Piyush%20P Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.We are migrating our application from windows server 2003 32 bit to windows server 2008 64bit, after I have created the virtual folder on the new machine, I am unable to connect to the database. We have oracle 11g client installed and below is the error which I am getting - &lt;/BR&gt;&lt;/BR&gt;<br/><br/> System.InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. ---&gt; System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset) at System.Data.OracleClient.OCI.DetermineClientVersion() --- End of inner exception stack trace &lt;/BR&gt;<br/><br/>Any help is greatly appreciated, I have tried couple of solutions going through some threads online but no luck.Tue, 17 Nov 2009 20:10:44 Z2009-11-26T05:59:18Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/023e6c3c-0bb3-4f77-914b-4b61b3a6584ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/023e6c3c-0bb3-4f77-914b-4b61b3a6584e--Jon--http://social.msdn.microsoft.com/Profile/en-US/?user=--Jon--Cant read registry during custom action Hello,<br/>I have built an installer project that uses a custom action that fires during the AfterInstall event.  I am having a strange problem with this code in Windows 7 64 bit that I am not having under Vista 32 bit.  The problem is that in the 64 bit version, a particular registry key that I need to read is showing up as not having any values, even though it definitely contains over 30 values.  Opening the key does not throw an exception - it just doesn't appear to contain any values.  If I execute my code from an EXE and execute it in Windows 7 64 bit, it does not have this problem - the problem only occurs when I call the code from within the context of the custom action and the custom action works fine on 32 bit vista.  The registry key that I am reading ALREADY EXISTS on the machine - my installer is not creating any keys.  I am totally stumped on this one.  Anybody have an idea about what might be going on here?  Thanks in advance for any suggestions or ideas.<br/><br/>Jon<br/>Wed, 18 Nov 2009 21:36:58 Z2009-11-24T00:09:11Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/28f7e369-d5d1-43b9-b0f4-2b81089ad2d5http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/28f7e369-d5d1-43b9-b0f4-2b81089ad2d5Tslaffhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tslaffget System.BadImageFormatException on runing 32 bit app through IEExec.exeHi guys, <p class=MsoNormal>I develop app (.Net 2.0) that can be launched locally and from IE (through IEExec.exe). On 32 bit OS it works fine but there is problem with 64 bit OS. When I start program locally everything ok and it runs as 32 bit app. But when I try to run app through IEExec it throws System.BadImageFormatException and shutdown. The problem is that when I load web page in IE and click on the link that point to my app it tries to launch app with command:</p> <p class=MsoNormal>c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\IEExec.exe <span> </span> “url_to_my_app“</p> <p class=MsoNormal>and looks like IEExec loads CLR 64 bit. I can solve this problem by running:</p> <p class=MsoNormal>corflags.exe /32BIT+ /Force c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\IEExec.exe</p> <p class=MsoNormal>but I don’t think it’s good idea. Is there any other way to bring IEExec.exe to load CLR 32 bit?</p> <p class=MsoNormal>P.S. My app is compiled in anycpu release mode.</p> <p class=MsoNormal> </p> <p class=MsoNormal>Thanks.</p>Wed, 18 Nov 2009 16:45:16 Z2009-11-23T12:41:25Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/e0652601-6693-42ba-824c-f9f1fa6b6979http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/e0652601-6693-42ba-824c-f9f1fa6b6979RMDhttp://social.msdn.microsoft.com/Profile/en-US/?user=RMDWindows Installer + 64bit .NET AppI'm using a VS.NET Setup project to create a Windows Installer package for my Windows Service. The service is targeting both 32bit and 64bit machines, so I have it set to AnyCPU.<br><br>My service installer class is executed as a custom action by the .msi and it writes some registry keys for me that I'll need later on when I start my service.<br><br>My problem is that, regardless of the TargetPlatform property of the Setup project, the .MSI runs as 32bit. This means my .NET code things it's running on a 32bit OS, and so when it writes its registry keys it writes them to the 32bit version of the registry.<br><br>When my service runs, however, it runs as a 64bit application. When it attempts to read these keys, it can't find them because they actually live in the 32bit version of the registry, and OpenSubKey opens the 64bit version if the app is running as 64bit.<br><br>Now, I can set my windows service to compile as x86, and then things work. This is a crappy work around, though, since my service would actually benefit from running natively as 64bit.<br><br>Short of use pinvoke and always writing to the 32bit registry, is there a way to fix this? If I could get my msi to execute as 64bit, that would be ideal.<br><br>Thanks.Mon, 22 Dec 2008 22:22:44 Z2009-11-22T21:32:26Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/da055767-0f69-4f07-b8e7-f3dce19f7ecbhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/da055767-0f69-4f07-b8e7-f3dce19f7ecbAmit_Dhamalhttp://social.msdn.microsoft.com/Profile/en-US/?user=Amit_DhamalWindows 7 64bit Registry access using x86 assembly Hi guys,<br/> <br/> I have an assembly that is complied in x86 release mode.<br/> The assembly tries to access  a particular registry key in Win7 <br/> <br/> the key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion  -&gt; ProductID(tried to read this value)<br/> <br/> As the assembly is in x86 it tries to look for the key in SysWow64 node<br/> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion -&gt; ProductID(tried to read this value)<br/> <br/> When i went through the registry i found that the string &quot;ProductID&quot; is <span style="text-decoration:underline"><strong>missing</strong> </span> (!) ..<br/> (may be because i have trial version of windows 7 x64)?<br/> <br/> I just wanted to ask , is there a way to read registry key (not in<strong> wow6432node</strong> )<br/> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion  -&gt; ProductID<br/>  in x86 mode?<br/> <br/> <br/> Im using the following  code<br/> <pre lang="x-c#"> RegistryKey regkey = Registry.LocalMachine.OpenSubKey(&quot;SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion&quot;, false); //reads in wow6432Node for x86 assembly string strProductID = string.empty; if (((regkey != null))) { // Get key Value of ProductId. strProductID = (string)regkey.GetValue(&quot;ProductId&quot;); if ((string.IsNullOrEmpty(strProductID))) { //try reading another path for &quot;ProductID&quot; } } return strProductID ;</pre> PS:When i complie the same assembly as &quot;Any Cpu&quot; , the above code returns correct productid..<br/> <br/> Thx<br/> Amit<br/><hr class="sig">Amit DhamalWed, 18 Nov 2009 06:17:12 Z2009-11-20T19:17:10Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5e68de8c-cf05-4fb1-915e-3d307cce6803http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5e68de8c-cf05-4fb1-915e-3d307cce6803DANISH09http://social.msdn.microsoft.com/Profile/en-US/?user=DANISH09DW20.EXE AN ERROR STOP THE INSTALLATION OF OFFICE 2007 CONTAINS DW20.exe ?Sun, 15 Nov 2009 14:01:36 Z2009-11-20T06:58:54Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/1e6879f9-7736-4cba-bfe8-9153c977f7c6http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/1e6879f9-7736-4cba-bfe8-9153c977f7c6Paulo Morgadohttp://social.msdn.microsoft.com/Profile/en-US/?user=Paulo%20MorgadoAttempt to load Oracle client libraries threw BadImageFormatException. This problem will occurwhen running in 64 bit mode with the 32 bit Oracle client components installed.I'm getting this exception when I create an instance of a System.Data.OracleClient.OracleConnection.<br/><br/>Unhandled Exception: System.InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException.  This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. ---&gt; System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)<br/>   at System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset)<br/>   at System.Data.OracleClient.OCI.DetermineClientVersion()<br/>   --- End of inner exception stack trace ---<br/>   at System.Data.OracleClient.OCI.DetermineClientVersion()<br/>   at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)<br/>   at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)<br/>   at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)<br/>   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)<br/>   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)<br/>   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)<br/>   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)<br/>   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br/>   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br/>   at System.Data.OracleClient.OracleConnection.Open()<br/>   at RrcSldAg.Testes.Program.Main(String[] args) in D:\Arquitectura\Projectos\SAS\RRC\RrcSldAg\RrcSldAg.Testes\Program.cs:line 15<br/><br/>VS 2008 SP1<br/>Vista x64<br/>Oracle ODP.NET ODTwithODAC1110621<hr class="sig">Paulo Morgado (http://PauloMorgado.NET/)Thu, 21 May 2009 08:24:01 Z2009-11-19T22:14:15Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5efb1692-7ad7-4ac7-89af-89c1e5e8f051http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/5efb1692-7ad7-4ac7-89af-89c1e5e8f051johneandersonhttp://social.msdn.microsoft.com/Profile/en-US/?user=johneandersonGeneral question about CPUsWe are developing a WinForm application that currently runs on 32-bit XP.  Our application is multi-threaded and will need multi-threading and more memory for greater performance.  Core 2 duo, core 2 quad, i7, etc. - I'm confused!<br/><br/>What is a good resource for understanding the latest CPUs?  How can I leverage the latest technology in my .NET application?  Anyone know of any good resources here that would help me better understand the latest in CPU technology?Wed, 18 Nov 2009 18:21:01 Z2009-11-19T12:13:43Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/575ec5f6-9684-45f1-baac-f17128601fa2http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/575ec5f6-9684-45f1-baac-f17128601fa2Anssssshttp://social.msdn.microsoft.com/Profile/en-US/?user=AnsssssStack Trace differences on 64-bit system vs 32-bitI'm seeing differences in the stack trace produced from exceptions thrown in the same program running on two different systems (I've run it on a 32 bit XP system and a 64 bit Windows 2008 system).<br /> <br /> Here's the program:<br /> <pre lang="x-c#">//when this #define is commented out, the methodsA-D don't // have a side effect (setting a static variable), // and this seems to cause the 64 bit stack traces to differ. //#define methods_have_side_effects using System; using System.Reflection; namespace StackTraceTest { public class Program { public static int some_side_effect; public static void Main(string[] args) { Console.WriteLine(&quot;-------------begin------------------&quot;); try{ methodA(); } catch(Exception e) { Console.WriteLine(e + e.StackTrace); } Console.WriteLine(&quot;--------------end-----------------&quot;); Console.WriteLine(&quot;-------------begin------------------&quot;); try { Type t = Type.GetType(&quot;StackTraceTest.Program&quot;); t.GetMethod(&quot;methodA&quot;, BindingFlags.Static | BindingFlags.Public).Invoke(null, new object[] { }); } catch (Exception e) { Console.WriteLine(e + e.StackTrace); } Console.WriteLine(&quot;--------------end-----------------&quot;); Console.WriteLine(&quot;-------------begin------------------&quot;); try { (new Program()).methodD(); } catch (Exception e) { Console.WriteLine(e + e.StackTrace); } Console.WriteLine(&quot;--------------end-----------------&quot;); Console.WriteLine(&quot;-------------begin------------------&quot;); try { Type t = Type.GetType(&quot;StackTraceTest.Program&quot;); Program t_instance = (Activator.CreateInstance(t) as Program); t_instance.methodD(); } catch (Exception e) { Console.WriteLine(e + e.StackTrace); } Console.WriteLine(&quot;--------------end-----------------&quot;); } public static void methodA() { if(&quot;blah&quot;.Length &gt; 0) methodB(); #if (methods_have_side_effects) some_side_effect = 1; #endif } public static void methodB() { if (&quot;blah&quot;.Length &gt; 0) methodC(); #if (methods_have_side_effects) some_side_effect = 2; #endif } public static void methodC() { if (&quot;blah&quot;.Length &gt; 0) throw new Exception(&quot;methodC exception&quot;); #if (methods_have_side_effects) some_side_effect = 3; #endif } public void methodD() { if (&quot;blah&quot;.Length &gt; 0) methodA(); #if (methods_have_side_effects) some_side_effect = 4; #endif } } } </pre> <br /> <br /> You'll see that the code prints the stacktrace of several different exceptions. Here's an example of the stack trace differences for the first exception:<br /> <br /> 32-bit system (with the #define commented out when the program was compiled):<br /> <pre>System.Exception: methodC exception at StackTraceTest.Program.methodC() at StackTraceTest.Program.methodB() at StackTraceTest.Program.methodA() at StackTraceTest.Program.Main(String[] args) at StackTraceTest.Program.methodC() at StackTraceTest.Program.methodB() at StackTraceTest.Program.methodA() at StackTraceTest.Program.Main(String[] args) </pre> <br /> 64-bit system (with the #define commented out):<br /> <pre>System.Exception: methodC exception at StackTraceTest.Program.methodC() at StackTraceTest.Program.methodA() at StackTraceTest.Program.Main(String[] args) at StackTraceTest.Program.methodC() at StackTraceTest.Program.methodA() at StackTraceTest.Program.Main(String[] args) </pre> <br /> I've put some conditionally compiled code in the methodsA-D. I thought this might cause the problem to go away, and it does. When the &quot;methods_have_side_effects&quot; symbol is defined, the stack traces match on 64 bit and 32 bit systems. <br /> <br /> Has anyone seen such behavior? It almost seems as if a method is getting optimized out on the 64 bit system (even though both systems have the 3.5 SP1 .NET runtime environment). Does anyone know of a way to ensure consistent behavior?Tue, 06 Oct 2009 04:05:53 Z2009-11-19T08:57:01Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/13f5768d-002f-4f02-a26f-fb6a239291cbhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/13f5768d-002f-4f02-a26f-fb6a239291cbnfuji27http://social.msdn.microsoft.com/Profile/en-US/?user=nfuji27Signed .dll not registering in Windows 7 64-bit machine<p>Hopefully this is the right section to ask this question.<br/><br/>I have a WPF application that communicates with a USB device. To communicate with the USB device a project called UsbComm was created. The .dll file produced by the UsbComm project is signed using a strong name key file. The WPF application is also signed. When I go to install (using msi installer) the application on a 64-bit machine the publisher title shows the correct company and everything look fine. The only problem is that the USB symbol in the application (it should flash either red or green depending on if the USB device is present) always stays gray. This tells me that the .dll is not registered, but it shows in the Property page that the assembly is signed. Am I missing something?</p> <hr class=sig> NathanFri, 13 Nov 2009 00:04:27 Z2009-11-20T11:29:10Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3f00bf30-2d81-4e6c-9bcc-16e06ebf46ebhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3f00bf30-2d81-4e6c-9bcc-16e06ebf46ebhobbitenok2005http://social.msdn.microsoft.com/Profile/en-US/?user=hobbitenok2005Oracle Error on x64 bit<p>Hello everybody,</p> <p>  I compiled my application as x64 bit and tried to run it on x64 installation of Server 2003. When connecting to Oracle my application has issued the following error:</p> <p><em>System.InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException.  This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed. ---&gt; System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)<br>   at System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset)<br>   at System.Data.OracleClient.OCI.DetermineClientVersion()<br>   --- End of inner exception stack trace ---<br>   at System.Data.OracleClient.OCI.DetermineClientVersion()<br>   at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)<br>   at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)<br>   at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)<br>   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)<br>   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)<br>   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)<br>   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)<br>   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)<br>   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br>   at System.Data.OracleClient.OracleConnection.Open()<br>   at STPSendMailData.BaseData.SetConnectionAndTransaction()</em></p> <p>It was running fine on my dev workstation. The server has installation of framework 2.0 x64. I wonder what I did do wrong, what are possble causes and what is a fix for the problem?</p> <p> </p> <p>Thanks to all;) </p>Wed, 07 Jun 2006 14:40:40 Z2009-11-18T01:06:00Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/f1a354bf-5100-4857-9766-0028b856945chttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/f1a354bf-5100-4857-9766-0028b856945cA_Kumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=A_Kumar.Net 2.0 with Windows 2003 Server<p>my application was working fine on .Net 2.0 and windows 2000 server</p> <p>now I copied the same app to windows 2003 64 bit server and created the dsn</p> <p> </p> <p>it was throwing exceptions so I changed Microsoft.Data.Odbc refernce to System.Data.Odbc</p> <p> </p> <p>Now it is not able to find the dsn and gives below exception</p> <p>System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified</p> <p> </p> <p>I checked that my dsn is there in winnt\sysWOW64\odbcad32.exe but not in winnt\system32\odbcad32.exe. I am not able to add dsn to other folder because sybase driver is available in only one odbcad32.exe</p> <p>Also System.Data in cache is 2.0.0 and .Net version is 2.0.50727.42. I dont know if that is causing the issue.. Also I dont know how to add assemblies to cache. I dont want to install .Net SDK separately on this machine..</p> <p> </p> <p>can anyone suggest a solution pls</p> <p> </p> <p>Regards</p> <p>AKumar</p>Thu, 31 May 2007 06:47:15 Z2009-11-17T20:09:06Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b264f257-d7cf-419c-90a5-a938c8fd647ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b264f257-d7cf-419c-90a5-a938c8fd647eCristiUrsachihttp://social.msdn.microsoft.com/Profile/en-US/?user=CristiUrsachiA generic error occured in GDI+<p>Hello, </p> <p>We have a big app running on Windows Server 2003 R2 SP2 Standard x64 Edition .</p> <p>Problem is that we dont know where it happens but from time to time we have in log of errors this kind of error:</p> <p></p> <p>System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.<br></p>  at System.Drawing.Graphics.CheckErrorStatus(Int32 status)<br>  at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)<br>  at System.Windows.Forms.GroupBox.DrawGroupBox(PaintEventArgs e)<br>  at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)<br>  at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)<br>  at System.Windows.Forms.Control.WmPaint(Message&amp; m)<br>  at System.Windows.Forms.Control.WndProc(Message&amp; m)<br>  at System.Windows.Forms.GroupBox.WndProc(Message&amp; m)<br>  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)<br>  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br> <p>  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)</p> <p></p> <p></p> <p>Do you know what can be the reason? application is not compiled for x64 platform is compiled for 'AnyCPU'.Another thing is that application is running via Citrix. And under .net framework 2.0<br></p> <p></p> <p></p> <p></p><br><br>Thu, 08 May 2008 09:46:10 Z2009-11-16T12:54:57Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3dc37703-4f28-4fc0-be22-acd27f61b911http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/3dc37703-4f28-4fc0-be22-acd27f61b911patti_nylhttp://social.msdn.microsoft.com/Profile/en-US/?user=patti_nyl32 and 64 bit ready code .NETHi is there any automated testing tools that checks the code for 32 and specially migrating to 64bit code, and windows 7 ready? <div>I am thinking mostly about API calls and functions.</div> <div><br/></div> <div>Best regards, Patrik</div>Tue, 03 Nov 2009 07:00:30 Z2009-11-16T08:34:58Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/817c7533-c87e-4d91-827a-c8b955022819http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/817c7533-c87e-4d91-827a-c8b955022819kcdixonhttp://social.msdn.microsoft.com/Profile/en-US/?user=kcdixonC++ hybrid un/managed DLL running 64bit spaceOne of our applications relies on a C++ managed/unmanaged DLL -- e.g. we expose some Win32 API functionality via a CLR wrapper class.<br/> <br/> We installed the host app (C#) on a 64bit machine. The JIT happily ran the code as 64bit, but of course it barfed on the 32bit library.<br/> <br/> I assume for best performance, we should attempt to get this working in 64bit space.<br/> <br/> As such, is there a way for an MSI to detect the CPU architecture and install the correct DLL?Mon, 09 Nov 2009 22:25:00 Z2009-11-17T02:48:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/6d3899a6-771f-402a-a851-7dbad0cbb3ffhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/6d3899a6-771f-402a-a851-7dbad0cbb3ffdavejp112175http://social.msdn.microsoft.com/Profile/en-US/?user=davejp112175visual studio debugHello,<br/><br/>In Visual Studio 2008 using C#, I had a working project yesturday. Made some changes. Went to debug and what starts running is the project without the changes. If I build a release version, or start the project fvrom VS with debugging, the changes are there. When I go to debug the cahnges I made today are gone. There are no compilation errors and no exceptions occuring that I know of..<br/><br/>Any ideas?<br/><br/>-_David PThu, 05 Nov 2009 23:41:26 Z2009-11-16T03:25:06Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/bd8dcbf6-76c6-42c2-a25d-f54e6535f042http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/bd8dcbf6-76c6-42c2-a25d-f54e6535f042Ravi Santhahttp://social.msdn.microsoft.com/Profile/en-US/?user=Ravi%20Santha64-bit vs 32-bit Application with Oracle 10gHi, <br>I have developed .NET application on 32-bit system with Oracle 10g and works very well.  When I have deployed the application on the Client server I am getting the following error<br><br><span style="font-style:italic">&quot;Attempt to load Oracle Cleint libraries threw BandImageFormatException. This problem </span><span style="font-style:italic">will occur when running in 64 bit mode with the 32 bit Oracle client components installed&quot;</span><br><br>I did have installed Oracle x64 bit client on the system still getting the same error.  I have tried to uninstall the oracle instances and also installed ODACHome for .NET as well (64-bit). No luck so far.  <br><br>I tried to use VS 2005 to connect to the Oracle instance and I still go the same error.<br><br>I tried to used the System.Data.OracleClient namespace  with following code snippet<br>OracleConnection con = new OracleConnection();<br>con.ConnectionString = &quot;Data Source=testdb; User ID=scott; Password=tiger&quot;;<br>con.Open();<br>con.Close();<br><br>Same error. <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif"><br><br>Is there any way that you guys know of or if anyone has come across this situation please advise me on how to over come this issue.<br><br>Thank you very much<br><br>Wed, 05 Mar 2008 23:15:52 Z2009-11-13T17:48:53Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/513efa9b-425b-4707-b958-b05895d2f77ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/513efa9b-425b-4707-b958-b05895d2f77eSwift71http://social.msdn.microsoft.com/Profile/en-US/?user=Swift71Windows Installer updates<p>Has windows installer 5 or updates to 4.5 been released yet!</p>Wed, 11 Nov 2009 20:19:29 Z2009-11-17T07:53:00Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/ea593320-a73c-4df2-a58d-1df93c46cf22http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/ea593320-a73c-4df2-a58d-1df93c46cf22Abhijit.duttahttp://social.msdn.microsoft.com/Profile/en-US/?user=Abhijit.duttaLINK : fatal error LNK1104: cannot open file 'libirc.lib'<p>I am trying to build my project for 64 bit windows on a 32 bit windows machine. I am getting a linking error of the kind <br/><strong>15&gt;LINK : fatal error LNK1104: cannot open file 'libirc.lib'<br/></strong></p> <p>Can someone tell me the resolution for this problem?</p>Wed, 11 Nov 2009 07:28:54 Z2009-11-13T03:23:18Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/e07af685-46f5-4823-bec9-c8ffae3db32ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/e07af685-46f5-4823-bec9-c8ffae3db32eMike Barryhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mike%20Barry64 bit remoting app searching for VJSharpCodeProvider<span><span id="_ctl0_MainContent__ctl0_PostForm_PreviewBody">We have a remoting app we are currently trying to port to 64 bit. It is written in C++/CLI. Whenever we try to connect to our application on the server throws the following exception: The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 2. (Full exception included in the bottom of this message). We do not use any J# in our application. As there is no x64 j# runtime I am at quite an impass as to what to do. It may be worth noting that we are connecting from a 32 bit client. <br><br>I would be thankful for any suggestions.<br><br>Mike<br><br><br>The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 2. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.<br>File name: 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'<br><br>=== Pre-bind state information ===<br>LOG: User = XXXXXXXXXX<br>LOG: DisplayName = VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a<br> (Fully-specified)<br>LOG: Appbase = file:///C:/Development/Debug/wwwroot/<br>LOG: Initial PrivatePath = C:\Development\Debug\wwwroot\bin<br>Calling assembly : (Unknown).<br>===<br>LOG: This bind starts in default load context.<br>LOG: Using application configuration file: C:\Development\Debug\wwwroot\web.config<br>LOG: Using host configuration file: \\?\c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet.config<br>LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.<br>LOG: Post-policy reference: VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a<br>LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/lvdotnetengine/dbc31b45/29c4872d/VJSharpCodeProvider.DLL.<br>LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/lvdotnetengine/dbc31b45/29c4872d/VJSharpCodeProvider/VJSharpCodeProvider.DLL.<br>LOG: Attempting download of new URL file:///C:/Development/Debug/wwwroot/bin/VJSharpCodeProvider.DLL.<br>LOG: Attempting download of new URL file:///C:/Development/Debug/wwwroot/bin/VJSharpCodeProvider/VJSharpCodeProvider.DLL.<br>LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/lvdotnetengine/dbc31b45/29c4872d/VJSharpCodeProvider.EXE.<br>LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/lvdotnetengine/dbc31b45/29c4872d/VJSharpCodeProvider/VJSharpCodeProvider.EXE.<br>LOG: Attempting download of new URL file:///C:/Development/Debug/wwwroot/bin/VJSharpCodeProvider.EXE.<br>LOG: Attempting download of new URL file:///C:/Development/Debug/wwwroot/bin/VJSharpCodeProvider/VJSharpCodeProvider.EXE.</span></span>Thu, 05 Oct 2006 19:23:56 Z2009-11-11T10:23:09Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/c88be94f-93e2-48de-abad-b335848865ddhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/c88be94f-93e2-48de-abad-b335848865ddInTheMirrorhttp://social.msdn.microsoft.com/Profile/en-US/?user=InTheMirrorWindows service is not triggered<span style="font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px"> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Team, first I wanna thank you for the efforts you do in all of your forums, and I hope I'm sending to the appropriate one.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I'm submitting this question here (again) as I did not get any reply from Windows Server forums.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I have a Windows server 2003, 64 bit, I created a windows service that monitors a specific folder for file rename and file creation and calls a batch file upon those events.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">This windows service is running under Local System account, I gave <strong style="font-weight:bold;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">full control</strong> permissions on that folder for System, Network Service, Local Service and <span style="font-weight:inherit;font-style:inherit;font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px;padding:0px;margin:0px;border:0px initial initial">myDomain\myAccount<span style="font-weight:inherit;font-style:inherit;font-family:Verdana, Arial, Helvetica, sans-serif;color:#000000;font-size:11px;line-height:normal;padding:0px;margin:0px;border:0px initial initial"> accounts.</span></span></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">The problem is when I drop a file <strong style="font-weight:bold;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">manually</strong> into this folder, the Windows service is triggered successfully and the batch file is called, but when a file is being<strong style="font-weight:bold;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">FTPed</strong> to that folder the Windows service is <strong style="font-weight:bold;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">not triggered</strong> and I get the following error in Security event log.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Event Type:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Failure Audit</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Event Source:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Security</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Event Category:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Object Access </div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Event ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>560</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Date:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>10/29/2009</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Time:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>4:00:05 AM</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">User:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>myDomain\myAccount</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Computer:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>MyServerName</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Description:</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Object Open:</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Object Server:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>SC Manager</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Object Type:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>SERVICE OBJECT</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Object Name:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>WebClient</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Handle ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>-</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Operation ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>{0,1637593309}</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Process ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>412</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Image File Name:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>C:\WINNT\system32\services.exe</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Primary User Name:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>MyServerName$</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Primary Domain:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>myDomain</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Primary Logon ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>(0x0,0x3E7)</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Client User Name:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>MyAccount</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Client Domain:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>myDomain</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Client Logon ID:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>(0x0,0x619B7A85)</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Accesses:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Query status of service </div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Privileges:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>-</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Restricted Sid Count:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>0</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>Access Mask:<span style="font-weight:inherit;font-style:inherit;font-family:inherit;white-space:pre;padding:0px;margin:0px;border:0px initial initial"> </span>0x4</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Please advice.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Note: I changed accounts and names intentionally and prefixed with &quot;my&quot; keyword.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Thanks in advance. </div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <hr class=sig style="border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;list-style-type:none;margin-top:0.5em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;text-decoration:none;border-top-width:1px;border-top-color:#bbbbbb;height:1px;text-align:left;width:376px;padding:0px"> TheScorpion</span><hr class="sig">TheScorpionSun, 01 Nov 2009 00:11:41 Z2009-11-17T15:20:43Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/0ae592b6-9900-4e02-8817-c01e43f91d82http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/0ae592b6-9900-4e02-8817-c01e43f91d82davidprogrammerhttp://social.msdn.microsoft.com/Profile/en-US/?user=davidprogrammerConnect to MYSQLon Vista 64 bit server from XPI have an vb.net APP that uses MYSQL and it has worked fine running between 2 xp computers using Visual Studio 2005.  I recently upgraded the APP to run under Vista 64 bit using Visual Studio 2008, and now when I install the new publish on the XP computer, it will not run.    The error is &quot;Unable to connect to any of the specified Mysql Hosts&quot;   I think it may be related to a firewall issue, but I can not see a way in Windows Firewall to open port 3302 on Vista 64 computer.  I have added mysql as a permitted program with access rights.   I tried loading Navicat on the XP client computer and it could not connect to the new Vista mysql server but could see the old one that was running under XP.<br/><br/>The xp clientt computer is running the older framework v 2.0.50727 whereas vista machine has Framework 3.5 with SP1.     Anyone have an idea what I need to tweak to allow this app to have access to the MYSQL on the vista 64 bit computer.       The mysql.data is assembly version 5.0.7.0.<br/><br/>Thanks,<br/>DavidSun, 01 Nov 2009 21:03:49 Z2009-11-10T02:43:10Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b7a09510-f003-4c4e-b289-f0d8ce175683http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b7a09510-f003-4c4e-b289-f0d8ce175683Alex Farberhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20Farber64 bit client and 32 bit DllI want to compile native C++ program for 64 bit. It uses third-party Dll which does not have 64 bit version. Is it possible to do this?Sun, 08 Nov 2009 15:35:03 Z2009-11-09T13:27:07Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/465c8e4a-92e2-4024-8fc6-69ceb40b5cb7http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/465c8e4a-92e2-4024-8fc6-69ceb40b5cb7cwmiznerhttp://social.msdn.microsoft.com/Profile/en-US/?user=cwmiznerCan I make my .NET 2.0/VS 2005 web app 64 bit? Should I?Can I make my .NET 2.0/VS 2005 web app 64 bit?   Should I?<br/> <br/> possibly upgrading web server to windows 2008 64 bit<br/> <br/> should I?<br/> <br/> can i build/deploy my .NET 2.0/VS 2005 web app as a 64 bit app?<br/> <br/> will I have a faster running app if I do?<br/>Thu, 29 Oct 2009 18:51:56 Z2009-11-09T14:21:37Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/fe26e3f4-54ae-4632-902a-ea9e6303b96ehttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/fe26e3f4-54ae-4632-902a-ea9e6303b96eashlesh.patelhttp://social.msdn.microsoft.com/Profile/en-US/?user=ashlesh.patelString Replace functionalityhello all,<br/> <br/> I need to replace &quot;(double quotes) with the &quot;&quot;(2 times double quotes) in a string.<br/> <br/> I have tried it with the tempstr.Replace(&quot;&quot;&quot;,&quot;&quot;&quot;&quot;) but not getting success.<br/> <br/> Please help me out ASAP.<br/> <br/> Best Regards,<br/> <br/> Ashlesh PatelSat, 24 Oct 2009 09:25:04 Z2009-11-04T09:14:00Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/dfbd0406-bc69-436e-998b-7fc454012f91http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/dfbd0406-bc69-436e-998b-7fc454012f91Ogulcankhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ogulcank64 bit ODBC driver for Microsoft AccessHello,<br>I am trying to connect to one of my Access databases (.mdb file on my local) from ODBC connection. The problem is, I am using 64-bit Xp Pro and it does not see any Access driver on 64-bit architecture. <br>Does anybody have 64-bit compatible ODBC driver for Microsoft Access ? Any other help also will be appreciated....<br>Sat, 05 Aug 2006 09:05:04 Z2009-11-18T21:55:30Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/a707d202-1a8b-43b1-9fff-08aa7ceb200ahttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/a707d202-1a8b-43b1-9fff-08aa7ceb200aPWStevenshttp://social.msdn.microsoft.com/Profile/en-US/?user=PWStevensPrintDialog Not displaying in 64 bit<p>Hello, I have the following code that I'm running without problems on 32 bit, it brings up the print dialog just fine, however on 64 bit it doesn't work, nothing displays; we had the same problem with the crystal viewer and they gave us a hot fix to fix the issue;  do I need to write directly to the windows api or create my own print dialog to get around this?  Is this a known issue, I didn't find anything on it.</p><font color="#0000ff" size=2> <p>Using</font><font size=2> frm </font><font color="#0000ff" size=2>As</font><font size=2> </font><font color="#0000ff" size=2>New</font><font size=2> System.Windows.Forms.PrintDialog</p></font><font size=2> <p>frm.Document = mPrintDocument</p> <p></font><font color="#0000ff" size=2>If</font><font size=2> frm.ShowDialog(</font><font color="#0000ff" size=2>Me</font><font size=2>) = Windows.Forms.DialogResult.Cancel </font><font color="#0000ff" size=2>Then</p></font><font size=2> <p></font><font color="#0000ff" size=2>Return</p></font><font size=2> <p></font><font color="#0000ff" size=2>End</font><font size=2> </font><font color="#0000ff" size=2>If</p></font><font size=2> <p>mPrintDocument.Print()</p></font><font size=2> <p></font><font color="#0000ff" size=2>End</font><font size=2> </font><font color="#0000ff" size=2>Using</p></font> <p>Error handling was removed for clarity... thank you in advance.</p> <p>Phil</p>Wed, 09 Aug 2006 13:26:52 Z2009-11-03T22:05:24Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/33e14ce7-b1a4-4dc0-aa41-7bdfcfe88a2bhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/33e14ce7-b1a4-4dc0-aa41-7bdfcfe88a2bAndrewBaderahttp://social.msdn.microsoft.com/Profile/en-US/?user=AndrewBaderaFresh Windows 7 x64 install, Visual Studio 2008 debugger won't attach/fails to hit breakpointHi all, <div><br/></div> <div>Was forced to move from 32-bit Vista to Windows 7 x64 over the weekend, and now when trying to debug a web app, the debugger won't launch if I use Debugger.Launch(), and breakpoints aren't hit when I manually attach to w3wp.exe. After the page in question loads, w3wp.exe no longer appears in the processes window even though the page will continue to load (not cached). Yes, all processes and all sessions are checked.</div> <div><br/></div> <div>I've tried explicitly setting all projects to x64 from AnyCPU, no change.</div> <div><br/></div> <div>Yes, I'm running as Administrator.</div> <div><br/></div> <div>When using Debugger.Launch() I get the following exception in Windows app log:</div> <div> <div><br/></div> <div>Log Name:      Application</div> <div>Source:        VsJITDebugger</div> <div>Date:          11/3/2009 12:08:03 PM</div> <div>Event ID:      4096</div> <div>Task Category: None</div> <div>Level:         Error</div> <div>Keywords:      Classic</div> <div>User:          N/A</div> <div>Computer:      *</div> <div>Description:</div> <div>An unhandled exception ('Launch for user') occurred in w3wp.exe [5916]. Just-In-Time debugging this exception failed with the following error: Not enough storage is available to complete this operation.</div> <div><br/></div> <div>Check the documentation index for 'Just-in-time debugging, errors' for more information.</div> <div>Event Xml:</div> <div>&lt;Event xmlns=&quot;http://schemas.microsoft.com/win/2004/08/events/event&quot;&gt;</div> <div>  &lt;System&gt;</div> <div>    &lt;Provider Name=&quot;VsJITDebugger&quot; /&gt;</div> <div>    &lt;EventID Qualifiers=&quot;49152&quot;&gt;4096&lt;/EventID&gt;</div> <div>    &lt;Level&gt;2&lt;/Level&gt;</div> <div>    &lt;Task&gt;0&lt;/Task&gt;</div> <div>    &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;</div> <div>    &lt;TimeCreated SystemTime=&quot;2009-11-03T17:08:03.000000000Z&quot; /&gt;</div> <div>    &lt;EventRecordID&gt;3585&lt;/EventRecordID&gt;</div> <div>    &lt;Channel&gt;Application&lt;/Channel&gt;</div> <div>    &lt;Computer&gt;*&lt;/Computer&gt;</div> <div>    &lt;Security /&gt;</div> <div>  &lt;/System&gt;</div> <div>  &lt;EventData&gt;</div> <div>    &lt;Data&gt;An unhandled exception ('Launch for user') occurred in w3wp.exe [5916]. Just-In-Time debugging this exception failed with the following error: Not enough storage is available to complete this operation.</div> <div><br/></div> <div>Check the documentation index for 'Just-in-time debugging, errors' for more information.&lt;/Data&gt;</div> <div>    &lt;Binary&gt;0E000780&lt;/Binary&gt;</div> <div>  &lt;/EventData&gt;</div> <div>&lt;/Event&gt;</div> </div>Tue, 03 Nov 2009 17:16:59 Z2009-11-03T18:18:02Zhttp://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b6440b05-ad8b-46f1-b5e0-d9eb6fbbae58http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/b6440b05-ad8b-46f1-b5e0-d9eb6fbbae58gudluckhttp://social.msdn.microsoft.com/Profile/en-US/?user=gudluckpdf files through vb.net<p>I'm creating a program to generate PDF files in VB.Net.</p> <p>Everything is working fine except that the image is being displayed with a blue background while the image provided doesn't have any.</p> <p>Following are the lines of code being used:</p> <pre class=prettyprint><code><span class=pln>sColor </span><span class=pun>=</span><span class=pln> </span><span class=typ>IIf</span><span class=pun>(</span><span class=pln>mvarEncodeASCII85</span><span class=pun>,</span><span class=pln> ToASCII85</span><span class=pun>(</span><span class=typ>ImgColor</span><span class=pun>),</span><span class=pln>     </span><span class=pun>(</span><span class=typ>System</span><span class=pun>.</span><span class=typ>Text</span><span class=pun>.</span><span class=typ>Encoding</span><span class=pun>.</span><span class=typ>GetEncoding</span><span class=pun>(</span><span class=lit>1252</span><span class=pun>).</span><span class=typ>GetString</span><span class=pun>(</span><span class=typ>ImgColor</span><span class=pun>)))</span><span class=pln> </span></code></pre> <p>What am I doing wrong?<br/>the image is a .bmp image.</p>Sat, 28 Mar 2009 12:24:47 Z2009-11-02T09:17:50Z