.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

AnyCpu, x32bit, x64bit ? What are the differences?

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :.NET Framework

Hi Folks,

   can someone explain the differences between compiling an application with the AnyCpu or x32bit or x64bit compile options?


   I can guess what the differences with x32bit vs x64bit are .. but what about AnyCpu? Like, why would i create an application (eg. website or class library dll) targetted against x32 explicitly or x64 explicity instead of just building all my programs with AnyCpu? Does AnyCpu increase the dll size as opposed to explicit targetting at the cost of the dll not working on the other type of architecture?

View Complete Post

More Related Resource Links

WorkflowApplication Methods Differences?

Can any one explain what the difference is between the following methods of WorkflowApplication: Abort Cancel Terminate

How to handle differences in HTML code from different browser versions?

First of all I'm still very new to C# so be gentle :p I'm currently trying to make an application that can login to a certain website and search for some numbers and so on that I can put in an overview, just to save some time. The only thing I found that could do this is the WebBrowser control, and I've managed to make it work, but when I gave the program to a friend it failed. I think it has to do with the difference in browser versions (he uses Internet Explorer 7, I use the latest) and if that's the case I'm pretty clueless how to deal with the problem, since I don't even know what the differences in HTML codes are in each version, and it seems like a lot of work to adjust all the html code to check for accordingly. For example it was even so that & changed to & in my application on my PC and that's only by using one browser so I dunno what happens with other browser versions. I assume that the WebBrowser control always uses Internet Explorer, even if for example Firefox is the standard browser, is this true? But to be sure I asked the friend to put his Internet Explorer as the default browser and still no go. So my question is: is there a relatively easy way to make sure that the program works on practically any PC, without me having to make exceptions for like version 1.6.7 or 1.6.8 (I have no idea what versions there are really)?

Clustered vs NC index storage differences?

Does clustered index takes more disk space than NC for the same filed(s) for large tables? Also is CI takes longer (time) to build than NC if you have large tables? Any microsoft articles supporting these aruguments.

Differences between Silverlight and WCF(Full Framework) drawning

I have created a "Layout Editor" in Silverlight where the user can drag and drop text and image to create a custom layout. A sample of a Layout with one TextBlock can be seen here . The used font is Arial, size 50. This layout (not the image, but the layout itens properties like x,y,font, etc) is upload to the server by a WCF Service, which create the actual image and save it in the database. This is necessary because the text fields can have dynamic text, marked as '%text1', '%text2', where that dynamic values are in the database too. But, when i use the Bitmap and Graphics classes of the full .NET framework the DrawString method resulting drawning don't have the same aspect that your silverlight "counterpart". A result of the server generate image can ben seen here . Anyone can tell me if it is a resolution problem or something? I can't got a single clue about this.   PS: If it is possible, move to the corresponding forum section. I use Silverlight UI, WCF communication and GDI+ drawning, so used WCF forum.    

Database differences 2008 R2 editions

I am running 2008 R2 standard and a client wants to move from 2005 to 2008 R2 Enterprise. Will I be able to download a database from their system and restore it to my system? Assuming there are no components/coding in use on the Enterprise version that are explicitly reserved for Enterprise?  Maybe I should ask, is there a fundamental incompatibility right out of the box between the databases from these two editions like when attempting to restore an 2008 database on a previous version instance?  I hope I asked that right :)

Collation Differences?

Our company's standard collation for all new servers and subsequent databases is SQL_Latin1_General_CI_AS.  We purchased a 3rd party software package that creates a database using the collation Latin1_General_CI_AS.  From the little information I could find on the web and books online, they seem to be the same in definition of specification; however, when joining tables from our downstream databases to the 3rd party database tables we encounter collation errors.  Our DBA insists there is no difference between the two, but the 3rd party company has informed us that their product is only certified on the collation installed and, if we change the collation, they will no longer support the product if we have a problem them deem is related to the non-certified collation.  Where can I definitively ascertain information about whether the application will behave differently under our default collation and preclude us from using it.  Thanks in advance.

Differences between signed and unsigned dlls

Hi, Can someone brief on differences between signed and unsigned dlls. How can we test each of these ? thanks in advance sam

what is the differences between PostgreSQL and SQL?

are they the same? i mean, can you create database in PostgreSQL just like how you create it with SQL?  

How are people handling XP vs. Windows 7 differences?


How are people handling XP vs. Windows 7 differences in the UI?

For example, an icon is 16 x 16 pixels on every OS... so if you have a list box or list control, you would have a selection rectangle 18 pixels high (perfectly centered around the icon)... now the problem occurs with the text. On XP, you have 8 pixel tall fonts, so the font is perfectly vertically centered. On Windows 7, for some reason, they went to 9 pixel tall fonts... now everything is misaligned and impossible to align.

If you have text next to a 16 x 16 pixel icon, the text either looks too low or too high within the selection rectangle.

Are people forcing the font to 8 pixels high? just in those situations? throughout the entire app? etc. I guess you can make the selection rectangle 17 pixels high to make it look better, but then the selection rectangle next to the icon will look misaligned.


