This topic discusses how to deploy ASP.NET demo applications on your server.
To find information about how specific application works, see the Samples by Application topic.
ASP.NET demo applications are located at the following folders of the Image Uploader SDK:
So, to install ASP.NET demo applications just follow the steps below:
These demo applications can also be run on Mono platform (C# version only).
If you get the error that says that ../ (a parent path) is disallowed in the
Server.MapPath
method, go to the
Internet Information Services -> Web Site Properties -> Home Directory -> Configuration... -> Options
and set the Enable Parent Path checkbox.
The most typical reason of this problem is server-side limitation for maximum POST request length. As usual it is specified to reduce the risk of DoS attacks. If the request size exceeds specific value, it is considered as malicious and the upload is broken. As usual Image Uploader displays the following error message:
Upload failed (the connection was interrupted).
To resolve this problem you need to configure the settings of your server depending on its version.
For IIS 7:
Go to C:\Windows\System32\inetsrv\config\applicationHost.config
and change
<section name="requestFiltering" overrideModeDefault="Deny" />
to:
<section name="requestFiltering" overrideModeDefault="Allow" />
Add to your application's web.config
the following sections:
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength ="2147482624" /> <!-- in bytes --> </requestFiltering> </security> </system.webServer>
<system.web> <httpRuntime maxRequestLength="2097151"/> <!-- in kilobytes --> </system.web>
For IIS 6:
<system.web> <httpRuntime maxRequestLength="2097151"/> <!-- in kilobytes --> </system.web>
If you have URLScan installed and still experience this problem, go through the following steps:
Additionally, to reduce the length of the POST request sent by Image Uploader use the FilesPerOnePackageCount which specifies a number of files to send in a single request.
If you still experience problems running demo applications, check out the Troubleshooting section. It contains information which may be helpful to resolve or diagnose them. Also, you can create support case or post a message on Image Uploader forum.