473,554 Members | 3,228 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net Viewstate and mobile applications problem

1 New Member
Hi all,

Hope someone can help with this - I am tearing my hair (singular) out.

I developed an application using asp.net 2.0 and Mobile Controls. Up till now I have been testing it with a Pocket PC which runs a version of Internet Explorer.

I'm trying to use the application now on a Samsung SGH-F700W which uses a web browser called NetFront 3.3 (this is being supplied by Vodafone in the UK as their answer to the iPhone).

On several pages within the application I get the following error message:

"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machine key> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster."

To save time, let me tell you some of the things I am aware of/have tried so far:

1. I am not using a web farm or cluster.
2. The application works find with Pocket PC.
3. I am aware that some mobile browsers limit the size of hidden fields and this may be screwing up the viewstate field. To this end, I have overridden the PageStatePersis ter property in my mobile forms, and am using the SessionStatePer sister. This has not resolved the problem.
4. I have tried adding:

<pages enableEventVali dation="false" viewStateEncryp tionMode ="Never" />

to my web.config file (although I am aware this is not recommended). This also does not solve the problem.
5. The browser does appear to be capable of supporting hidden fields, as I can see other hidden fields in the posted data.

Any ideas?

A more general question for those of you with more experience of a variety of mobile devices. Does anyone have an opinion on the use of viewstate in mobile applications that use Microsofts Mobile Controls? Is it just a bad idea? I would only have to support devices with an actual web browser that supports HTML, not mobile phones.

Thanks for any suggestions given!

Kind Regards

Mar 18 '08 #1
0 2223

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Richard Kasperowski | last post by:
Boston Mobile is the Boston-area mobile software developers group. We are a community of people who build applications for mobile devices such as mobile phones, PDAs, and pocket PCs. We meet approximately once a month to share our experiences developing mobile applications, and we discuss mobile development issues on our email list. More...
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter the results in the grid. Say you filter the grid for records that have a certain condition set to "NO" (in this case a checkbox). In this scenario...
by: Dominic | last post by:
My question is about how to maintain view state in mobile ASP.NET across postback / request in a web farm environment. First of all, let's assume the web-farm does NOT use stick-session feature. In other words, different web servers may serve different requests in the SAME session. In non-mobile ASP.NET, my understanding is that the view...
by: ASMJ | last post by:
Hi, I am new to the mobile web applications and want to know a few things regarding this. 1. Can we develop mobile web applications using Visual Web Developer express edition? and use it commercially? 2. When we develop a mobile web application, can the application also be accessed using a desktop other than the mobile devices, PDAs etc...
by: russell.lane | last post by:
I'm getting the much-hated "validation of viewstate MAC failed" error. This is on an ASP.Net 2.0 app running in IIS with IE 6+ as the browser. The full error text is: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and...
by: Niheel | last post by:
Apple just threw a massive blow to the world of Windows Mobile or any Mobile Hardware/OS company with the launch of iPhone2.0 and the developer SDK. Apple and Jobs have done what Gates did to the world of PCs. Back in the 90s when the desktop OS wars were going on, Microsoft was more open to third-party developers than they have been with their...
by: Marc | last post by:
I am reading some stuff in self paced course 728 about mobile applications. But the first thing that comes into my mind is, why do I need to build special server side code, if the browser happens to be a mobile device? Cannot mobile browsers access normal websites? Should I copy almost a whole server side application/website to a mobile...
by: Joe | last post by:
Hi ng, I have built a simple asp.net mobile app that works fine in the browser (IE6.0) but not in my mobile browser. Basically, it is a survey made up of several forms. At the end of the forms I have a button that submits the data via web service. On the Deactivate event of each form I collect the data I need form the fields and set...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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...
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...
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...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.