Where can I view Web Deployment history? - asp.net

I'm managing a third party vendor that uses Microsoft Web Deploy to push an ASP.NET website to our server. Is there somewhere I can find a history of where/when the files were published?
According to the MS Docs, Web Deploy automatically logs to the event log at Applications > Microsoft Web Deploy, but when I look there I don't see anything related to Web Deploy.
PS - I know that I can look at the timestamp on the app's folder in our filesystem, but that only gives me the time of the very last change, and not who made it...
Update - Under Event Viewer > Application and Service Logs > Microsoft > Microsoft Web Deploy, I can see history of web deployments that encountered an error, but I do not see a history of successful deployments.

I know this is old, but I found this while looking for the solution myself and stumbled upon the full log.
Instead of directly going to the Web Deploy folder in the event view, navigate to Event Viewer -> Applications and Services Logs -> Microsoft -> Windows -> WebDeploy. From there you can view ConnectionInfo to review successful deployments

I found this in %SystemDrive%\Inetpub\logs\WMSvc. Timestamp, AD username, and sitename published. All I needed!

Related

Microsoft Project unable to establish a connection with Project Server 2016

I just built a Project Server 2016 and have connection troubles. Since this is a proof of concept, I did not use TLS. The URL is just http://xxxxxxxxxxxxx/sites/PWA I'm using the Project Permissions Mode.
I am testing with an unactivated copy of Project Professional 2013
I set the version in PWA Settings
My client computer is not in the same domain as my Project Server. I choose the domain\user name when starting MS Project:
Project does not prompt for a password. It immediately gives an error:
So next time, I choose work offline. Project opens and I check the Info page:
I click Connect to Server and it does. Still no password prompt.
However, I cannot open a project from the Project Server.
Meanwhile, I have no problems on PWA making, editing, saving, publishing, checking in, etc. I made a new project and set the permissions correctly.
When I try to open it in Project by clicking the icon on the web page,
I get the same error.
What am I missing?
I hate it when I discover my own dumb mistake an hour after posting a question.
Apparently, you must only use alphanumeric characters when you Add a Project Web Account in MS Project.
In the Info -> Manage Accounts -> Project Web Accounts dialog box, I deleted my Project Web accounts except "Computer"
I closed and restarted MS Project Professional
In the Info -> Manage Accounts -> Project Web Accounts dialog box, I added a new account but I only used letters in the Name field
I closed and restarted MS Project Professional
Logged into the new Project Web Account
Everything works now.
Apologies for wasting your time. Thanks for looking.

How ti fix the "You do not have permission to view this directory or page." issue in Azure web app services?

I have a simple web app which if I deploy to Azure through Intelij (Using Azure App plugin ) the app works perfectly. But when I tried deploying using Jenkins the log says deployment successful , but when I try to navigate to the site it says "You do not have permission to view this directory or page." Am I missing anything ?
As per my understanding as My project is working fine when deployed using Intelij, but not working through Jenkins, so the problem will be in my Jenkins Job. Here is the configuration I am using :
Publish Files
Files :target\spring-mvc-example.war
Source Directory(optional):target
Target Directory(optional): webapps
Could you please restart the website and check once.
For testing/debugging purposes you can turn on the Azure detailed messaging, and turn back off when its ready for production. To do so, you have to follow these two steps,
Login to Azure > App Services (left side menu) > Your Web App > Diagnostics logs (search box is at the top if you can't find it), then turn on Detailed Error Messages or turn on all of the logging options, up to you. Now add the following in your Web Config file, In your Web Config file add BEFORE system.web closing tag, . Similarly, add BEFORE . Finally, upload the Web Config to Azure and cross your fingers. If you follow the steps correctly, that will show the error messages in detail and hopefully from there

Application Insights extension breaking Azure web app

I had Application Insights running smoothly on an Azure Web App via the AI SDK, reporting to an AI instance hosted in Azure.
The only niggle was it didn't show detailed dependancy diagnostics, according to this page this was because I was using the SDK only, I needed to "Instrument your web app on the server", which looking at the docs can't be done if you already have an instance of AI running....helpful!
Reluctantly I deleted the AI instance, stripped the SDK from my code so I was starting fresh, and followed the steps, however as soon as I finished the process in the previous link my website broke and now responds to every single request (MVC5 and Web API) with an empty 404 request
The AI status page is showing green ticks for everything, and I can't discern anything from diagnostic log dump from KUDO or manage to remotely debug the site.
Deleting the AI extension under Web App -> Extensions in the Azure portal and then restarting the web app fixes the problem.
I've run out of ideas on how to fix this, is there anything else I can do to get to the bottom of the problem?
To fix this problem, delete the following 2 files from your web app's (or slot's) filesystem:
D:\home\siteextensions\Microsoft.ApplicationInsights.AzureWebSites\Instrumentation32\ProductionBreakpoints_x86.config
D:\home\siteextensions\Microsoft.ApplicationInsights.AzureWebSites\Instrumentation64\ProductionBreakpoints_x64.config
You can do this easily through Kudu.
Edit: Apparently this is/was an issue with the ProductionBreakpoints interacting with precompiled views. Microsoft has informed me a fix should be out within the next couple days. The version of Application Insights extension I have now that is still broken is 2.4.6 - I will post the "fixed" version when I can confirm it.
Edit 2: Confirmed this is fixed in 2.4.7 which is out now.

