Forum  General Visual ...  Announce It! ( ...  About Session State for .NET 2.0
Previous Previous
 
Next Next
New Post 1/27/2009 8:08 AM
Informative
  nicbua
17 posts
www.sbg.it
No Ranking


About Session State for .NET 2.0 

 Hi All,

a week ago our company needs to use the session state different of InProc.

We have Installed the last VWG version, v.1.1R build 6.2.3.

In order that the sessionState="StateServer" works it's necessary:

  1. In the SDK installation option you must choose Visual WebGui Scalable Server
  2. after installation check that Visual WebGui Scalable Server windows services is running
  3. start ASP.NET State Service windows service

Our test application gave this error:

"System.Web.HttpException: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

Stack Trace:
[Exception: You cannot use the serialization functionallity] - please install a proper hotfix (http://support.microsoft.com/kb/927495)
Gizmox.WebGUI.Server.Serialization.SessionSurrogate.Selector..ctor() +103

etc. etc."

 

Well, the yellow highlighted indicates to install a .net Framework Hotfix.

For .NET Framework 1.1 you must install the 927495 MS hotfix, see http://support.microsoft.com/kb/927495/en-us

At the end of the above article I've found this information:

"This problem may also occur in the .NET Framework 2.0. To obtain the hotfix for the .NET Framework 2.0, click the following article number to view the article in the Microsoft Knowledge Base: 931634  (http://support.microsoft.com/kb/931634/ ) FIX: Error message when you use a serialization surrogate to serialize XML data or to deserialize XML data in the Microsoft .NET Framework 2.0: "The object with ID 3 was referenced in a fixup but does not exist"

Since I'm using the .NET Framework 2.0 to install the hotfix 931638 I've installed the .NET Framework 2.0 SP1 and our project has worked well.

Conclusions: when you want using session state different of InProc on .NET Framework 2.0, assure that .NET Framework 2.0 SP1 is installed.

Nicola

 

 
New Post 1/27/2009 12:52 PM
  palli
11189 posts
1st Level Poster




Re: About Session State for .NET 2.0 

Hi Nicola,

Thank you very much for this detailed and valuable information. I'm sure forum users will benefit from your findings.

Thanks again,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 5/14/2009 1:20 PM
  dbardi
17 posts
No Ranking




ServerReport is NULL 

 The wrapper worked, but the ServerReport property is always null.. I can't set any properties of ServerReport in order to connect to SQL  Reporting Services Server.

Her is my code:

 

        private void InitializeRemote()
        {
            this.ReportViewer.ServerReport.Timeout = 60000; <<< Failure is here when ServerReport is first accessed

            // Send credentials to reporting services using a Custom Credentials Class
            this.ReportViewer.ServerReport.ReportServerCredentials = new ReportServerCredentials();
            this.ReportViewer.ServerReport.ReportServerUrl = new Uri(Settings.Default.Reports_Url);
            this.ReportViewer.ServerReport.ReportPath = string.Format("{0}/{1}", Settings.Default.Reports_ServerFolder, this.ReportName);
        }

 

 


Daniel S. Bardi
 
New Post 5/14/2009 2:18 PM
  rdhatch
635 posts
1st Level Poster




Re: ServerReport is NULL 
Modified By rdhatch  on 5/14/2009 4:19:46 PM)

Hi Daniel -

Wrong thread?  Please repost to a new thread so Palli can assist you there.  Thanks!

Ryan


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 5/15/2009 2:51 PM
  palli
11189 posts
1st Level Poster




Re: ServerReport is NULL 

Hi Daniel,

I agree with Ryan, that this preferably belongs to another thread... but I did test this though on my PC, and I don't get the problems you describe.

Are you sure you have Microsoft.ReportViewer.WebForms version 9 installed on your PC ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  About Session State for .NET 2.0
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS