Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Do I Get a SerializationException Thrown When Running a Website Built Using Measurement Studio, ASP.NET, and Visual Studio 2008 on Windows Vista 64-bit

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
When building a website that uses ASP.NET, Measurement Studio, and Visual Studio 2008 on Windows Vista 64-bit I get a SerializationException at runtime with the message:

Attempting to deserialize an empty stream

Solution:
While using a Measurement Studio component, which requires licensing, Visual Studio 2008 generates the licenses.licx file. This file is added to App_licenses.dll when building a Web Site. In Visual Studio 2008 on Windows Vista 64-bit, there is a known issue with generating the App_Licenses.dll in which Visual Studio does not add the licenses.licx file to the DLL. 

This has been brought to Microsoft's attention and will be fixed in a future patch or hotfix.

There are a couple options for trying to get around this.
  • Create the project on a 32-bit system and then move it to Visual Studio 2008 on the 64-bit system.  If the license DLL is already correct then Visual Studio 2008 on a 64-bit system will handle it properly.
  • Create the project in Visual Studio 2005 on the 64-bit system and then upgrade it to Visual Studio 2008.  Visual Studio 2005 will correctly create the license DLL that Visual Studio 2008 can handle properly.

Note: This issue has been fixed in Visual Studio 2008 Service Pack 1.



Related Links:


Microsoft Connect Feedback: VS 2008 64Bit generates incorrect App_licenses.dll in a Web Site

MSDN: Visual Studio 2008 Service Pack 1 and .NET Framework 3.5 Service Pack 1



Attachments:





Report Date: 07/16/2008
Last Updated: 09/05/2008
Document ID: 4NFI340R

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit