Archive for the 'asp' Category

The reason this is happening is because buffering is turned on by default, and IIS 6 cannot handle the large response.

In Classic ASP, at the top of your page, after <%@Language=”VBScript”%> add:
<%Response.Buffer = False%>

In ASP.NET, you would add Buffer=”False” to your Page directive.
For example:
<%@Page Language=”C#” Buffer=”False”%>

Can you provide Full Trusts Permission for the Domains?

As you know that your website is running on the shared hosting server and if any web application have full trust permission on the server that means application have Unrestricted permissions on the server and Applications can access any resource that is subject to operating system security and All the following privileged operations are supported to the application. Since your site is hosted on our shared hosting server and we are running ASP.NET 2.0 under medium trust mode due to security reason. Microsoft also recommended running ASP.NET 2.0 under medium trust mode in shared hosting server.

1 EventLogPermission is available. This means you can access the Windows event log.

2 ReflectionPermission is available. This means you can use reflection.

3 RegistryPermission is available. This means you can access the registry.

4 WebPermission is unrestricted. This means your application can communicate any address or range of addresses that you define in the element.

5 FileIOPermission is unrestricted. This means you can access any file of system. Your application is granted Read, Write, Append, and PathDiscovery permissions on system files.

6 You can call unmanaged code or from using Enterprise Services.

How to use ASPUpload

AspUpload is a COM+ component which enables an ASP application to capture, save and process files uploaded to the web server with a browser. The files are selected for uploading via an HTML POST form using the <INPUT TYPE=FILE> tag.
With AspUpload, you can add file upload functionality to your Web application in as little as 2 lines of ASP script. In addition to uploading, AspUpload offers a wide range of file management functions, including secure downloading, saving files in the database, permission and attribute management, image size extraction, file encryption, etc.

Sample Codes:
1. <HTML>
2. <BODY>
3. <%
4. Set Upload = Server.CreateObject(“Persits.Upload“)
5. Count = Upload.Save(“D\Domains\yourdomain.com\wwwroot\upload”)
6. Response.Write Count & ” file(s) uploaded to c:upload”
7. %>
8. </BODY>
9. </HTML>
Explanation According to Line
1. Open HTML tag
2. Open BODY tag
3. Open ASP tag
4. Create instance of Upload control
5. Save upload
6. Produce message
7. Close ASP tag

8. Close BODY tag

9. Close HTML tag