How to enhace max upload size and solution for MAC failed error in your web application

AID: 2129
  • Status: Published

1010 points

  • Byapexpert
  • TypeTips/Tricks
  • Posted on2009-12-21 at 04:53:03
Q1.Enhance max upload size:=>

It's a problem I'm sure many of you have faced in developing web applications
that how could i upload the file with large size so here is solution for this problem:

  • Make change in web.config it will help you to enhance max upload size try this
:

<httpRuntime executionTimeout="1200" maxRequestLength="102400" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
                                    
1:

Select allOpen in new window




Q2. Mac faild error in your web application.

  • Validation of view state MAC failed.


 If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
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.


Try this:


<pages enableViewStateMac="false" >
                                    
1:

Select allOpen in new window

Asked On
2009-12-21 at 04:53:03ID2129
Tags

uploadsize

,

MAC

Topic

Web Development

Views
493

Comments

Author Comment

by: apexpert on 2009-12-21 at 04:55:52ID: 7088

hello,

this is a tip to enhance max upload size and general coming error on web applications like validation of viewstate MAC failed...

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top Internet Development Experts

  1. jason1178

    79,960

    Master

    0 points yesterday

    Profile
    Rank: Genius
  2. Ray_Paseur

    26,695

    0 points yesterday

    Profile
    Rank: Savant
  3. COBOLdinosaur

    25,652

    0 points yesterday

    Profile
    Rank: Genius
  4. DaveBaldwin

    24,881

    0 points yesterday

    Profile
    Rank: Genius
  5. ve3ofa

    11,636

    0 points yesterday

    Profile
    Rank: Genius
  6. webmatrixpune

    8,400

    0 points yesterday

    Profile
    Rank: Guru
  7. fibo

    8,375

    0 points yesterday

    Profile
    Rank: Genius
  8. easynow111

    8,100

    0 points yesterday

    Profile
    Rank: Guru
  9. mplungjan

    7,720

    0 points yesterday

    Profile
    Rank: Savant
  10. therealteune

    6,800

    0 points yesterday

    Profile
    Rank: Wizard
  11. jcimarron

    5,875

    0 points yesterday

    Profile
    Rank: Genius
  12. leakim971

    5,800

    0 points yesterday

    Profile
    Rank: Genius
  13. ahoffmann

    5,700

    0 points yesterday

    Profile
    Rank: Genius
  14. aikimark

    5,600

    0 points yesterday

    Profile
    Rank: Genius
  15. Cyber-spy

    5,100

    2,000 points yesterday

    Profile
    Rank: Guru
  16. Eirman

    5,000

    0 points yesterday

    Profile
    Rank: Wizard
  17. kaufmed

    4,968

    0 points yesterday

    Profile
    Rank: Genius
  18. ChrisStanyon

    4,800

    2,000 points yesterday

    Profile
    Rank: Sage
  19. Tiggerito

    4,600

    0 points yesterday

    Profile
    Rank: Sage
  20. Bardobrave

    4,540

    10 points yesterday

    Profile
    Rank: Sage
  21. BillDL

    4,414

    0 points yesterday

    Profile
    Rank: Genius
  22. ddhamm

    4,268

    0 points yesterday

    Profile
    Rank: Sage
  23. x_com

    4,000

    0 points yesterday

    Profile
    Rank: Genius
  24. DrDamnit

    4,000

    0 points yesterday

    Profile
    Rank: Genius
  25. SidFishes

    4,000

    0 points yesterday

    Profile
    Rank: Genius

Hall Of Fame