Professional Documents
Culture Documents
1.1 Why are Server control tags shown in the browser instead of the controls
it represents?
This is because the server control tags were not converted into their respecting HTML element tags by ASP.Net. This
.Net framework provides an Administration utility that manages the installation and uninstallation of multiple
C:\WINNT\Microsoft.NET\Framework\v**\aspnet_regiis.exe
1.2 How To Repair ASP.Net IIS Mapping After You Remove and Reinstall IIS?
To reassociate aspx file extensions with ASP.Net runtime, you'll have to run the utlity aspnet_regiis.exe -i
1.3 Why do I get "HTTP 500" error (or "(DLL) initialization routine failed") in
my browser?
This is because if you have the /3GB boot switch enabled, the ASP.NET worker process (Aspnet_wp.exe) does not
start. For more information see Microsoft Knowledge Base Article - 320353
To create and set the "ASPNETENABLE3GB" environment variable as mentioned in the above article, right click
MyComputer ->Properties->Advanced > Environment Variables > System variables > New.
Add the variable name in the top text box and the value in the lower textbox.
You have to enable the ASP.NET in the Web Server Extensions list
From Start -> Settings -> Control Panel -> Administrative Tools -> double click IIS Manager.
1
Go to the Web Service Extensions tab, click Active Server Pages, then press the "Allow" button on the left.
1.5 What are the Best practices for side-by-side execution of Framework 1.0
and 1.1?
In ASP.NET, applications are said to be running side by side when they are installed on the same computer, but use
different versions of the .NET Framework. The following article at www.asp.net details the practices that are
1.6 Can I have VS.NET and the Visual Studio 6.0 installed on the same
machine?
Yes! VS.Net works with the .Net framework, while VS6.0 works with MFC or the Windows API directly, for the most
part. They can be installed and run on the same machine without any considerations.
To verify if IIS is installed, go to your 'Add or Remove Programs' utility in the Control panel and click on the
On XP Pro and below, you should see an item called "Internet Information Services (IIS)". If this is checked, IIS
should be installed.
On Win2K3, you'll see "Application Server". If this is checked, select it and then click 'Details'. Another form
should open which will contain "Internet Information Services (IIS)". If it is checked, IIS should be installed.
1.8 In Visual Studio .NET, how do I create a new ASP.NET application for an
existing ASP.NET project?
First create an IIS application using the IIS MMC. Then in Visual Studio .NET, use the "New Project In Existing
Folder" project template (at the end of the template list). It will first ask you for the project name (use the same
one you created for the IIS application). Click OK button. Then enter in physical folder location.
1.9 Why do I get the error message "Server Application Unavailable The web
application you are attempting to access on this web server is currently
unavailable. Please hit the "Refresh" button in your web browser to retry
your request."?
By default, ASP.NET runs its worker process (Aspnet_wp.exe) with a weak account (the local machine account,
which is named ASPNET) to provide a more secure environment. On a domain controller or on a backup domain
2
controller, all user accounts are domain accounts and are not local machine accounts. Therefore, Aspnet_wp.exe
fails to start because it cannot find a local account named "localmachinename\ASPNET". To provide a valid user
account on the domain controller, you must specify an explicit account in the section of the Machine.config file, or
you must use the SYSTEM account. For more details : FIX: ASP.NET Does Not Work with the Default ASPNET
1.10 In Visual Studio .NET, how do I create a new ASP.NET application which
does not have a physical path under wwwroot?
You must first create an IIS application using the IIS MMC. Then in Visual Studio .NET, create a new ASP.NET
application and give it the same name you used for the IIS application
When you install the .Net framework on your web server, it installs some script files (including the above) under the
root folder (usually "C:\inetput\wwwroot" if you do a default installation) . You can then find the above file at
The above problem could happen if you reconfigured your web root directory to be a different one after you installed
ASP.Net in your web server. If that is the case, then run 'aspnet_regiis -c' (utility is under
%windir%\Microsoft.NET\Framework\v1.1.4322, for example) or copy over manually the above script files into a
similar sub-directory below your current web root directory. Also, if you look at the error message in detail, you will
1.12 After installing .NET Framework SP1 the client side validations, or rather
validator controls are not working?
The problem seems to be in the javascript file WebValidationUi.js in aspnet_client folder.The changes in that file
prevent a page to be submitted. That could be the reason your javascript validations are not working. As a
workaround, just copy the old WebValidateionUi.js over the new one.
2. In the Open text box, type cmd, and then click OK.
3
3. At the command prompt, locate the following directory:
WindowsDirectory\Microsoft.NET\Framework\v1.0.3705\
aspnet_regiis -s W3SVC/1/ROOT/WebApp1
2. In the Open text box, type cmd, and then click OK.
WindowsDirectory\Microsoft.NET\Framework\v1.1.4322\
aspnet_regiis -s W3SVC/1/ROOT/WebApp2
Find the ASP.NET Version Used for the Application View the script map for an ASP.NET application to determine
the version of ASP.NET that the application uses. To view the script map for an ASP.NET application, follow these
steps:
2. Double-click Administrative Tools, and then double-click Internet Information Services (IIS).
4
3. Expand local computer, expand Web Site, and then expand Default Web Site.
5. Right-click the folder that contains the ASP.NET application, and then click Properties.
6. Click the Directory tab, and then click Configuration. The Application Configuration dialog box opens.
7. Click the Mappings tab, and then select an ASP.NET application extension, such as .asmx or .aspx. The
Executable Path column of the dialog box lists the path to the ASP.NET ISAPI version that the application
indicates the version number of the ASP.NET ISAPI that the application uses. The ASP.NET ISAPI version
1. Click Start, and then click Run. In the Open text box, type cmd, and then click OK.
%WindowsDirectory%\Microsoft.NET\Framework\v1.0.3705\
3. Type the following command to configure the ASP.NET 1.0 application in IIS:
aspnet_regiis -s w3svc/1/root/ApplicationName
To remove ASP.NET 1.0 from this application, repeat steps 1and 2, and then type the following command:
aspnet_regiis -k w3svc/1/root/ApplicationName
Configure ASP.NET 1.1 for the Application When ASP.NET 1.0 is configured on the root Web site, follow these
steps to configure ASP.NET 1.1 to run an application:
1. Click Start, and then click Run. In the Open text box, type cmd, and then click OK.
5
2. At the command prompt, locate the following directory path:
%WindowsDirectory%\Microsoft.NET\Framework\v1.1.4322
3. If ASP.NET 1.1 is not already registered, type the following command to register it: aspnet_regiis -ir Note
The -ir option registers ASP.NET 1.1 without updating the scripts in IIS.
aspnet_regiis -s w3svc/1/root/ApplicationName
To remove ASP.NET 1.1 from this application, repeat steps 1 and 2, and then type the following command:
aspnet_regiis -k w3svc/1/root/ApplicationName
This happens for example, whe you try to export data to excel from a datagrid.
The problem occurs if the server is using Secure Sockets Layer (SSL) and has added one or both of the following
Pragma: no-cache
Cache-control: no-cache,max-age=0,must-revalidate
For more details refer PRB: Internet Explorer Is Unable to Open Office Documents from an SSL Web Site
1.16 Why do I get error message "Unable to start debugging on the web
server. The server does not support debugging of ASP.NET or ATL Server
applications. ..."?
You would get this error if the application mappings for ASP.NET file name extensions (such as .aspx) are not
6
7