Not able to create an ASP.NET website with visual studio 2008 - asp.net

I have installed ASP.NET along with my Visual Studio, but when I tried to create a website from File-->New Website and put Location as http and language as C# it throws an error. I have installed IIS manager 7 in the machine but when I check in Services.msc IISadmin is not listed, but I do have a directory C:\inetpub\wwwroot\

Installing the umbrella 'IIS' is not enough. You have to go deeper into IIS in Windows Features and physically select everything that error dialog tells you to install.

You need to install those features as well.
If you're running Windows 7 Home Basic and Starter Editions, you may not get all of them as available options.
This will help: http://learn.iis.net/page.aspx/28/installing-iis-7-on-windows-vista-and-windows-7/

check from the window features if iis components are all installed.

Related

Error when trying to open my asp.net 4.5 MVC web application using VS 2012. Asp.net has not been registered on the server

I have a Windows Server 2012 R2 & Visual Studio Professional 2012. now i use to develop an asp.net 4.5 mvc 4 web application without any problem. but now when i try to open the project i will get this error:-
if i click OK then this error:-
if i click OK the visual studio will stop working
so can anyone adivce what is going on ??
and here is how the Turn windows features on/off looks like:-
Now i did this modification, as i read on a post in the internet that deleting the cache might help. so i removed this folder:-
%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache
then i tried to open the Visual Studio, and i got the same 2 errors, but the visual studio did not stop working, and i was able to modify the code i rebuild the project and run it.. so not sure what is going on ?
aspnet_regiis -i
Using the ASP.NET IIS Registration tool, you can perform tasks such as the following:
Register or remove the .NET Framework ASP.NET installation with IIS.
Create new ASP.NET application pools.
Display the status of all installed versions of ASP.NET.
More here
Edit 1:-
dism /online /enable-feature /featurename:IIS-ASPNET45 /all
Try running this command
Edit 2:-
Try downloading and installing this update
This is a related tweet
If you get KB3002339 hanging kill the VSUpdate process in task manager. Windows Update will finish. Bing/Google KB3002339 install manually.
https://twitter.com/blowdart/status/542542342075346945
In order to resolve this error you have to install related version of .Net framework in your system.
First install IIS if not installed.
Then run following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis -i
OR (Depens on your OS)
C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis -i
And in IIS your site should run on pool with version like : .Net FrameWork v4.0.xxxxxx
Open your solution as an Administrator
Maybe this answer comes too late, but I tried the solution from #Sameer referring to this question stackoverflow.com/questions/13749138/asp-net-4-5-has-not-been-registered-on-the-web-server#13749209
aspnet_regiis -i
didn't work for me aswell, but this update fixed the problem for VS 2012
For Visual Studio 2012 you actually need to download an update to fix it from here: support.microsoft.com/en-us/kb/3002339 – Sameer Nov 16 '15 at 21:17
See if the computer has self updated to .NET 4.6 (due to Windows Update task).
In some situations, the installation of .NET 4.6 may impact on Visual Studio 2012.
In my case I had to upgrade my project to NET 4.6 to solve the problem.
In relation to IIS itself, I guess you may be forgotten some feature - as HTTP which I guess is necessary, even if you won't utilize it directly. Check all features and toogle OFF just those really optional (like FTP).
This reminds me of similar issues I have seen in the past and I strongly suspect it's an installation order related thing which ultimately boils down to the aspnet_regiis command which has been mentioned already (here's some more information on this topic: https://rockyprogress.wordpress.com/2011/09/06/iis-7-5-and-net-framework-4-installation-order-does-matter/).
You would generally want to install IIS first and then .NET afterwards. So I suggest you get rid of the .NET 4.5 installation again by using the "Turn Windows Features On/Off" screen and then later simply add it back in.
Please try below point
1) open Visual studio run as administration
2) Please host your site in IIS (Not on port like localhost:65389...)
3) Make sure about application pool (with framework 4.0)
4) run C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis -i command

how to configure asp.net with .net 4.5

