Dependent DLL is not getting copied to the build output folder in Visual Studio

I have a visual studio solution. I have many projects in the solution. There is one main project which acts as the start up and uses other projects. There is one project say “ProjectX”. Its reference is added to main project. The ProjectX references another .NET dll (say abc.dll) that isn’t part of the solution. … Read more

Why do 64-bit DLLs go to System32 and 32-bit DLLs to SysWoW64 on 64-bit Windows?

I would like to know when do we need to place a file under C:\Windows\System32 or C:\Windows\SysWOW64, on a 64-bits windows system. I had two DLL’s, one for 32-bit, one for 64-bit. Logically, I thought I’d place the 32-bit DLL under C:\Windows\System32, and the 64-bit DLL under C:\Windows\SysWOW64. To my surprise, it’s the other way … Read more

Can’t find how to use HttpContent

I am trying to use HttpContent: HttpContent myContent = HttpContent.Create(SOME_JSON); …but I am not having any luck finding the DLL where it is defined. First, I tried adding references to Microsoft.Http as well as System.Net, but neither is in the list. I also tried adding a reference to System.Net.Http but the HttpContent class is not … Read more

How do I find the PublicKeyToken for a particular dll?

I need to recreate a provider in my web.config file that looks something like this: <membership defaultProvider=”AspNetSqlMemProvider”> <providers> <clear/> <add connectionStringName=”TRAQDBConnectionString” applicationName=”TRAQ” minRequiredPasswordLength=”7″ minRequiredNonalphanumericCharacters=”0″ name=”AspNetSqlMemProvider” type=”System.Web.Security.SqlMembershipProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A” /> </providers> </membership> However, I get a runtime error saying this assembly cannot be loaded, and I think it is because I have the wrong PublicKeyToken. … Read more

Resolving LNK4098: defaultlib ‘MSVCRT’ conflicts with

This warning: LINK : warning LNK4098: defaultlib ‘MSVCRT’ conflicts with use of other libs; use /NODEFAULTLIB:library is a fairly common warning in Visual Studio. I’d like to understand the exact reason for it and the right way (if at all) to handle it. This comes up in a debug build, compiled with /MDd. The project … Read more

How can I test a Windows DLL file to determine if it is 32 bit or 64 bit? [duplicate]

This question already has answers here: How can I determine for which platform an executable is compiled? (12 answers) Closed 9 years ago. The community reviewed whether to reopen this question 4 months ago and left it closed: Original close reason(s) were not resolved I’d like to write a test script or program that asserts … Read more