corflags

x64 .NET compilation / Process Explorer oddity

谁说胖子不能爱 提交于 2020-01-03 14:43:29
问题 Apologies if any of what I'm about to say makes no sense or overlooks something obvious - my knowledge of CLR internals is spotty. If I understand correctly, then if I just build a solution for 'AnyCPU' in VS2K5 (or point MSBuild at that .sln file with those settings) then the binaries only compile as far as MSIL. They then get JITted to 32-bit if executed on a 32-bit platform or 64-bit code if executed on x64...right? The DLLs are used for a web app and hosted in the W3WP.exe process.

How to programatically set or clear the 32BIT flag?

霸气de小男生 提交于 2019-12-21 18:08:27
问题 When compiling, I always set it for Any CPU. However there are some customers that do not have a 64 bit version of a required binary, even when running on an x64 system. In these instances I have asked them to modify my binary with the corflags.exe /32BIT+ option: http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx I would like to make this transparent and modify the binary myself during installation time if the 64 bit version is not present. I would prefer not to make a call to

Running a 32-bit window service which loads a 32-bit dll as a 64-bit service

╄→гoц情女王★ 提交于 2019-12-12 02:08:45
问题 Here's the situation - A window service which I am coding uses Linq2Excel, which insist the invoking application to be complied against x86. However, the window service is to be installed on a 64-bit Windows server. Using corflags, I am able to get the 32-bit window service to install. However, it'll refuse to load Linq2Excel. Here's the exception in all its glory: Exception occurs: Could not load file or assembly 'LinqToExcel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of

CorfFlags warning CF011 about strong name signed even after /force

試著忘記壹切 提交于 2019-12-11 02:27:46
问题 Im trying to use Corflags to get PartCover running under x64. When I use: CorFlags.exe PartCover.exe /32BIT+ /Force i get: corflags : warning CF011 : The specified file is strong name signed. Using /Force will invalidate the signature of this image and will require the assembly tobe resigned. without /force i get: corflags : error CF012 : The specified file is strong name signed. Use /Force to force the update. On web there appears that others are runnig partcover throught corflags with no

Why is my 64 bit service running as 32 bit?

删除回忆录丶 提交于 2019-12-06 03:49:51
问题 I have a Windows Service that I'm having this issue with. In Visual Studio I've set its Platform Target to 64 bit I've run CorFlags to verify that it is set correctly, I get this: Version : v4.0.30319 CLR Header: 2.5 PE : PE32+ CorFlags : 0x1 ILONLY : 1 32BITREQ : 0 32BITPREF : 0 Signed : 0 I even tried running Corflags with the 32BITREQ- and 32BITPREF- flags to make sure it was set to what it's supposed to be but no dice. In the taskManager it shows up as: MyServiceName (32 bit) Service was

Where is CorFlags.exe? (.NET Framework Tools)

徘徊边缘 提交于 2019-12-04 22:21:54
Where can I find the CorFlags.exe tool ? I made full search of my hard disk drive, but it was not found. I have: .NET Framework 4.0, Visual C# 2010 Express, Visual C++ 2010 Express. The OS is Windows 7 Ultimate 32 bit. It should be part of the Windows SDK , version 6 or higher, located somewhere like... %ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\CorFlags.exe %ProgramFiles%\Microsoft SDKs\Windows\v6.0A\Bin\x64\CorFlags.exe %ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\CorFlags.exe %ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\x64\CorFlags.exe %ProgramFiles%\Microsoft SDKs\Windows\v7.1

Where can I find a reference for what every bit of the CorFlags value means?

一笑奈何 提交于 2019-12-04 17:49:55
问题 I'm messing around with some rather low level things and trying to determine why I get different outputs with the CorFlags.exe utility. For reference, the outputs are as so: $ corflags test2.exe Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.0.30319.17929 Copyright (c) Microsoft Corporation. All rights reserved. Version : v4.0.30319 CLR Header: 2.5 PE : PE32 CorFlags : 0x1 ILONLY : 1 32BITREQ : 0 32BITPREF : 0 Signed : 0 $ corflags test.exe Microsoft (R) .NET Framework

How to programatically set or clear the 32BIT flag?

大憨熊 提交于 2019-12-04 09:53:11
When compiling, I always set it for Any CPU. However there are some customers that do not have a 64 bit version of a required binary, even when running on an x64 system. In these instances I have asked them to modify my binary with the corflags.exe /32BIT+ option: http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx I would like to make this transparent and modify the binary myself during installation time if the 64 bit version is not present. I would prefer not to make a call to corflags.exe myself as that would mean I would need to redistribute the application which is not allowed as

Why is my 64 bit service running as 32 bit?

拥有回忆 提交于 2019-12-04 08:27:16
I have a Windows Service that I'm having this issue with. In Visual Studio I've set its Platform Target to 64 bit I've run CorFlags to verify that it is set correctly, I get this: Version : v4.0.30319 CLR Header: 2.5 PE : PE32+ CorFlags : 0x1 ILONLY : 1 32BITREQ : 0 32BITPREF : 0 Signed : 0 I even tried running Corflags with the 32BITREQ- and 32BITPREF- flags to make sure it was set to what it's supposed to be but no dice. In the taskManager it shows up as: MyServiceName (32 bit) Service was installed with Topshelf 3.0 and is running on Windows Server 2012 R2 Standard. What's going on here? I

Where can I find a reference for what every bit of the CorFlags value means?

可紊 提交于 2019-12-03 11:36:21
I'm messing around with some rather low level things and trying to determine why I get different outputs with the CorFlags.exe utility. For reference, the outputs are as so: $ corflags test2.exe Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.0.30319.17929 Copyright (c) Microsoft Corporation. All rights reserved. Version : v4.0.30319 CLR Header: 2.5 PE : PE32 CorFlags : 0x1 ILONLY : 1 32BITREQ : 0 32BITPREF : 0 Signed : 0 $ corflags test.exe Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.0.30319.17929 Copyright (c) Microsoft Corporation. All rights reserved.