azure deploy issue:do not have permission to view this directory or page

I tried to deploy my asp.net mvc web application to azure. But somehow, I could not using web deploy in vs2015 community, I always receive an error:
Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED. WebApplication6 0.
So I changed to deploy using local git to deploy to azure. I was able to deploy, but when I typed in the url of the web app, I got:You do not have permission to view this directory or page. And I can't access any of the controller I defined in the code. Could any one help me out?
there are a few thing you can do to trouble shoot
first find out if your site is deployed.
go to https://{site name}.scm.azurewebsites.net/DebugConsole, navigate to "D:\home\site\wwwroot", make sure you see the right content is there.
check if your app deployed properly. If your site is asp.net site, when you do local git push (push your source code), you should see Azure will try to build your code. Check if deployment success. From debug console, go to https://{your site name}.scm.azurewebsites.net/api/deployments or from portal you should be able to see your deployment log
if none of the above help you to find out what is wrong, please report your site name here with this instruction https://github.com/projectkudu/kudu/wiki/Reporting-your-site-name-without-posting-it-publicly
I can help and look into your site.
Get the answer from git hub issues' reply, azure web app doesn't support asp.net 5 anymore.
I was facing same issue.
Verify following thing-
Go to deployed web app on azure portal and then go to App service editor and check required folder structure is available under WWWROOT folder and not WWWROOT->Webapp->bin etc.

Permissions needed to WebDeploy from TFS

I am using TFS to Build and Deploy using MSBuild Arguments. I have the following arguments
/P:AllowUntrustedCertificate=True
/p:DeployOnBuild=True
/p:DeployTarget=MsDeployPublish
/p:CreatePackageOnPublish=True
/p:MSDeployPublishMethod=WMSVC
/p:MSDeployServiceUrl=https://myserver.com
/p:DeployIisAppPath="Site1"
/p:UserName=domain\username
/p:Password=password
This works fine when I use my domain account (which is an Admin on the Destination Server), but I want to use a Service Account that has the barebones permissions to get this to work.
I have already setup IIS Manager Permissions for the site, gave Full Control to the folder that the application sits in, and created setAcl, createApp, and contentPath and iisApp Delegation rules for the user.
I have granted read rights to the inetsrv/config folder, and full control to the applicationHost.config file.
I am able to publish my site using the Visual Studio publish process with that user, but am unable to get the deployment to occur using a TFS Build. When I run the build, I get the following error.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4193): Web deployment task failed. (Connected to the remote computer ("myservercom") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.)
I have looked online and followed all the steps I have seen, but still have the issue. Please let me know if you have any questions.
Thank you in advance
Try changing your MsDeployServiceUrl to:
https://myserver.com:8172/msdeploy.axd
Failing that, take a look at the Microsoft Web Deploy event log (in Applications and Services Logs)

Resources