Vista Home Premium IIS 7.0 and asp.net - asp.net

New laptop, new operating system. Windows Vista premium.
I've installed Visual Studio and IIS 7.0.
I open my web project in visual studio and vist the properties view for the web app.
The webDev server is currently selected.
I select IIS instead and I get the warning IIS telling me I need to install IIS 6.0 configuration compatability/meta base and windows authentication
All those are installed apart from windows authentication (which I am told is not supported for Vista Home Premium).
Is it possible to configure my web apps to run on IIS (I will also need debugging capability)

You need to turn on Windows Features on for IIS 6.0 configuration
Just go Programs and Features > Turn Windows Features On or Off.
In opened window choose which configuration is you want to configure your web application
For more information about IIS7 go to IIS.NET

Related

How to enable Configuration Editor in IIS 7

I'm working on a Server 2008 32 bit machine with IIS 7.0. I would like to install/enable the "Configuration Editor" because I don't see it by default when I select the server in the connections tree view. I thought it was supposed to come installed on IIS 7, but this article seems to indicate a need for an additional download.
"The IIS 7.0 Administration Pack adds to the set of management features that ship with IIS 7.0 "...https://www.iis.net/downloads/microsoft/administration-pack
I tried to download the "Administration Pack" per the article above, but all links to this are broken.
I've looked through the features and file services in the server manager, but I don't see an option to install. Is this part of another package that I need to enable? Are there other functional download links for the administration pack?
Which OS/Server are you using ?
Configuration Editor is included in Adminisration Pack for IIS 7.0.
The functionality of the Administration Pack was integrated into the Windows Server 2008 R2/Windows 7 installation. You don't need to install additional Extension since IIS 7.5

Registering ASP.NET in IIS

I am trying to deploy the website I built on Visual Studio. I would like to host on IIS instead of the default ASP.NET Development Server so that I can access the website on my phone.
One of the steps I need to do is register ASP.NET on IIS. I run the following in the command prompt:
1)C:\Windows\Microsoft.NET\Framework64\v4.0.30319
2)aspnet_regiis -i
However, I get this error message:
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Here are the details of my system:
ASP.NET 4.0
Visual Studio 2010
IIS 10
Windows 10
I have been to the link provided and it is not helpful at all.
Does anyone know how to solve this problem or is there another way for me to host on IIS instead of ASP.NET Development Server?
On windows 10, you can "setup" IIS and asp.net using the Program and Features...
Go to control panel | Program and Features | Turn Windows features on or off
Inside there locate the "Internet Information Services"
There ensure that "World Wide Web Services" is checked (partial) and inside "application development features" the .Net Extensible and asp.net are checked !
(source: planethost.gr)

Asp.net on visual studio .net 2003 web component Issues

I want to run ASP.NET on VS 2003 but it raises an error which says:
"Visual studio has detected that web server is running asp.net version
1.0.The web application you are creating or opening can be configured to be compliant with asp.net 1.0. However, the web application will
not be able to use the new features from asp.net 1.1."
When I choose the option "Make the application compliant with asp.net 1.0", then it is unable to set the compliance saying
"Visual Studio.NET cannot create or open the application. The
likeliest problem is that required components are not installed on the
local web server. Run Visual Studio.NET setup and add the web
development component."
It seems that you are running Visual Studio 2003 on Vista, which is not supported.
By default, Vista does not include .NET Framework 1.1 SP1. Install it first. Make sure that SP1 is installed. If you look into properties of "c:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorsvr.dll", you should get the version 1.1.4322.2032.
Enable IIS 6 Compatibility in Control Panel -> Program and Features -> Turn Windows features on or off. Check "IIS 6 Management Compatibility" under "Internet Information Servces".
Register .NET 1.1 with IIS by running "c:\Windows\MIcrosoft.net\Framework\v1.1.4322\aspnet_regiis.exe -ir". It will create the Application Pool targeted to Framework 1.1 with Classic pipeline in IIS7 and set Enable32BitAppOnWin64 property to true on 64bit OS.
Allow ASP.NET 1.1 in IIS7. Open the IIS Manager and click on the computer name in left tree. In main window select "ISAPI and CGI Restrictions" and make sure that ASP.NET v1.1.4322 is enabled. If not, select it and click Allow link on right side.
When you create an application on any directory that runs .NET 1.1 or lower, always select Application Pool that is targeted to Framework 1.1. For already configured applications, you have to change it manually.
You may need to update the script map of the ASP.NET application within IIS to use the newer version of the framework. I assume that .NET 1.1 framework and VS 2003 are already installed without issues.
Here is an MSDN article that should explain how to register the ASP.NET application within IIS to use the .NET 1.1 version using the aspnet_regiis.exe tool. Command-line reference for the tool is available here.
Visual Studio.NET cannot create or open the application. The likeliest problem is that required components are not installed on the local web server. Run Visual Studio.NET setup and add the web development component.
I faced this problem when I copied the project folder from the network shared location to my local system.
Solution: Create a empty folder in your local system. Copy the files from the original folder into the newly created empty folder.
In addition to the accepted answer, you may also need to add the actual "Web Development" component that is included with the Visual Studio 2003 setup file.
While in the menu, even after you install ASP.NET v1.1 & associated Hotfixes/security updates, as well as FrontPage Extensions for your version of IIS, you may STILL see a red X over the installation component.
This may seem very hacky, but for some reason the installer doesn't seem to do a very thorough check - just click the "Red X" and the "Update Now!" icon becomes visible, then you can install the component just fine.
Specs: Windows 10, Visual Studio .NET 2003 Enterprise
TIP: If you are running a newer version of IIS, you won't be able to "just create" an ASP.NET 1.1 application pool. You'll need to enter these appcmd.exe commands:
appcmd create apppool /name:"YOURPOOLNAME"
appcmd set apppool /apppool.name:"YOURPOOLNAME" /enable32BitAppOnWin64:true
appcmd set apppool /apppool.name:"YOURPOOLNAME" /managedRuntimeVersion:"v1.1"
appcmd set apppool /apppool.name:"YOURPOOLNAME" /managedPipelineMode:"Classic"
appcmd set apppool /apppool.name:"YOURPOOLNAME" /autoStart:true

Unable to start debugging on the Web Server. Visual Studio 2008

I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS.
"Unable to start debugging on the web server. The object identifier does not represent a valid object".
IIS and Visual Studio are on the same box.
I've tried adding Windows Authentication but no luck (my app requires forms authentication, fyi).
Any thoughts? I have a binding on the Web Site. The IIS app is a Web SIte not a virtual directly.
Thanks!
You have switch on Windows Authentication in IIS
Is your pc and the webserver on the same Windows domain? If not, or there is a DMZ between your pc and the web server you could experience problems unless you've explicitly setup trust between the machines.
Go to IIS right click on your project go to Asp.Net tab change the version to your current verion you are using.
This problem comes when you are using a higher version and decided to switch to a lower version and vice versa changing to your version might solve the problem

Can I write an .aspx app on Windows XP?

I'm planning to write a aspx pages on Windows XP machine. I have IIS 7.0 enabled and virtual directory setup. Are aspx page developments allowed on Win XP?
Yes, you can develop ASP.NET pages (.aspx) on Windows XP. XP only runs IIS 5.1, however you don't even need IIS installed as Visual Web Developer Express has a built-in web server you can use during development.. To get started, I would go to http://www.microsoft.com/express/ and download Microsoft Visual Web Developer Express. After doing that, go to http://www.asp.net/get-started/ to learn the basics. Post any questions or problems you encounter back here on StackOverflow.
The new Web Platform Installer now supports XP:
http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx

Resources