473,626 Members | 3,294 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cassini webserver and Viewstate

I have a webapplication that runs with out any errors under
MS IIS 5 / 6.

But when I try to run it under MS Cassini web server i get this error if i
have
a big Viewstate ( A datagrid or a treecontrol with a lot of data ).

############### ############### ############### ############### ###########
[FormatException : Invalid character in a Base-64 string.]
System.Convert. FromBase64Strin g(String s) +0
System.Web.UI.L osFormatter.Des erialize(String input) +25
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +101

[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 127.0.0.1
Port:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
############### ############### ############### ############### ###########

/Jonas
Nov 18 '05 #1
1 1298
the viewstate is proably truncated, some proxy servers will do this also, so
the real fix is to reduce the viewstate payload. your site uses will be
happy also.

-- bruce (sqlwork.com)
"Jonas Nilsson" <jo***********@ hotmail.com> wrote in message
news:OW******** ******@TK2MSFTN GP11.phx.gbl...
| I have a webapplication that runs with out any errors under
| MS IIS 5 / 6.
|
| But when I try to run it under MS Cassini web server i get this error if
i
| have
| a big Viewstate ( A datagrid or a treecontrol with a lot of data ).
|
| ############### ############### ############### ############### ###########
| [FormatException : Invalid character in a Base-64 string.]
| System.Convert. FromBase64Strin g(String s) +0
| System.Web.UI.L osFormatter.Des erialize(String input) +25
| System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +101
|
| [HttpException (0x80004005): Invalid_Viewsta te
| Client IP: 127.0.0.1
| Port:
| User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
| 1.1.4322)
| ############### ############### ############### ############### ###########
|
| /Jonas
|
|
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4316
by: J. Muenchbourg | last post by:
I'm trying to install the Cassini WebServer on my Windows xp with .net framework, but the below instructions to get the webserver running after downloading the .exe doesnot make any sense at all: ------------ Instructions ------------ Go to the directory containing the above files (setup to use c# compiler and gacutil utility). Run 'build.bat', it will:
0
977
by: DeWitt Phillips | last post by:
Can anyone tell me if there is a limit to the size of the viewstate that can be processed by the web server that comes with Web Matrix? I am only able to edit / update a few records before I get an error meassge telling me that the viewstate is corrupt. I believe that it has to do with the size of the viewstate because I am able to edit the first five records but when I add a sixth record an viewstate corrupted error will appear. If I...
0
1125
by: Philipp Richter | last post by:
Cassini everytime gives me the error "Cassini Personal Web Server failed to start listening on port 80" Is there a known problem with cassini regarding this? Even if i change the port it wont work. Any Ideas?
4
1660
by: Ken Varn | last post by:
I am trying to cut down the amount ViewState data that is passed to the client browser. I have a number of Web Server Controls on my page, but I am confused as to when ViewState can be disabled to save on web traffic. For instance.... I have several drop down listboxes. If I disable ViewState, then my server side code cannot obtain the selected item when the form is submitted. The thing that confuses me is that this should be...
5
2598
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created as websites. I was happy until when out of the blue Cassini has re-enabled itself for one of the websites I am developing. Despite the Start Option settings I can't get rid of the Cassini pest and my website will not load from the IDE. Does...
5
1420
by: Randall Parker | last post by:
Running XP Home which does not come with IIS. In response to advice received on this forum I installed the Cassini web server to serve in place of IIS. See here for Cassini: http://www.asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1 Trying to create an asp.net project in VS 2003. When I try to create the problem I get this error: "The default Web access mode for this project is set to file share, but the project...
2
1257
by: Tim_Mac | last post by:
hi, for various reasons (navigational, relative paths etc.) i want the web site to always run from a root directory, i.e. http://localhost:3038/ and not http://localhost:3093/Virtual/ can cassini be configured to always run from the root? i know you can launch it from command line, with /vpath:/ but that doesn't sound like it will integrate with VS very easily. thanks for any tips tim
4
2228
by: Anbu | last post by:
Hi All, I'm using the Cassini component in my desktop application to create a web site to host the web services. The application works fine in normal scenario. If the system is kept idle for some time, the application getting terminated with the following error: Unhandled Exception : An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte buffer, Int32 offset, Int32
5
7693
by: OJ | last post by:
Hi, I am at a loss here, I have a c# asp.net website which connects to a remote SQL Server 2000 db via a connection string. If I set the website up in the filesystem and use the inbuilt cassini webserver in VS2005 then everything is rosy. If I then set up the website on the local IIS 5.1 the site no longer connects and returns this error: An error has occurred while establishing a connection to the server. When connecting to SQL Server...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.