Configuring ASP.NET and IIS for Larger Requests (2024)

The ASP.NET MVC DocumentViewer can be used to view all document types that are supported by TX Text Control including TX, DOC, DOCX, RTF and PDF.

Configuring ASP.NET and IIS for Larger Requests (1)

When loading documents using the JavaScript loadDocument Configuring ASP.NET and IIS for Larger Requests (2) TX Text Control .NET Server for ASP.NET
JavaScript API - Document Viewer Viewer
TXDocumentViewer Object
loadDocument Method
Loads a document from memory into the DocumentViewer.
method or when loading from memory directly in the MVC view code, the document will be sent to the server in a POST request. For larger documents, it is required to increase the size of data that can be send to the server.

There are 3 areas in the web.config file that have to be adjusted to accept larger POST requests:

  • IIS Request Filtering
  • HttpRuntime maxRequestLength
  • MaxJsonDeserializerMembers

IIS Request Filtering

On IIS level, the Request Filtering module is used to limit the size of data accepted by IIS. Increase the maxAllowedContentLength value that specifies the size of the POST buffer given in bytes.

The default size is 30000000 bytes (28.6 MB). Max value is 4294967295 bytes (4 GB)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" />
</requestFiltering>
</security>
</system.webServer>
</configuration>

view raw test.xml hosted with ❤ by GitHub

HttpRuntime maxRequestLength

ASP.NET has its own setting to limit the size of uploads and requests. Use the maxRequestLength of the httpRuntime element.

The default size is 4096 kilobytes (4 MB). Max value 2,147,483,647 kilobytes (~82 Terabyte). The following setting defines a max size of 500 megabytes.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime maxRequestLength="500000" executionTimeout="120" />
</system.web>
</configuration>

view raw test.xml hosted with ❤ by GitHub

Pay attention to the different units used by these settings. Request Filtering is in bytes and HttpRuntime maxRequestLength is given in kilobytes.

MaxJsonDeserializerMembers

All data is send as JSON objects in the DocumentViewer client-server communication. The number of properties in a posted JSON object needs to be adjusted using the aspnet:MaxJsonDeserializerMembers application setting:

<configuration>
<appSettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="10000" />
</appSettings>
</configuration>

view raw test.xml hosted with ❤ by GitHub

By adjusting the above settings in your web.config, all document sizes can be loaded from memory.

ASP.NET Core .NET 6 .NET 7 .NET 8 Angular Blazor React JavaScript

ASP.NET

Integrate document processing into your applications to create documents such as PDFs and MS Word documents, including client-side document editing, viewing, and electronic signatures.

  • Download Trial
  • Trial Access Token

Getting started with:
  • ASP.NET Core
  • Angular
  • Blazor
  • JavaScript
  • React

Download Trial

Related Posts

ASP.NET Angular

Using the Document Editor in SPA Applications using the removeFromDom Method

by Bjoern Meyer| September 2, 2024

This article shows how to use the removeFromDom method to remove the Document Editor from the DOM when it is no longer needed. This is useful when the Document Editor is used in a Single Page Application (SPA) and the component is not needed anymore.

Release Service Pack JavaScript SPA

ASP.NET Windows Forms WPF ActiveX

TX Text Control 32.0 Service Pack 4 Released

by Bjoern Meyer| September 2, 2024

We are very happy to announce the immediate availability of new Service Packs for TX Text Control 32.0 for all platforms including Windows Forms, WPF, ASP.NET, and ActiveX. This release includes various improvements and bug fixes.

Release Service Pack

ASP.NET

Document Viewer: Setting the Rendering Mode

by Bjoern Meyer| August 22, 2024

This article shows how to set the rendering mode of the Document Viewer. The rendering mode determines how the document is rendered and displayed in the viewer using Bitmap or SVG rendering.

ASP.NET Core Document Viewer

ASP.NET

View MS Word DOCX and PDF Documents using a .NET C# Document Viewer for ASP.NET Core and ASP.NET

by Bjoern Meyer| August 8, 2024

Learn how to view MS Word DOCX and PDF documents using a .NET C# Document Viewer for ASP.NET Core and ASP.NET. This article shows how to integrate the TX Text Control Document Viewer into your ASP.NET Core and ASP.NET applications.

ASP.NET Core Document Viewer

Configuring ASP.NET and IIS for Larger Requests (2024)
Top Articles
Os preços das commodities devem se estabilizar após os aumentos do início de 2021, apoiados pela recuperação econômica global
The Financial Peace Planner : A Step-By-Step Guide to Restoring Your Family's Financial Health by Dave Ramsey (1998, UK-B Format Paperback) for sale online | eBay
Dainty Rascal Io
Christian McCaffrey loses fumble to open Super Bowl LVIII
Is Paige Vanzant Related To Ronnie Van Zant
Restored Republic January 20 2023
Craigslist Cars Augusta Ga
El Paso Pet Craigslist
Triumph Speed Twin 2025 e Speed Twin RS, nelle concessionarie da gennaio 2025 - News - Moto.it
سریال رویای شیرین جوانی قسمت 338
Walgreens Alma School And Dynamite
Whiskeytown Camera
Mid90S Common Sense Media
Guardians Of The Galaxy Vol 3 Full Movie 123Movies
Love In The Air Ep 9 Eng Sub Dailymotion
How To Cut Eelgrass Grounded
Fool’s Paradise movie review (2023) | Roger Ebert
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Extra Virgin Coconut Oil Walmart
Second Chance Maryland Lottery
Napa Autocare Locator
The Ultimate Style Guide To Casual Dress Code For Women
Watch The Lovely Bones Online Free 123Movies
Sadie Proposal Ideas
Site : Storagealamogordo.com Easy Call
Www.publicsurplus.com Motor Pool
Uconn Health Outlook
Amazing deals for Abercrombie & Fitch Co. on Goodshop!
Craigslist Illinois Springfield
Aliciabibs
Jcp Meevo Com
Speedstepper
Skepticalpickle Leak
Downloahub
N.J. Hogenkamp Sons Funeral Home | Saint Henry, Ohio
5 Star Rated Nail Salons Near Me
Mbi Auto Discount Code
Www.craigslist.com Syracuse Ny
Cox Outage in Bentonville, Arkansas
The TBM 930 Is Another Daher Masterpiece
Atom Tickets – Buy Movie Tickets, Invite Friends, Skip Lines
Shoecarnival Com Careers
Wordle Feb 27 Mashable
Embry Riddle Prescott Academic Calendar
Ferhnvi
Kaamel Hasaun Wikipedia
Okta Login Nordstrom
Dietary Extras Given Crossword Clue
Read Love in Orbit - Chapter 2 - Page 974 | MangaBuddy
Black Adam Showtimes Near Cinemark Texarkana 14
7 National Titles Forum
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5612

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.