473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

FormsAuthentication and "unable to validate data": HELP!

Hi,

I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost
the application runs fine. For publishing we use 2 hosting providers at
the moment (let's call those 'A' and 'B'). Hosting provider A doesn't
give any problems and the application runs just fine. On hosting
provider B there are some problems, and I just can't figure it out =(.

My users login using FormsAuthentication. After clicking through the
application for a while (like 5 times) suddenly the login screen appears
(authentication data suddenly is lost). Sometimes the error "unable to
validate data" appears - which could indicate that there is a viewstate
error.

I phoned hosting provider B with this question. They said it is probably
because my application uses too much memory (the server flushes your
memory space when it exceeds 200MB(!!!)). I have monitored the memory
usage using the system monitor in the control panel - but the
application uses about 14MB only (with a peek of 80MB max).

I tried to fix this problem calling GC.Collect() almost everywhere in my
app, but it isn't any good =(. Now what really bothers me, is that I am
trying to fix this problem for 2 days now and I'm pretty much messing up
my application, just to make it work for hosting provider B - while the
app runs just smoothly on hosting provider A :(.

Any comments on this problem? What can I check? Maybe it's important to
say hosting provider B gives me medium trust, while I got full trust on A.

I'd really appriciate any comments on this topic.

Thanks in advance.

Harrie Verveer
Nov 19 '05 #1
2 3491
What DB and provider do you use?
We had some memory leaks when using Oracle DB with Oracle's own dataprovider.

Application appeared to be working fine, but in fact it's memory usage was
raising slowly higher and higher until whole server crashed.

"Harrie Verveer" wrote:
Hi,

I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost
the application runs fine. For publishing we use 2 hosting providers at
the moment (let's call those 'A' and 'B'). Hosting provider A doesn't
give any problems and the application runs just fine. On hosting
provider B there are some problems, and I just can't figure it out =(.

My users login using FormsAuthentication. After clicking through the
application for a while (like 5 times) suddenly the login screen appears
(authentication data suddenly is lost). Sometimes the error "unable to
validate data" appears - which could indicate that there is a viewstate
error.

I phoned hosting provider B with this question. They said it is probably
because my application uses too much memory (the server flushes your
memory space when it exceeds 200MB(!!!)). I have monitored the memory
usage using the system monitor in the control panel - but the
application uses about 14MB only (with a peek of 80MB max).

I tried to fix this problem calling GC.Collect() almost everywhere in my
app, but it isn't any good =(. Now what really bothers me, is that I am
trying to fix this problem for 2 days now and I'm pretty much messing up
my application, just to make it work for hosting provider B - while the
app runs just smoothly on hosting provider A :(.

Any comments on this problem? What can I check? Maybe it's important to
say hosting provider B gives me medium trust, while I got full trust on A.

I'd really appriciate any comments on this topic.

Thanks in advance.

Harrie Verveer

Nov 19 '05 #2
Then why use the second provider? ;=)

Maybe it is a problem with viewstate. Are you generating your own machinekey
value for use in the config file? If your provider has a webfarm setup then
the viewstate transmitted from one server on the webfarm will be invalid
when received on another unless you have the machine keys in your
web.config.

i.e
<machineKey
validationKey="2A63B5A96C31043D2B327BD4B9800FE3757 47DDBE0842D04CC9161F8DBCBB
CECE2D86D4980A837C5C2B91B08F03B415D08B72D5B183840D D768FE1711DCFB6B1"
decryptionKey="46249DE4B29381B374EBC51DE30DC605560 40F046D173C0B"
validation="SHA1"/>

Heres a couple of links:

http://support.microsoft.com/default.aspx/kb/831150

http://support.microsoft.com/default.aspx/kb/831150

Richard
"Harrie Verveer"
<ha****@harrie-remove-this-part-from-the-email-adress-verveer.com> wrote in
message news:42***********************@news.xs4all.nl...
Hi,

I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost
the application runs fine. For publishing we use 2 hosting providers at
the moment (let's call those 'A' and 'B'). Hosting provider A doesn't
give any problems and the application runs just fine. On hosting
provider B there are some problems, and I just can't figure it out =(.

My users login using FormsAuthentication. After clicking through the
application for a while (like 5 times) suddenly the login screen appears
(authentication data suddenly is lost). Sometimes the error "unable to
validate data" appears - which could indicate that there is a viewstate
error.

I phoned hosting provider B with this question. They said it is probably
because my application uses too much memory (the server flushes your
memory space when it exceeds 200MB(!!!)). I have monitored the memory
usage using the system monitor in the control panel - but the
application uses about 14MB only (with a peek of 80MB max).

I tried to fix this problem calling GC.Collect() almost everywhere in my
app, but it isn't any good =(. Now what really bothers me, is that I am
trying to fix this problem for 2 days now and I'm pretty much messing up
my application, just to make it work for hosting provider B - while the
app runs just smoothly on hosting provider A :(.

Any comments on this problem? What can I check? Maybe it's important to
say hosting provider B gives me medium trust, while I got full trust on A.

I'd really appriciate any comments on this topic.

Thanks in advance.

Harrie Verveer

Nov 19 '05 #3

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

Similar topics

3
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup...
0
by: Unabogie | last post by:
"preiner" <preiner@newsgroup.nospam> wrote in message news:C2DF9EAC-36E1-457C-BEBF-87737CAC5103@microsoft.com... >I also had this problem. I called MS tech support and they had an internal >KB >...
0
by: Galore | last post by:
Hello, I'm trying to make a simple socket application, something like a chat application, but when I run it, it shows the following error when the client connects to the server: "Unable to read...
1
by: Muscha | last post by:
Hello, Every now and then my application throw this exception: "Unable to read data from the transport connection" And when I break into the Visual Studio, the thread where it failed has...
0
by: Peter O'Reilly | last post by:
I receive the following error when I post a webpage: "Unable to validate error" - System.Web.HTTPException. The web page is an ASP WebForm page. I have a few controls on the page that when...
0
by: Steve Chatham | last post by:
I am stuck on this. It ought to be a simple reason as to why this is problematic, in that it works on smaller groups of data (say under 40 records), but doesn't on larger groups of records (40+)....
0
by: Victor Alcazar | last post by:
Our ASP.NET (VB) is generating sporadic "Unable to validate data" and "Invalid length for a Base-64 char array" errors. The production environment is two Windows 2000 Advanced Servers in a web...
2
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to...
0
by: Fresno Bob | last post by:
I get the following very intermittant error. System.Web.HttpException: Unable to validate data. at System.Web.Configuration.MachineKeySection.GetDecodedData The form encoding type is for...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
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...
0
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...
0
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,...

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.