Errors and solutions when running the Asp.net page

Source: Internet
Author: User

1:

Server Error in '/'application. Validation of viewstate Mac failed. If this application is hosted by a Web farm or cluster, ensure that <machinekey> Configuration specifies the same validationkey and validation algorithm. autogenerate cannot be used in a cluster.

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. httpexception: Validation of viewstate Mac failed. If this
Application is hosted by a Web farm or cluster, ensure that <machinekey>
Configuration specifies the same validationkey and validation algorithm.
Autogenerate cannot be used in a cluster.

Source error:

[No relevant source lines]


Source file:C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ temporary ASP. NET
Files \ Root \ 7f357fc5 \ ae304b34 \ app_web_mafv2oof.1.csLine:0

Stack trace:

[Viewstateexception: Invalid viewstate. client IP: 127.0.0.1port: Referer: http: // localhost: 50713/test1.aspxpath:/test2.aspxuser-AGENT: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; wow64; trident/4.0; slcc2 ;. net CLR 2.0.50727 ;. net CLR 3.5.30729 ;. net CLR 3.0.30729 ;. net4.0c ;. net4.0e; infopath.2) viewstate:/empty] [httpexception (0x80004005): Validation of viewstate Mac failed. if this application is hosted by a Web farm or cluster, ensure that <machinekey> Configuration specifies the same validationkey and validation algorithm. autogenerate cannot be used in a cluster.] system. web. UI. viewstateexception. throwerror (exception inner, string persistedstate, string errorpagemessage, Boolean macvalidationerror) + 235 system. web. UI. viewstateexception. throwmacvalidationerror (exception inner, string persistedstate) + 14 system. web. UI. objectstateformatter. deserialize (string inputstring) + 274 system. web. UI. objectstateformatter. system. web. UI. istateformatter. deserialize (string serializedstate) + 4 system. web. UI. util. deserializewithassert (istateformatter formatter, string serializedstate) + 37 system. web. UI. hiddenfieldpagestatepersister. load () + 241 system. web. UI. page. loadpagestatefrompersistencemedium () + 106 system. web. UI. page. loadallstate () + 43 system. web. UI. page. processrequestmain (Boolean includestagesbeforeasyncpoint, Boolean includestagesafterasyncpoint) + 8431 system. web. UI. page. processrequest (Boolean includestagesbeforeasyncpoint, Boolean includestagesafterasyncpoint) + 253 system. web. UI. page. processrequest () + 78 system. web. UI. page. processrequestwithnoassert (httpcontext context) + 21 system. web. UI. page. processrequest (httpcontext context) + 49 ASP. test2_aspx.processrequest (httpcontext context) in c: \ windows \ Microsoft. net \ framework \ v4.0.30319 \ temporary ASP. net files \ Root \ 7f357fc5 \ ae304b34 \ app_web_mafv2oof.1.cs: 0 system. web. callhandlerexecutionstep. system. web. httpapplication. iexecutionstep. execute () + 100 system. web. httpapplication. executestep (iexecutionstep step, Boolean & completedsynchronously) + 75

 


Version Information:Microsoft. NET Framework Version: 4.0.30319; ASP. NET
Version: 4.0.30319.1

 

Cause:Verify view status MacFailed,If this applicationProgramBy Network FIELDOr ClusterBear, please ensure<Machinekey> specifyThe same validationkeyAnd VerificationAlgorithm.In the clusterUnavailableAutomatic GenerationOfMachinekey. [In a web server farm, each client request can be forwarded to another computer at each sending. This behavior cannot causeValidationkeySet propertyAutomatic GenerationIn the machine. config file. Instead, you must set a fixed string shared by all computers on the web.ValidationkeyAttribute Value .]

Solution:Add enableviewstatemac = "false" to the page tag on the ASP page for processing"

 

2:

Server Error in '/gauserauthentication' application. No HTTP handler was found for request type 'get'

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. httpexception: No HTTP handler was found for request type
'Get'

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): No HTTP handler was found for request type 'get'] system. web. httpapplication. maphttphandler (httpcontext context, string requesttype, virtualpath path, string pathtranslated, Boolean useappconfig) + 685 system. web. maphandlerexecutionstep. system. web. httpapplication. iexecutionstep. execute () + 128 system. web. httpapplication. executestep (iexecutionstep step, Boolean & completedsynchronously) ++ 184

 


Version Information:Microsoft. NET Framework Version: 4.0.30319; ASP. NET
Version: 4.0.30319.1

 

Cause: in the web. config file, the content of the

Solution: remove the <clear/> node from the

 

3:

Unable to start debugging on the Web server. The underlying connection was closed: An Unexpected error occurred on a send.

Click Help for more information.

 

Cause:

Solution:

 

4:

Authorization --> cannot verify access to path (D :\......)

The server is configured to use pass-through authentication with a built-in account to access the specified physical path. however, IIS manager cannot verify whether the built-in account has access. make sure that the application pool identity has read access to the physical path. if this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain >\< computer_name> $ has read access to the physical path. then test these settings again.

Cause:

Solution:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.