How to make a classic ASP application work - asp-classic

I have a classic asp application that is very old an d I want to make it work, any help would be appreciated because I don't have much idea on how to do so

Check this threads on stack over flow -
How to guide for getting a classic asp application working under IIS 7.0
How to deploy classic asp website?
OR
check this steps also -
To use the UI on Windows Server 2008 or Server 2008 R2
Click Start, point to Administrative Tools, and then click Server Manager.
In Roles Summary, click Add Roles.
Use the Add Roles Wizard to add the Web Server (IIS) role.
For detailed instructions about how to install a default IIS 7 Web server, see Deploying a Static Content Server (IIS 7).
On the Select Role Services page, note the preselected role services that are installed by default, and then select the following additional role services:
ASP
Request Filtering
ISAPI Extensions
On the Summary of Features to Install page, confirm your selections, and then click Install.
On the Installation Results page, confirm that your installation of the Web Server (IIS) role and required role services completed successfully, and then click Close.
To verify that IIS installed successfully, type the following into a Web browser:
http://localhost
You should see the default IIS 7 Welcome page.
To use the UI on Windows Vista or Windows 7
Click Start, and then click Control Panel.
In Control Panel, click Programs, and then click Turn Windows features on or off.
In the Windows Features dialog box, click Internet Information Services to install the default features, and then select the following additional features:
ASP
Request Filtering
ISAPI Extensions
Click OK to close the Windows Features dialog box.
To verify that IIS installed successfully, type the following into a Web browser:
http://localhost
You should see the default IIS Welcome page.

Related

Windows Authentication doesn't work with web application projects?

I am in the deployment phase of two separate asp.net 4.5 web applications being put onto a server running asp.net 4.6. We use a mixture of windows 7 and windows 10. All computers are on the same domain and the server is running IIS 8.5. This intranet application is supposed to use windows authentication to either send a user with invalid credentials to a web page with an error message or give the person access to the site. The problem is that some users are getting prompted to login regardless of security group that they belong to.
I have added the domain to the company wide whitelist and set internet explorer to use automatic windows authentication on intranet websites. We have tried moving the site to a non-shared folder. We finally tried converting both of the web applications to a web site project and the security worked just fine. However, we don't want to use web site projects anymore and find this to be a temporary solution.
I have made certain that authentication has been set to windows.
When checking the IIS logs, I see the error codes 401 0 0 15 and 401 2 5 0. Maybe there is some other setting that we are overlooking when deploying? Any help would be greatly appreciated.
For your application to log in with your network's active directory, you need to configure windows authentication twice, the first one is from your application (Visual Studio) and the second one is in the IIS and you must convert the folder into an application and use the framework version correctly.
Visual Studio:
<system.web>
     <authentication mode = "Windows" />
</system.web>
IIS:
Convert the folder to application by right clicking and "Convert to application", then select the application and go to the "Authentication" tab disable "Anonymous authentication" and enable "Windows authentication"
Greetings from Mexico.

setting up site in windows 7 for asp.net application

Bought a Win 7 64-bit machine and installed vs2010 and things are fine.
Now i want to create a site in IIS for one of my asp.net application, so that i can access and get the site served from IIS rather than from WebDev.Webserver.exe.
Googled a lot, but haven't find a solution. Can any one help me on this.
Not sure if you have IIS installed but here is how to do it. Provided you have the correct edition of Windows 7 (Professional or Ultimate).
Summary:
Start > Control Panel > Programs
click on Turn Windows features on or off.
Check the box for 'Internet Information Services (IIS)
Once installed you can follow the steps included on the microsoft website. This should get you up and running.
Summary:
Open IIS Manager.
In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
In the Add Web Site dialog box, type a name for your Web site in the Web site name box.
Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select
Application Pool dialog box, select an application pool from the
Application Pool list and then click OK.
In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system
to find the folder.
If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site
immediately check box.
Click OK.

401.2 Error in ASP.Net 2.0 on IIS 7.0 on Windows 2008

My "Hello World" c#.Net application works fine on my local Windows 7. Moving to our server I get 401.2 error.
Here what I have done (following advices in some forums):
Changed the Anonymous authentication use to application pull user
Created a new application pull
Created a new Windows user with access to application folders
Set the authentication of the application pull to that user
Set the application pull for my application to that application pull
Please note that:
I receive the error both from within the server and outside
I receive this error from all the browser I tested: Chrome, IE 9.0 and Firefox
An html file in the same folder is visible
What am I missing?
Thanks,
Asaf
You don't need to create a new windows user. I know you've said what steps you've done, but I'm going to highlight what I do each time I add a new site.
Set the Identity of the Application Pool to
ApplicationPoolIdentity.
In the website, set Anonymous Authentication to Enabled. Click
Edit on the right and set the Authentication Credentials to
Application pool identity.
In the website, again, choose Basic Settings on the right. Click
the Connect As.. button and make sure Application User is
selected.
Give the appropriate access to the folder on your hard drive(s); i.e
Application Pool name = hello.com, the user is IIS
AppPool\hello.com.
I think your issue is that you haven't given the folder permissions for the Application Pool User. I think you've incorrectly given them to an unneccessary Windows account.
HTH
Do you have the correct version of .NET installed on Server? Also you need to register ASP.NET in IIS - c:\windows\Microsoft.NET\framework\v2.0.50727 (or v4.0....)
aspnet_regiis.exe -i
and after restart IIS with iisreset in command line

Password protect ASP.NET web application in IIS 7.5

I use IIS 7.5 on windows 7 to serve my asp.net websites for testing purposes. In order to stop random people viewing my websites I want IIS to require a username and password before it will serve anything.
I have tried disabling Anonymous Authentication and enabling Windows Authentication on the application but when I type my windows credentials in it doesn't work.
Can somebody explain a simple way of doing this?
You need "Basic Authentication":
Open Internet Information Services (IIS) Manager:
If you are using Windows Server 2008 or Windows Server 2008 R2:
On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
If you are using Windows Vista or Windows 7:
On the taskbar, click Start, and then click Control Panel.
Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
In the Connections pane, expand the server name, expand Sites, and
then click the site, application or Web service for which you want to
enable basic authentication.
Scroll to the Security section in the
Home pane, and then double-click Authentication.
In the Authentication
pane, select Basic Authentication, and then, in the Actions pane,
click Enable.
In the Authentication pane, select Anonymous
Authentication, and then click Disable in the Actions pane.
quoted from Basic Authentication How To
With Colin's anwser, don't forget to install "Basic Authentification" feature in the Roles and Features Assistant : "IIS > WebServer > Security"

How do I force windows authentication with local asp.net development server?

I'm developing an ASP.NET application which needs Windows Authentication. I have the web.config set up to deny anonymous users and use Windows mode for authentication, but my local development version still lets me pass right through to the site. In order to test different user set-ups, I need to force authorization so I can change users.
How do I set up my system (config files, VS2005 settings, IIS, etc?) to force the authorization window to popup on the site when I'm running on local asp.net development server? In other words, how do I get the authentication popup when running the site in Debug mode?
You will also need to configure IIS and have your application point to IIS instead of the local web server
To configure Windows authentication
Start Internet Information Services (IIS).
Right-click your application's virtual directory, and then click Properties.
Click the Directory Security tab.
Under Anonymous access and authentication control, click Edit.
Make sure the Anonymous access check box is not selected and that Integrated Windows > authentication is the only selected check box.
http://msdn.microsoft.com/en-us/library/ms998358.aspx
To configure your application to point to IIS
Right click on your web project, and then click Properties
Click the Web tab
Click the "Use Local IIS Web Server" radio button

Resources