ADSI Differences between 2005 / 2008


Migrating to SQL Server 2008 / Windows Server 2008 64 bit from 2005/Windows Server 2003 32 bit, I have some core functionality querying AD through the ADSI Linked server. This has always worked great in SQL 2005.

		FROM openquery(adsi, '
			FROM ''LDAP://???.local"
			WHERE objectCategory = ''Person'' and objectClass = ''User'' and userAccountControl=512 or userAccountControl=66048')
	WHERE 		sAMAccountName like '%-%' 
			and sAMAccountName not like '%Acct%'	
			and	sAMAccountName NOT LIKE ('$%')
			and sAMAccountName NOT LIKE ('[_]'+'%')
	ORDER BY sAMAccountName

My resultset through SQL 2008 is less. 4771 rows in (2005) vs. 4676 (2008) 

Also I get an error message in (2008) when querying all (*) or greater than the number of rows.

For example, if I query top 4676  * result is fine, but *, top 4677 * or top(100) percent always returns

Msg 7330, Level 16, State 2, Line 1

Cannot fetch a row from OLE DB provider "ADsDSOObject" for linked server "adsi".

Any ideas where to look for this needle in the haystack, or has something changed?

Network configuration?


SQL Server 2005 - Differences between "Autoshrink" database option and manual "shrink database / log


Hello All !

I want to know if there are differences between "Autoshrink" database option and the SQL DBCC shrink (database/file) command.

I have, in production environment, a MS application (MIIS) with a SQL 2005 DB. This application takes very large db files (logs and datas). It's absolutely normal (several millions of transactions by day)

However, I had this morning a problem with disk space.

If I run manual dbcc shrink (db / file): I recover 4 GB

If I set "Autoshrink" option: I recover 50 GB

Microsoft doesn't recommand to set the "autoshrink" option on the majority of databases (for performances problems)

Are there links about these differences ?

Thanks for advance for your ideas / help - Regards - Have a nice day ! RHUM2

Differences between Encoding.GetEncoding and instantiating a specific encoding


Hi all,

is there any difference between the following lines? 

Encoding enc = Encoding.GetEncoding("utf-8");
Encoding enc = new UTF8Encoding();

Because when I use this in a custom message encoder for WCF, the behavior is different when using this encoding in an XmlWriter using XmlWriterSettings.

The first one result i

Using 32 or 64-bit DLL with AnyCPU DLL

Hi All,

First of all, I'm sorry if it is not the right place for this question... It was the one I though was the most appropriate.

I have a 3rd party DLL that has two versions, a 32 and a 64-bit version.

I was wondering if I could create an AnyCPU DLL that would use both versions depending on the context.

If I am in a x64 environment, I would have the two versions put in the GAC (GAC_32 and GAC_64) and my DLL put in the GAC_MSIL. Now, if I launch my DLL using a 32-bit program, will the dependency will be resolved with the 32-bit DLL? And if I launch my DLL using a 64-bit program, will the dependency will be resolved with the 64-bit DLL?

I hope this is clear enough...

Thank you,


Stack Trace differences on 64-bit system vs 32-bit

I'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).

Here's the program:
//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)
            try{ methodA(); }
            catch(Exception e)
            { Console.WriteLine(e + e.StackTrace); }

                Type t = Type.GetType("StackTraceTest.Program");
                t.GetMethod("methodA", BindingFlags.Static | BindingFlags.Public).Invoke(null, new object[] { });
            catch (Exception e)
            { Console.WriteLine(e + e.StackTrace); }

Differences Between OLE DB Destination And OLE DB Command w/ parameterized input statement

Hey, I am using an OLE DB Destination to enter data into an a400 table and I was getting very slow performance (fastload in not available for this provider). It was doing about 140 rows per minute. In testing i discovered that if i used an ole db command with a parameterized input statement (insert into library.table(blah, blah blah) values(?, ?, ?)) the performance increased dramatically. To about 1400 rows per minute. My question is, does anyone know what else the ole db destination is doing that could cause this slow down? Does the destination verify that the row has been inserted afterwords and maybe that could explain why it is so much slower? If so it may be safe to use the ole db command if i simply verify table count after completing the insert to make sure that all of the rows were entered. Or is there something else that the ole db destination is doing to where it may not be safe to do an ole db command in this way?

Differences in Json.Stringify implementation


I noticed that when I use IE8's Json.Stringify for a japanese character, e.g. "????? ?????", it returns

\u52a0\u3048\u306a\u3055\u3044 \u3084\u3084\u65b0\u3057\u3044

However when I use Firefox's Json.Stringify, it returns

????? ?????

IE8's Json.Stringify('????? ?????')


\u52a0\u3048\u306a\u3055\u3044 \u3084\u3084\u65b0\u3057\u3044

Firefox's Json.Stringify('('????? ?????')')


'????? ?????'

What is the difference? My preferred outcome is the unicode escape version.

differences between ssrs reports and crystal reports


as u all know about ssrs reports...
now i'm using the crystal reports 
and i want to go through ssrs reports
can anyone answer the following question. 
1)what is the need of ssrs...

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend