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


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

The WCF serialization has a bad performance on 64Bit computer as 64Bit application ?

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :WCF
 

   My application has a bad performance while running on the 64bit computer as 64bit application. And I found the reason is that the WCF serialization of contract took most of the time.  The serialization and de-serialization's performance is worse than running as 32bit application on the 64bit computer.

   I wrote a demo to record the consuming time of serialization and de-serialization of contract. The application running as 64Bit took about twice time than running as 32Bit application. I don't know why the performance of WCF serialization of contract is so much different between 32Bit  application and 64bit application. Has anyone encountered this issue?  

   the part of demo code:

 public static void Read(DataContractSerializer serializera, MemoryStream stream,string description,int time)
    {
      stream.Flush();
      stream.Position = 0;
      Stopwatch watch;
      using (XmlDictionaryReader reader =
         XmlDictionaryReader.CreateTextReader(stream, XmlDictionaryReaderQuotas.Max))
      {
        watch = Stopwatch.StartNew();
      


View Complete Post


More Related Resource Links

Installing 64 bit software application that uses 64bit MS access on a computer which contains Widows

  

We have an old software application that was primarily developed for 32 bit OS but based on the market requirement we have also ported it for 64bit OS. The application uses MS-Access as a database and the 64bit version of the software used the 64bit MS Access. The problem we are facing is with the installation of this application on Windows 7/Vista OS which has MS Office 32 bit intalled on it. The problem is as follows:

"When the applicaiton is installed on the above environment the installer says that the user needs to uninstall the 32bit version of MS-Office while as a user I expect that the application should not bother about the version of MS Office already installed on the system?.

"As a work around to this I have found that if we uninstall the 32 bit MS office, then install my application and finally re-install the 32bit MS office then there is no problem".

What component do I need to include in my installer package or what changes do I need to make in my code so that the problem does not exists and the user can install my 64bit application without uninstalling his 32bit MS Office. Any help on this would be highly appreciated.

We are using Ace Database Engine for 64 bit support in our application and to me it appears that it is the Ace Database Engine that ask to uninstall 32 bit MS Office. Is there any workaroun

Win7 64bit showing my database as ReadOnly when Application Installed

  

Hello ,

I have faced a very strange issues so far.. let me explain you all my situation..

I have an windows application.. it's developed in the .net framework 2.0 and back end with SQL Express 2005 , and I am attaching my database file while I install application on the machine.

My appliction works okay in all the operating system with 32 bit platform but when I tried to install it on the Win 7 , 64 bit it was giving me error with ReadOnly database and can't execute query.

I have checked all permission given to folder of my database in both 32bit and 64 bit win7, it looks same.. then what could be cause of such an error.. though when I tried to run it from vs in win7 64bit (Debug though visual studio), it was working correctly..

if you have any solution.. for this problem. let me know ..

thanks..

 

 

 

 

 

 


Thanks and Regards, Shailesh B. Davara sdavara.com

Win7 64bit showing my database as ReadOnly when Application Installed

  

Hello ,

I have faced a very strange issues so far.. let me explain you all my situation..

I have an windows application.. it's developed in the .net framework 2.0 and back end with SQL Express 2005 , and I am attaching my database file while I install application on the machine.

My appliction works okay in all the operating system with 32 bit platform but when I tried to install it on the Win 7 , 64 bit it was giving me error with ReadOnly database and can't execute query.

I have checked all permission given to folder of my database in both 32bit and 64 bit win7, it looks same.. then what could be cause of such an error.. though when I tried to run it from vs in win7 64bit (Debug though visual studio), it was working correctly..

if you have any solution.. for this problem. let me know ..

thanks..

 

 

 

 

 

 


Thanks and Regards, Shailesh B. Davara sdavara.com

How to make my vs.net 2005 built application run on 64bit windows server?

  
I have a problem with my application, i can't make it run in a 64 bit windows server 2003. My App use to communicate to a finger print scanner device which listens to device events and automatically transfers device logs to a database.

This app use to run smoothly in a 32bit windows (my development env is xp sp2 using vs.net 2005 and .net 2.0 framework). But when i tried to install it on a 64 environment everything went wrong. The app returns a CLSID exception in which it can't find the specified reference.

I have already encountered and fixed this exception in a 32bit windows environment but it really freaks me out seeing my app stucked in a 64bit environment.

Any ideas on how I can fix my problem is greatly appreciated!
Thank you in advance..

High-Performance .NET Application Development & Architecture

  
It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Improving Application Performance in .Net

  
Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

Performance Tuning on DirectShow Camera Application

  
Windows CE 6.0 supports DirectShow® components to develop a rich camera application. A minimum requirement of the camera application is to show preview, capturing the still images which is stored as a compressed file (JPG) format, capturing/multiplexing the video with or without audio i.e. stored as a compressed file (WMV) format.

Windows CE 6.0 provides sample applications for showing preview, capturing still and video using DirectShow® components. However these sample applications doesn't cover all the aspects to develop a commercial application. A commercial camera application at least satisfies the following performance criteria.

Performance: Find Application Bottlenecks with Visual Studio Profiler

  

We will introduce you to the Visual Studio Profiler by walking through a sample performance investigation, pinpointing code inefficiencies in some sample applications.

Hari Pulapaka and Boris Vidolov

MSDN Magazine March 2008


CLR Inside Out: Improving Application Startup Performance

  

Application startup performance matters to users, and there's plenty you can do to improve it. Here's a look at where to begin.

Claudio Caldato

MSDN Magazine March 2008


SQL Server: Uncover Hidden Data to Optimize Application Performance

  

SQL Server 2005 gathers a lot of useful data that you can use to identify areas where database performance can be improved. Here's what you need to improve performance.

Ian Stirk

MSDN Magazine January 2008


.NET CLR Profiling Services: Track Your Managed Components to Boost Application Performance

  

The Microsoft .NET platform provides you with a rich set of services for building profilers and application monitors for applications targeting the Common Language Runtime (CLR). These services expose runtime events that occur during the execution of a .NET application. They can be used to obtain information about managed code being executed under the runtime. This article describes the .NET CLR Profiling Services and shows how to use the services to build a simple profiler that will provide hot spot information for any .NET application. The sample profiler can easily be modified to suit other profiling and monitoring needs.

Anastasios Kasiolas

MSDN Magazine November 2001


Tip #107 Did you know . How to improve debugging performance for MVC2 application in Visual Studio 2

  
VS2010 Ultimate included IntelliTrace functionality by default.  IntelliTrace captures events (e.g. exceptions), and can affect performance of debugging. The typical performance hit is about 5% in the default mode (collection can be increased to...(read more)

Reporting Services in SharePoint integration - configurtion errors in 64bit version

  

Hi,

We have build an MOSS 2007 environment on 64 bit servers. We build the reporting services server and configured in SharePoint integration mode. Initially configuration looks fine with reporting services integration with green indicators.

 

After creating a web application and accessing the web site from the report servor, i have found the following errors:

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'RSSharePointSoapProxy, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot fi

Connecting to Oracle on 64bit OS

  
We have a 64-bit implementation of MOSS 2007. I recently installed the SharePoint SDK to use the Application Definition Designer to connect to Oracle. I enter the connection string and then I get this:

Attempt to load Oracle client libraries threw BadImageFormatException. The problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

I have verified that the server contains the 64 bit version of the Oracle client installed both with the instantclient and with system.data.oracleclient.dll. The only thing I can think of is that the tool was compiled as a 32bit application.  Is there a 64bit version available? Is there something else that I'm missing?

gdi32.dll + unsafe code on 32+64Bit Windows

  
Which target cpu should I use to compile a .NET 3.5 app (developed on a 32 Bit System) that contains an assembly which uses [DllImport("gdi32.dll")] static extern IntPtr CopyEnhMetaFile(IntPtr hemfSrc, IntPtr hNULL); and which also has the option checked: "Allow unsafe code" because of the following code: ((byte*) dst.Scan0.ToPointer())[(dst.Stride*y) + x] =... so that the app is able to run both on 32 and 64 Bit Windows ? If the answer is "x86", does it mean that all referenced assemblies of the app have to be compiled with "x86" or just the "app.exe" ? Thanks.

C# target 32bit and 64bit desktops with SMO included

  
I have an application that uses three SQL 2008 R2 SMO assemblies.  I need to target 32 and 64 bit machines that are running either 32 or 64 bit versions of SQL 2008.  I have no idea how to handle an Any CPU build for the application.  Since the SMO assemblies are either 32 bit or 64 bit, do I have to create a 64 bit build of my app and also a 32 bit build of my app.  I have no idea how to proceed with the build at this point.  This is my first app to support 64 bit machines and servers; I have only had to work in 32 bit in the past. Also, I do not know where the best forum for this question would be.  It is not a SQL question unless the answer is in the SQL assemblies.  I am developing on 64 bit Win 7 with VS 2010 and .Net 4. The C# app is wpf. The application needs to run on 32  and 64 bit Vista machines with 32 and 64 bit SQLExpress 2008 instances, and it also needs to run on 2003 and 2008 32 and 64 bit servers running 32 and 64 bit SQL 2008 servers. Any help would be appreciated.  I expect that I don't know what I don't know on compiling apps and including assemblies in an Any CPU world. Thanks, LD

Windows 7 64bit Registry access using x86 assembly

  
Hi guys, I have an assembly that is complied in x86 release mode. The assembly tries to access  a particular registry key in Win7 the key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion  -> ProductID(tried to read this value) As the assembly is in x86 it tries to look for the key in SysWow64 node HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion -> ProductID(tried to read this value) When i went through the registry i found that the string "ProductID" is missing (!) .. (may be because i have trial version of windows 7 x64)? I just wanted to ask , is there a way to read registry key (not in wow6432node ) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion  -> ProductID  in x86 mode? Im using the following  code RegistryKey regkey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", false); //reads in wow6432Node for x86 assembly string strProductID = string.empty; if (((regkey != null))) { // Get key Value of ProductId. strProductID = (string)regkey.GetValue("ProductId"); if ((string.IsNullOrEmpty(strProductID))) { //try reading another path for "ProductID" } } return strProductID ; PS:When i complie the same assembly as "Any Cpu" , the above code returns corr
Categories: 
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