473,586 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Forms error out

4 New Member
Hello folks,

Can someone please help me with this???

Students at our university use our C# forms to request books/articles. These seem to have broken suddenly without my involvement (as webmaster).

What the heck does this error mean???


Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to validate data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Http Exception: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
System.Web.Conf iguration.Machi neKey.GetDecode dData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.L osFormatter.Des erialize(String input) +60

[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.L osFormatter.Des erialize(String input) +117
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +101

[HttpException (0x80004005): Invalid_Viewsta te
Client IP: 130.195.176.81
Port: 3846
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
ViewState: dDwtMTMxMjU1MjQ 0OTs7bDxObztZZX M7WWVzOz4+QKW2Z N8wmSGTPY83nEfT x9Lc8J8=
Http-Referer: http://www.victoria.ac.nz/library/fo...e-request.aspx
Path: /library/forms/distance-request.aspx.]
System.Web.UI.P age.LoadPageSta teFromPersisten ceMedium() +441
System.Web.UI.P age.LoadPageVie wState() +18
System.Web.UI.P age.ProcessRequ estMain() +447

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2407; ASP.NET Version:1.1.432 2.2407

Can someone explain it?? And how do I resolve it??
Oct 18 '07 #1
4 1343
sicarie
4,677 Recognized Expert Moderator Specialist
Moving to .NET (where our wonderful C# experts reside).
Oct 18 '07 #2
Plater
7,872 Recognized Expert Expert
Well if possible I would recomend debugging to find a particular section that is calling it, might be able to add more insight to it.

System.Web.Conf iguration.Machi neKey.GetDecode dData (Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195

It kinds sounds like the machine name changed and it effected some of the webservices/database accessing? Or even possible the SSL certificate thinger is having trouble? I'm not sure what "MachineKey " is but it sounds like an encryption issue kinda.
Is this an https:// server?
Oct 18 '07 #3
bsdanielm
4 New Member
Thanks for your reply plater......You r explanation actually does make alot of sense.

Recently, our university migrated its variouse websites over to a new website infrastructure (a server farm - I think thats what its technically called) and our library website was one of those that was migrated over.

The odd thing about all this though is that after our website was migrated, I gave these forms a thrashing (test.....3 times) to identify any bugs or errors and they were working fine. In fact they were working fine well after migration. And then suddenly this happens. So I'm assuming that there has been some sort of change higher up (machine name change).

Is this an https:// server? As far as I know, I think it is. However, secure web server is not applied to any of our website pages/forms.......
Oct 18 '07 #4
Plater
7,872 Recognized Expert Expert
The reason I asked is I think for https:// you need a special certificate (maybe not?) and I think it's generated partially based on the machine name. It may have been "valid" for awhile until it hit it's "time to check in and refresh" and then it discovered the server machine name had changed decided it was no longer valid.
That's a pretty big stretch, but it might not hurt to look into it?
Oct 18 '07 #5

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

Similar topics

6
4809
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and...
1
2505
by: MJ | last post by:
I'm building an application that has a file structure similar to the following: /myapp/user_login.aspx /myapp/user_page_1.aspx /myapp/user_page_2.aspx /myapp/user_page_3.aspx /myapp/admin/admin_login.aspx /myapp/admin/admin_page_1.aspx /myapp/admin/admin_page_2.aspx
3
1427
by: 20041210.20.eclipse | last post by:
Hi, I'm using MS Visual Studio .NET 2003 Standard on WinXP Home on a DELL Notebook. It is not possible to create a project that contains windows forms. When trying to create a Windows Forms application I get the error "The specified module could not be found". When trying to add Forms manually to a project I get the same error message....
3
4850
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this...
2
1420
by: Thomas Scheiderich | last post by:
I am trying to set up forms authentication in my IIS pages. I have a folder inside of my root folder I am trying to protect and I am getting an error when a page in the folder is accessed. The error is: **************************************************************************** **** Server Error in '/' Application....
1
1621
by: Sumaira Ahmad | last post by:
Hi, Please help me with this.. I am trying to use Forms Authentication in a sample project. I basically want to have two folders in my application , one in which I store pages that can be accesed without authentication and one which can be accessed only by authenticated users.. In my Anonymous folder: there is a default.aspx - which is...
3
2364
by: Geraldine Hobley | last post by:
Hello, In my project I am inheriting several forms. However when I inherit from a form and add additional subroutines and methods to my inherited form I get all sorts of problems. e.g. I sometimes get MyVarialble is not declared errors when the variable is quite clearly declared, when I change it to public and then back again to private the...
6
2559
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns errors. The machine is a new laptop Windows XP Pro SP2 The machine is up to date with respect to the dot net framework. Details: Dot Net Framework...
0
1591
by: Tony Johansson | last post by:
Hello! I have a very specific question and that is about how to inherit a visual control for example the control System.Windows.Forms.TextBox without causing the environment to delete the control when there are some compile errors. It's the same problem with any visual control that you inherit. The control is deleted as soon as you use the...
12
11048
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed!...
0
7915
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, 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...
0
8204
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. ...
0
6617
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...
1
5712
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...
0
5392
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...
0
3838
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...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.