I'm following this tutorial on installing ARR. I've installed ARR using Web PI in Windows 2008 R2.
The second step in the tutorial is:
Double click the “Application Request Routing Cache” icon
Under the server node, I cannot find this icon.
1) Remove all components of the ISS through ccleaner or standard means of windows.
2) Clean cache and regedit (optional but desirable)
3) Re-install the components that you need to manually downloading them from the microsoft site (for ARR is the following installation sequence: -WebDeployversion 2.0 (without him was not installed WebFarmFrameworkversion 2.2)
WebPlatformInstaller 3.0 (without him was not installed WebFarmFrameworkversion 2.2)
WebFarmFrameworkversion 2.2 (version 1.1 on R2 does not want to work)
External Cache version 1.0
URL Rewrite version 2.0
ARR Version 3.0)
4) Restart the ISS manager
I was able to create reverse proxies by clicking on Site, URL Rewrite, Add Rule and Reverse Proxy.
I closed and reopened IIS and the icon appeared after that.
Related
Does anyone have any experience with creating URL rewrites in Webmatrix? Because it uses IIS Express instead of IIS 7, there's nowhere for me to create these rules.
I am deploying to IIS 7 on my production server, so if I need to do any rewrites, I need to make them directly in production to test.
Is there any way I can switch to using IIS instead of IIS Express on my local machine?
I have tried a few things to get local IIS working, but to no avail.
You can install IIS on a Windows 7 or Windows 8 machine by going to Control Panel -> Programs and Features -> Turn Windows features on or off. Make sure to install enough of the components to get a WebMatrix site working - ASP.NET & the management console for certain.
You can then create a virtual server for the directory your project is in and use the IIS management console to play around with URL rewriting. You may need to install the UrlRewrite module using the MS Web Platform Installer, available here:
http://www.microsoft.com/web/downloads/platform.aspx
If you need more help getting your local IIS working, give me some more information on how far you've got and I'll try and extend my answer.
I had a working IIS 7.5 with Web Deploy 3.5 configuration such that the "Import/Export Application" feature in the right hand action pane showed up and functioned properly. Unfortunately I had to remove and reinstall IIS, and now the Import/Export functionality does not show up in the Actions pane, as if Web Deploy was not installed.
I tried to reinstall using the automated installer at http://www.iis.net/downloads/microsoft/web-deploy, but when I run it, the installer seems to think that Web Deploy is already installed and does not offer me any reinstall/uninstall option.
How can I force a reinstall of WebDeploy or force IIS to recognize that Web Deploy is still installed?
Go to http://www.iis.net/downloads/microsoft/web-deploy
Scroll to the bottom of the page to the "Download Web Deploy" header
Click the x86 or x64 link next to your language of choice. Do not click the WebPI link.
Once downloaded, click on the installer to open it.
Click Next
Click the Remove button
Now you can reinstall it using the Web Platform Installer, or just use the standalone.
On a side note...
If you don't see the Deploy options in IIS once you've reinstalled Web Deploy, try running IIS as Administrator. Hope this helps.
I am running IIS on my development machine on Windows 7. Web Deploy 3.6 seem to break something as the Import / Export Application options are not available. Had to uninstall 3.6 via control panel add/remove programs and then install 3.5 via Web PI.
I've installed Web Deployment Tool 2.1 then restart IIS Manager and the Import/Export Application appeared.
I was running a 'gallery template' Windows Server 2012 VM on Azure. Web Platform Installer said Web Deploy 3.5 was already installed. At first I thought this neat feature had been removed/moved.
In Add/Remove Programs, saw that Web Deploy 3.6 Beta was installed. Removed it and reinstalled 3.5 (without SQL stuff) via Web PI.
Ran IIS Manager as admin and all works fine.
Update - A new Azure VM also had this problem, but had 3.6 Beta3 installed. Again, removed and reinstalled 3.5 via WebPI.
None of the other answers here fixed this for me with Visual Studio 17 on Windows 10. The fix was here: https://developercommunity.visualstudio.com/content/problem/230372/web-deply-40-msi-location.html
Web Deploy 4 has moved to be distributed with Visual Studio 2017. This is nuts because the Web Deploy service and the Import/Export tools are for server administrators and not devs. The discussion in the link says they are working on adding Web Deploy 4 to the Web Platform Installer, but have encountered a few issues (read: we didn't create a proper deployment for it the first place.)
The fix for me was to uninstall Web Deploy 4 from Control Panel-Apps & features, then reinstall from the MSI provided with Studio. Look in C:\ProgramData\Microsoft\VisualStudio\Packages for a folder like Microsoft.VisualStudio.WebDeploy.Msi,version=...,chip=x64. The MSI file is within that. More detail in the link I mentioned.
My guess is if the IIS Manager is not turned on at the time Studio (and therefore Web Deploy) is installed, the hook for Import/Export can't be created.
My situation is slightly different as I never had the import/export menus. For what it's worth:
I tried to install the Web Deploy installer. It said that a newer version was installed. I tried repairing Web Platform Installer. Nothing changed. I tried changing but was told there were individual components. I tried uninstall/reinstalling WebPlatformInstaller.
After that, the IIS Manager showed a Web Platform Installer icon under the Management section after restarting, but still no Deploy menu on the right click.
Double-clicking that icon started the installer where I could then search for web deploy. There was a Web Deployment Tool 2.1 that was not installed. Clicking Add then Install and restarting IIS Manager (not run As Administrator) was all that was needed to get the Deploy menu:
According to this Microsoft document, the Web Platform Installer should have started automatically. Never did. But it is in the start menu. The steps are the same weather you start it from IIS Manager or standalone.
I'm using IIS 7.5 on Windows Server 2008 R2 x64 Enterprise Edition. In the project we have developed with ASP.NET 4.0 we used WCF Service. But it doesn't run over domain when the software is running from local computer. Otherwise, I am getting the following error:
HTTP Error 404.3-Not Found
The page you are requesting cannot be served because of the extension
configuration. If the page is script, add a handler. If the file should
be downloaded, add a MIME map.
You should install IIS sub components from
Control Panel -> Programs and Features -> Turn Windows features on or off
Internet Information Services has subsection World Wide Web Services / Application Development Features
There you must check ASP.NET (.NET Extensibility, ISAPI Extensions, ISAPI Filters will be selected automatically). Double check that specific versions are checked. Under Windows Server 2012 R2, these options are split into 4 & 4.5.
Run from cmd:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
Finally check in IIS manager, that your application uses application pool with .NET framework version v4.0.
Also, look at this answer.
In my case, along with Mekanik's suggestions, I was receiving this error in Windows Server 2012 and I had to tick "HTTP Activation" in "Add Role Services".
In windows server 2012, even after installing asp.net you might run into this issue.
Check for "Http activation" feature. This feature is present under Web services as well.
Make sure you add the above and everything should be awesome for you !!!
I was having trouble accessing wcf service hosted locally in IIS. Running aspnet_regiis.exe -i wasn't working.
However, I fortunately came across the following:
Rahul's blog
which informs that servicemodelreg also needs to be run:
Run Visual Studio 2008 Command Prompt as “Administrator”.
Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
Run this command servicemodelreg –i.
I have a project which I have upgraded to .Net 4.0, but when I try to access it, I retrieve the following error:
HTTP Error 404.2 - Not Found
The page you requested could not be displayed because of the settings for the list of ISAPI and CGI restrictions on web server.
ErrorCode: 0x800704ec
Handler PageHandlerFactory-ISAPI-4.0_32bit
Do I need to do something extra to the IIS 7 or APP pool, when converting an existing site to a .NET 4.0 site?
Also if I look at ISAPI both 32bit and 64bit of the .Net 4.0 is installed.
In IIS, enable .NET 4.
Here is image:
I take it you're running on IIS6 right now..
Open the IIS manager, and go to the Web Service Extensions area.. You'll be able to enable .NET 4 in there.. All new extensions are disabled by default :)
If you're running on IIS7, .NET might not have registered in IIS.. Then open up an admin command prompt and navigate to the .NET 4 framework folder (C:\Windows\Microsoft.NET\Framework\v4.{version}). If you're on a 64 bit machine go to the Framework64 folder instead of the Framework folder.
Then run aspnet_regiis -i in there
I had this same issue. Strangely, for me it would run in integrated mode but not in classic mode for .NET 4. After enabling the .NET 4 extensions via the Isapi and Cgi restrictions section in IIS 7, it then began working in both modes. The Isapi and Cgi restrictions section is located at the server level node in IIS manager. This option should not be confused with the Isapi Filters section at the site level.
I am trying to create a Local IIS Website using ASP.NET.
When I click on New -----> Website and select the type as HTTP and from the dialog box if I select the option as LOCAL IIS WEBSITE I am getting a message as "IIS not installed on this computer"
When I checked in the Control Panel---->Add or remove programs ---->Add or remove windows components. The Option Internet Information Service is already checked marked.
But when I click on the Control Panel ---> Administrative Tools, I dont find the option as Internet Information Service.
I also have the root directory as C:\Inetpub\WWWRoot.
And when I give the following command in the VS command Prompt
aspnet_regiis.exe -i
It is giving the message as finished installing ASP.NET
Can any one help me in identifying whether IIS is installed in my system or not?
Please help me out!
go to Start->Run type inetmgr and press OK. If you get an IIS configuration screen. It is installed, otherwise it isn't.
You can also check ControlPanel->Add Remove Programs, Click Add Remove Windows Components and look for IIS in the list of installed components.
EDIT
To Reinstall IIS.
Control Panel -> Add Remove Programs -> Click Add Remove Windows Components
Uncheck IIS box
Click next and follow prompts to UnInstall IIS.
Insert your windows disc into the appropriate drive.
Control Panel -> Add Remove Programs -> Click Add Remove Windows Components
Check IIS box
Click next and follow prompts to Install IIS.
For Windows 7:
Control Panel > Programs > Programs and Features > Turn Windows Features On or Off > to turn on IIS click on Check box.
Check
Control Panel --> Administrative Tools --> Services --> IIS Admin
For reinstalling
How to remove and reinstall IIS 5.0, 5.1 and 6.0
In the menu, go to RUN > services.msc and hit enter to get the services window and check for the IIS ADMIN service. If it is not present, then reinstall IIS using your windows CD.
The quickest way to check is just to write "inetmgr" at run (By pressing Win + R) as a command, if a manager window is appeared then it's installed otherwise it isn't.
A lot of answers here describe how to manually check if IIS is installed.
One (of many) programmatic ways is to check if the file
C:\Windows\System32\inetsrv\w3wp.exe
exists, and maybe has a certain minimum version (such as 10.0.0.0 for IIS version 10).
IIS can be installed programmatically using DISM. You can also use DISM to check if IIS is installed, which may be "more correct", but is also more difficult to do than just checking for a file.
WARNING: If possible, do not hard-code the path C:\Windows\System32, especially not within a 32-bit process or installer, as it can be virtualized and mapped to C:\Windows\SysWOW64, which is NOT where IIS is installed (assuming a 64-bit OS). Depending on where you are implementing your check (installer prerequisites, PowerShell, native code, etc.), there are different ways to explicitly access the 64-bit/native system folder.
Background: w3wp.exe is the worker process image of IIS, so if IIS is installed with minimal features, then this file can be expected to exist.
As for version numbers, you can expect the following minimum versions of IIS to be installed in (source):
IIS 10 (>= 10.0.0.0) in Windows Server 2016 or higher and Windows 10 or higher
IIS 8.5 (>= 8.5.0.0) in Windows Server 2012 R2 or higher and Windows 8.1 or higher
http://localhost:80 (specify port configured)
OR
http://localhost (default port)
type above line in your browser you realize IIS installed or not
I simple gave below in all my browsers. I got image IIS7
http://localhost/
Refer this a step by step approach:
http://www.codeproject.com/Tips/365704/Install-IIS-on-Windows
For many users you have to enable the windows feature on then check IIS and then go with RUN followed by searching for inetmgr.
I needed to do this on a server over the CLI, and was able to do so in using powershell wit the following command:
Get-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\ | Select-Object