Using Web Deploy 3.6 both on IIS 8.5 (Windows Server 2012 R2) and IIS 7.5 (Windows 7), I cannot find the Deploy -> "Import Web Application" option. The "Export Web Application" is also missing (see screenshot)
I can still see the "Install Application from Gallery" but that does not really help. All works fine with Web Deploy 3.5.
Are the Import / Export Web Application options removed in 3.6?
If yes, what is the alternative to deploy a standard ASP.NET MVC app to IIS 8.5 with Web Deploy 3.6?
If not, what do I need to do to enable / see them again?
WebDeploy 3.6 prerequisites for Import / Export Web Application slightly changed and more rights need to be given for web management to enable these options again.
Here are the steps to allow it again in Windows Server 2012 R2 (and Windows Server 2016):
Using Server Manager get to Add Roles and Features.
Pick ‘Management Service’ under Roles/Web Server/Management Tools
Either uninstall and reinstall WebDeploy 3.6 or use the Change option and make sure to install the “IIS Deployment Handler” for Web Deploy. This will bring back the Import / Export Web Application option again.
Steps to allow it again in Windows 7:
Go to Turn Windows features on or off
Under Web Management Tools -> enable IIS Management Service
same as above for Windows 2012
(for Windows 10 you will likely need to run a repair installation on WebDeploy before this solution works)
Download "Web Platform Installer" from here:
https://www.microsoft.com/web/downloads/platform.aspx
Then search "Web Deployment Tool 2.1". I have it in Spanish like this:
"Herramienta de implementación web 2.1"
It just worked for me.
Windows 10:
It uses Microsoft Web Deploy 4.0. You can check if it's already installed in the Control panel > Applications.
If it's already installed, and you can't see the "Deploy" option in IIS, you need to reinstall it and, during the setup, choose the custom or full install, including the UI options. Perhaps you can do that by choosing repair or Change from the control panel.
According to MS, You should be able to download it from Web Platform Installer, but I only found versions up to 3.6. However, I found this link for an stand-alone installer for 4.0:
webdeploy_amd64_en-us.msi
NOTE: I'm using an Spanish Windows, so the name of the options can be wrong. For anyone using a non-English Windows, there is only one installer, and you'll see the menus and options in your language (at least in Spanish).
Try to run IIS as administrator and you should see the Import Web Application" option and The "Export Web Application".
I have searched on MSDN, but i could not find how to configure username and password for proxy on Visual Studio 2012 config file.
I found this:
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress="http://<yourproxy:port#>"/>
</defaultProxy>
Is there a way to specify username and password?
Thanks
Set the proxy in Internet Explorer (Tools/Internet Options/Connections/LAN Settings/Proxy server) and save the credential for the Proxy in the Credential Store (Control Panel\All Control Panel Items\Credential Manager).
Note that while setting the proxy in IE, the Advanced button allows you to control which URL goes through the proxy and which not.
Absolutely no need to touch Visual Studio config file.
I have a Web forms application that runs fine in Visual Studio 2012 but when I run int in VS 2013 I get
System.SystemException occurred
Message: A first chance exception of type 'System.SystemException' occurred in mscorlib.dll
Additional information: The trust relationship between the primary domain and the trusted domain failed.
for a stacktrace when loading up the inital page. I am not sure where to start in trying to figure out what is causing the issue. Its running on the same framework version and has the same web config
Update .... I switch Visual Studio 2012 to use IIS Express and now get the same exception in VS 2012 and VS 2013. Now to resolve the exception ?
Any idea ?
This is because 2013 does not use cassini web server but instead uses IIS Express. This can happen in Visual Studio 2012 as well if you enable IIS Express instead of Cassini. To fix this follow these steps:
In visual studio click on your web project and then press F4
1) Anonymous Authentication needs to be disabled
2) Windows Authentication needs to be enabled
Note: if one of these are grayed out that means that you have a override in your IIS Express Config file which is located
\My Documents\IISExpress\config\applicationhost.config
Check for
<section name="anonymousAuthentication" overrideModeDefault="Allow"/>
or
<section name="windowsAuthentication" overrideModeDefault="Allow" />
More information:
http://msdn.microsoft.com/en-us/magazine/hh288080.aspx
http://www.codegorilla.com/2012/12/how-to-enable-windows-authentication-when-using-iisexpress/
From the error I'm making the assumption that you are using windows authentication..
You can get this error if you are calling isInRole and pass a role that doesn't exist..
HttpContext.Current.User.IsInRole("SomeMadeUpRole");
With regards to the difference between running in 2012 and 2013, 2013 uses IIS Express which is basically a cut down IIS 7.5 instead of 7...
Not 100% sure on this though, would be glad to hear if this helps!
I'm running my Web Project in IIS.
It is a 4.0 Framework APP.
I have a Service.svc and I get this error when I run my Application.
"Could not load type 'System.ServiceModel.Activation.HttpModule' from
assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'"
I tried this --> aspnet_regiis.exe -iru which I found in a lot of forums and it didn't solve my problem.
Does anyone know another method ?
Try with
c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru
When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application.
Above command will Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and only registers ASP.NET in IIS.
https://support.microsoft.com/en-us/help/2015129/error-message-after-you-install-the--net-framework-4-0-could-not-load
I have Windows 8 installed on my machine, and the aspnet_regiis.exe tool did not worked for me either.
The solution that worked for me is posted on this link, on the answer by Neha: System.ServiceModel.Activation.HttpModule error
Everywhere the problem to this solution was mentioned as re-registering aspNet by using aspnet_regiis.exe. But this did not work for me.
Though this is a valid solution (as explained beautifully here)
but it did not work with Windows 8.
For Windows 8 you need to Windows features and enable everything under ".Net Framework 3.5" and ".Net Framework 4.5 Advanced Services".
Thanks Neha
Hello Thanks for the question;
To resolve: "Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'"
In Windows Features check all for .NET 4 Advanced Services & .NET 3.5
Just like Nicolas Gago I tried aspnet_regiis.exe -iru but it didn't work. After the features were on then it yellow screen error was gone. Thanks;
You can install these features on windows server 2012 with powershell using the following commands:
Install-WindowsFeature -Name NET-Framework-Features -IncludeAllSubFeature
Install-WindowsFeature -Name NET-WCF-HTTP-Activation45 -IncludeAllSubFeature
You can get a list of features with the following command:
Get-WindowsFeature | Format-Table
Ok, finally got it.
Change this line in %windir%\System32\inetsrv\Config\ApplicationHost.config
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />
To
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />
If this is not enough
Add this following line to the Web.config
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
From the Server Manager's Features node, you can also remove some of the sub-items under the .NET Framework 3.5.1 Features that are installed by the activation of some of the other roles.
For instance, removed the WCF Activation Features as follows and our websites came back:
[x] .NET Framework 3.5.1 Features
[x] .NET Framework 3.5.1
[ ] WCF Activation
[ ] HTTP Activation
[ ] Non-HTTP Activation
Note: this did not require a restart for us.
In Windows server 2012. Go to ISS -> Modules -> Remove the ServiceModel3-0.
Details
http://msdn.microsoft.com/en-us/library/hh169179(v=nav.71).aspx
"This error can occur when there are multiple versions of the .NET Framework on the computer that is running IIS..."
I got this error after I accidentally published one website into the directory of another website. The two websites had different versions of .net. What fixed it for me was changing the application pool. To do that, in the IIS manager:
click the website => Advanced Settings... (on the right) => click to the right of Application Pool => a button with "..." should appear => select ".NET v4.5 Classic"
If that application pool doesn't work, try some of the others.
We are using a web service along side a web site and when we publish the web site it returns same this error. We found out that by going into IIS and removing the ServiceModel from Modules and the svc-Integrated from the Handler Mappings the error went away.
I am late, hope it will help someone ....This is a known issue with IIS 8.0
The solution is to delete the 3.x module and handler from IIS manager. You could delete them at the application or site level if you want to keep them in applicationHost.config. But I wanted to delete them from applicationHost.config. do the following steps:
In IIS manager, click the machine name node.
In “Features View”, double-click “Modules”.
Find “ServiceModel” and remove it.
Image 1 for Solve IIS 8 Error: Could not load type ‘System.ServiceModel.Activation.HttpModule’
Go back to the machine name node’s “Features View”, double-click “Handler Mappings”.
Find “svc-Integrated” and remove it.
Image 2 for Solve IIS 8 Error: Could not load type ‘System.ServiceModel.Activation.HttpModule’
You might changed the IIS features settings.The easy steps to resolve by open command prompt with run as administrator(For Windows Server 2008) and run the command
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru
this will set up ASP.Net 4.0 ,Then Reset the IIS by the command
iisreset
References:
https://support.plesk.com/hc/en-us/articles/213392249-ASP-website-shows-error-Could-not-load-type-System-ServiceModel-Activation-HttpModule-from-assembly
This issue occurs because the Applicationhost.config file for Windows Process Activation Service (WAS) has some tags that are not compatible with the .NET Framework 4.0.
Based on your environment, you have 4 workarounds to solve this issue:
Updating Applicationhost.config.
Perform ASP.NET IIS Registration.
Turn on the Named Pipe Activation feature.
Remove ServiceModel 3.0 from IIS
Check the detailed steps for each woraround at Solving Could not load type system.servicemodel.activation.httpmodule from assembly System.ServiceModel
delete the module which is identified in .Net error message , 1 down vote
In Windows server 2012. Go to ISS -> Modules -> Remove the ServiceModel3-0. (without number worked for me)
start-> Run--> c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru
I am working on getting web deploy set up on IIS 7.5. I have followed the steps exactly in this article:
http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler
I have tested importing and exporting applications on the server and all work perfectly. Now I would like to set up remote access to ms deploy so I can install web applications by publishing in visual studio 2012 with publish profiles.
Here is where I am confused, what is the url I include in this for the service url (ie. msdeploy.axd)? Where I can find it on the servers iis (server is located on different machine than visual studio)? I have read about access is over port 8172, how can I check that this is open for communication?
Thanks for any help
First up, the installation instructions you want are Installing and Configuring Web Deploy in the "Install" section of the site. The instructions you linked are from 2008.
Once you've installed MSDeploy v3 as per the newer instructions, the MSDeployServiceURL value will be https://webserver:8172/msdeploy.axd. You'll also probably need to set <AllowUntrustedCertificate>true</AllowUntrustedCertificate> if you don't have a cert on the server.
The user in question will need to be an administrator unless you have setup non-administrator deployments (instructions in the same link).