Posts

Showing posts with the label IIS

Server Application Unavailable IIS Error

Image
Generally the cause of Server Application Unavailable is the .net framework. Error Snapshot For ex. one of our site is in version 1.1 and the recently added site is in 2.0 or later or any other different versions running on the IIS. How to Resolve:- We need to create a new application pool on the IIS and assign the same to the version of the site. Following image illustrates how to check the version of site. For ex. Pool3_5 for version 3.5 and  Pool4_0 version 4.0 . Following image illustrates how to create new Pool. Step 1: Step 2: Step 3:  You can also verify the IIS logs to locate the issue.

How to make a site default on IIS 6 Windows Server 2003

Image
While setting up an new Web server with Windows Server 2003 and IIS 6. I have to set up my own custom domain (for ex. myname.com) as the default site on IIS. Means if I will run the server from IP my custom domain has to run. The process is so, easy we need to setup few things in custom site. Right click on Site>>Properties>>WebSite>>Click on Advnaced Button>>Leave the "Host header value" to be blank. Please refer the image..

How to allow special characters in URL or query string

I am using asp.net 4.0 with Sql server. I have an requirement to pass special characters in URL query string. for example my URL need to be like http://mysite.com/default.aspx?a=xyx(abc) In the above URL my special character is "(" and ")". While development I have not faced any issue but as I uploaded the files to serve it start giving error 404 (page not found) where ever I have use "(" or ")" special characters. When I started searching I have tried many solutions. but nothing works for me. Then on some site some one has sugested to check IIS log. When I checked the log I found that I have Installed Microsoft URL Scan 3.1 on my server which is filtering the URL. So, I need to allow "(" and ")" on my server so, I decided to allow there characters in my URL. So, to add exception to URL Scan 3.1 you need to open urlscan.ini which you can find in "%windir%\system32\inetsrv\urlscan\" You can use 2 section...

How to set max limt of File Upload in Asp.net

Many times I faced the same problem with all my applications, that is Max size of file to be uploaded to server. By default, the maximum size limit of a file to be uploaded to a server using the ASP.NET FileUpload control is 4MB. You cannot upload anything that is larger than this limit. If you wants to upload a file more the size of 4 MB which is by default, you have to make some changes in the application's web.config: <configuration> <system.web> <httpRuntime maxRequestLength="xxx" /> </system.web> </configuration> Below is the small description of the parameters attributes. maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework ...

A name was started with an invalid character. Error processing resource

This error fires when you run your application on local host. Generally the reason behind this error is configuration of IIS. The general cause of this error is installation of .net 2005 before installing IIS To know how to configure IIS click here. Here is the solution of this error Go to run type cmd Browse for windows directory: For ex. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe –i Or C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe –i Hope this will work

How to configure site on IIS (Internet information server)

Image
When I was new to web development I do not have any idea about IIS. That is a major task to configure web site to IIS. IIS have too many properties which is to be set to run and asp.net application. Here are few things which we have to keep while setup of machines for .net 2005 Steps to configure IIS:- After windows installation we have to install IIS. Install Sql server 2005 Install .net 2005 If you install .net 2005 before installing IIS it will raise an error after configuring asp.net site The error will be “A name was started with an invalid character. Error processing resource” For solution click here Following are the steps to configure IIS Go to Start >> Run >>type inetmgr Screen of IIS will appear Follow following steps:- Display IIS window Open tree and come to default websites Right click on default web sites Open new>> Virtual directory Click on next button Provide ...