I am unable to publish my web application through Webmatrix 2. Can anyone throw some light?
I followed these steps:
a) Created a VM through Azure portal
b) Created endpoints for Web deploy on port 8172 and tcp port 80
c) RDPed to Win Server-08-R2-Sp1-Jun-12 and installed Web Platform 4.0
d) Installed IIS 7 Recommended Configuration
e) Installed Webmatrix 2 on Server which in turn installed Dot Net 4.0, Web Deploy
f) Installed IIS Role Services - Management Services and changed property to [Auto Start] and restarted
g) Edited [Permissions] for the Default Website Folder and added [Network Service] and set [Read/Write/Manage] permissions.
h) Verified that Web deploy and Web Management Service are running in Services.
i) Checked the website from browser and can see the IIS start up page
j) Ran ServerValidator UI application on the Server and it confirms that web management service etc. are running fine
k) After these steps when I put in all parameters in Webmatrix Publish Settings (my ac/ is Admin on Server) I get "Unable to establish connection" error.
Thanks in advance.
My guess is that the Web Deploy "handler" (or WMSvc) component was not installed becuase when you installed Web Deploy you had not yet enabled WMSvc (Management Service). The installer only tries the handler component when WMSvc is already installed. You should be able to remedy this by Changing the Web Deploy installation (from Add Remove Programs) and selecting the "IIS 7 Deployment Handler" (with child components Configure for Non-Administrator publishing and Management Service Delegation UI).
One way to avoid this in future would be to install instead the "Recommended Configuration for Hosting Servers" product in WebPI (a very large bundle of server-side items) or at least use the "Web Deploy for Hosting Servers" product (which will automatically make sure to install IIS with Management Service first). If you don't see "Web Deploy for Hosting Servers" by default, try searching for products with "Web Deploy" using the search box.
Related
I'm trying to deploy an ASP.NET Core Web API into an IIS site in windows 2012 server, I've installed IIS from 0 and when I deploy the app and test a petition with Postman I get the 500.32 error.
I've already installed the .NET Core hosting bundle v 6.0.14 also I've configured the application pool to no managed code and I restarted all the services including the IIS.
Restarted the server isn't an option because I can't get physical access to the server, I'm working from a remote location
This is my dotnet --info
I'm trying to deploy an ASP.NET Core 6 Web API.
I've already done:
Compile and publish the API
Installed the is
Create a site and application to deploy the API
Paste the files from the publish folder to the site folder
Installed the netcore hosting bundle
The problem was in the compilation and publish process.
i had to add the check for Ready to run in the publish configurations, i put that and solved the issue
I have TeamCity installed on a Windows Server 2012 machine. I installed teamCity default installation as service.
Later I added the Application Role and Web Server Role features to the Windows Server.
Now I can't access TeamCity's web interface (I got 404 error) although the TeamCity Server service is running, and the agents' service are running too.
Any ideas/directions on troubleshooting this ?
Credit to Ebeid Soliman El Sayed:
Ensure the following services are disabled as they conflict with port 80:
IIS / SQL Server Reporting Services (ReportServer)
Web Deployment Agent Service (MsDepSvc)
BranchCache (PeerDistSvc)
Sync Share Service (SyncShareSvc)
World Wide Web Publishing Service (W3SVC)
Internet Information Server (WAS, IISADMIN)
I just installed SharePoint and Project Server. When I run configuration wizard to configure service applications, I do not find "Project Server" service application in the list. What could be the reason for that?
You need to configure Project server application separately.
1. Go to System Settings section in CA, click Manage services on server
2. On the Service list, click Start next to Project Server Application Service.
3. Create a Project Server service application in CA or using PowerShell.
I have a WebApi project that wraps the Dynamics CRM Online web service and provides a REST api. I have a simple controller that gets some contacts from CRM and returns them to the caller.
Everything works fine when I run it in the local emulator. However, when I deploy the project to Azure, I can reach the home page, but the controllers all return http 500 errors. Why would this happen? And how can I troubleshoot to get more details?
UPDATE
The issue is with the absence of Microsoft.IdentityModel.dll on the Server 2012 instance running the web role in Azure. I found this by opening web role instance in RDP, installing Fiddler, and making the request from Fiddler to the local IIS server. It responded with the detailed error.
Now my issue is figuring out how to enable IdentityModel on a Windows Azure Web Role. You're supposed to be able to add it via the Server 2012 Add Roles and Features wizard, but it's totally locked down on the Web Role. You can't check any boxes that aren't already checked. Is this even possible?
The issue is giving the Web Role access to Windows Identity Foundation when it's inherently not there. Marc Schweigert provides clear steps to do this here:
http://blogs.msdn.com/b/devkeydet/archive/2013/01/27/crm-online-amp-windows-azure-configuring-single-sign-on-sso.aspx
Go to the 23:00 mark of the video and you'll see the 4 necessary steps:
Reference Microsoft.IdentityModel.dll (need WIF SDK installed)
a. Set copy local = true
Create RegisterWIFGAC.cmd in your web role project
Create Startup Task in ServiceDefinition.csdef that invokes RegisterWIFGAC.cmd
Add GacUtil to the project (used in the startup task) to put Microsoft.IdentityModel.dll in the GAC every time the web role starts).
"Assign this instance to a security group which allows publishing using Webmatrix: http://go.microsoft.com/fwlink/?LinkId=209901"
it shows on desktop readme after "Microsoft Optimized Hosting WebMatrix AMI" booted. But the article is missing.
Thanks your help.
following is the full text readme:
Welcome to your WebMatrix Server Instance on Amazon EC2. You can publish to this server using Microsoft WebMatrix after following these steps:
1) Install WebMatrix on your development PC:
2) * IMPORTANT * Assign this instance to a security group which allows publishing using Webmatrix: http://go.microsoft.com/fwlink/?LinkId=209901
3) Download the WebMatrix.PublishSettings file that is on your desktop to your development PC. You can import these publishing settings into WebMatrix for one-click publishing.
According to this article:
http://blogs.msdn.com/b/gduthie/archive/2011/04/27/webdeploy-tip-for-webmatrix-watch-out-for-port-blocking.aspx
Port 8172 must be available to the computer doing the deployment.
Add permission to the security group your web server is running in to allow access to port 8172 for the computer that needs to do the deployment.
Then, set the EC2 host to be in that security group.