I am using visual studio 2012 ultimate. Every time I open asp.net web form application the following message pops up.
Configuring web http://"localhost":35651/ for ASP.NET 4.5 failed.
You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for you site to run correctly.
How to get rid of this message ?
You can install this update and your problem should be solved:
MSDN link
Update:
I've uploaded the file to my Dropbox account so that people can have alternative URL in case if the first one fails, The File Name is VS11-KB3002339.exe
I had this problem on Windows 8.1 and Windows 10 which wouldn't support the aspnet_regiis -i approach.
Go to Control Panel, Click On Programs locate the "Turn Windows features on or off" option Under Programs and Features and drill down as follows:
Internet Information Services -> World Wide Web Services -> Application Development Features and check the "ASP.NET 4.5" option. In checking this box, other options such as ".NET Extensibility 4.5" and the ISAPI options will be checked automatically.
Apply the changes by clicking OK. Restart your System.
Use aspnet_regiis.exe -i. Only you need to set the path of .net version. See this link for more information
ASP.NET 4.5 has not been registered on the Web server
FOR VISUAL STUDIO 2012
you actually need to download an update to fix it from here:
https://support.microsoft.com/en-us/kb/3002339
Description:
Unexpected dialog box appears when you open projects in Visual Studio 2012 after you install the .NET Framework 4.5.3
Reference from related thread.
https://stackoverflow.com/a/49746751/3261852

How install IIS 7 to Windows 7

I need to set up a server to run ASP.NET application on it.
But I can not install IIS7 can be an article "Step by Step"?
I like doing everything as here, but the transition to localhost do not show
I would recommend the web platform installer - see here it will allow you to very easily download and install the latest IIS7 release or if you prefer the IIS7 Express version
To install IIS:
In Windows, access the Control Panel and click
Programs.
In the Programs window, click Network and Internet.
Select the Internet Information Services (IIS)
check box, then click Ok.
To learn how to use IIS,
you can view the documentation at
http://localhost/iishelp/iis/misc/default.asp.

Visual Studio can't create web site in IIS

After installing service pack 1 for Visual Studio 2010 cannot create web site in IIS. Here is error message:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring Web http://localhost/MyWebSite for ASP.NET 3.5 failed.
You must manuallyconfigure this site for ASP.NET 3.5 in order for
the site to run correctly. Visual Studio cannot detect whether this
virtual root has been configured for use with ASP.NET 2.0. The likely
cause is that you do not have sufficient priviledges to access the
IIS metabase. You may need to manually configure this site for
ASP.NET 2.0 in order for your site to run correctly.
---------------------------
OK Help
---------------------------
Does anybody know how to fix it ? Thanks!
P.S. I'm using windows7 x64.
Have you tried run Visual Studio with "Run As Administrator" from right click?
This happened to me when I deleted the default application pool.
Thanks to a Microsoft Connect report, I was able to solve this by choosing a new default application pool under the "Web Site Defaults" properties of the Sites node in the IIS 7 Manager tree.
Try changing the .Net version your Application Pool is using.
Open IIS Manager from Administrative Tools.
Select Application Pools on the left.
On the right, double click 'DefaultAppPool' (or whichever you may have created)
Under .Net Framework Version select v3.5.
Click OK and restart IIS.
I don't know if you have to restart IIS or not, but it won't hurt.
I found the answer here:
Visual Studio 2013. You do not have sufficient privilege to access IIS web sites on your machine
IIS stores a config file on your personal drive. At my company our shared drive was down for maintenance and I was getting this error. Once the drive came back online VS.NET started working again.

IIS6 Metabase Compatiblity not installing correctly for Vista IIS7

I've been bashing my head against this one for a few days, and haven't had any luck with it. I'm unable to get my VS2010 ASP.NET project to deploy to IIS. I receive the error
"Unable to create the virtual directory. To access local IIS Web sites, you must install the following IIS Components
IIS 6 Metabase and IIS 6 Configuration Compatibility
ASP.NET
In addition, you must run Visual Studio in the context of an Administrator Account"
I've most certainly installed the metabase option, but it still shows up. I'm also not sure why it's telling me to install ASP.NET.
Google is being entirely unhelpful, I was wondering if anyone here has any suggestions. I'm running Vista Ultimate 64Bit
You've started VS2010 with 'run as Administrator', otherwise you might not have enough rights to do such a thing.
Also, the virtual dir doesn't already exist within the default IIS website?
This article describes "Using Visual Studio 2008 with IIS 7" but the principles likely apply to VS2010 and Vista also. [http://www.iis.net/learn/develop/using-visual-studio-with-iis/using-visual-studio-2008-with-iis][1]
I am using both VS2005 & VS2010 to develop websites that use a deployment project, which creates a setup.exe and project.msi files. I wanted to know why IIS 6 Metabase compatibility is required, but still do not really understand it. If absent, the installer quits very early with a message that the installation was 'not installed correctly', nothing more. It seems like a kludge between existing MS development tools and IIS 7.

Resources