I read this article on getting slowcheeta working on the build server. It works fine with Console apps but I can not get it to work for Web Applications.
I verified that the build service can access the slowcheeta (works fine for consoles apps).
I am able to transform on my local machine for web applications correctly as well.
The primary .config file is set to content do not copy, the transforms are set to none, do not copy.
The server is TFS 2012 with visual studio 2010 and 2012 installed to support build tasks.
github
Related
I just had to reinstall VS 2019 and have VS machine build an ASP.net web application there.
When running it, all CSS formatting is ignored. Neither own nor from bootstrap.
Is there a switch or setting somewhere that I still need to do?
Execution of the website is done in Windows 11 via Edge and IISExpress in Https mode.
VS 2019 reinstalled, created project ASP.net web application (project template), launched application with F5.
I'm developing in ASP.NET Core Blazor WebAssembly.
Originally I had made a Blazor wasm project in Visual Studio 2019 where client, server, and shared were all part of the same project.
The project grew and I decided to split up the project into separate git repos.
I'm using Serilog.Sinks.BrowserHttp and it was working fine before I split up the project.
Now I'm getting an error in Console (Chrome):
Before the project was split up into two separate git repositories, all logging was saved in the database, but after the split, only the server-side logs are being stored in the database.
Is there a way I can store the logs straight into my Microsoft SQL database after having split up the Blazor project?
Here is my Program.cs logger configuration:
Logger Configuration
I just figured since both server and client were both in the same project and everything worked fine, the problem must be that the logger is assuming they still are in the same folder.
The problem was an old Nuget packet Serilog.Sinks.BrowserHttp 1.0.0-dev-00012. When selecting to manage nuget packets for my solution in Visual Studio, under package description the only version available is the installed version. But from the command line I was able to update to the lastest version 1.0.0-dev-00021.
I build the app using Visual Studio and already publish it to Azure Services.
However, when trying to run it, I got the following error:
Could not load file or assembly 'RandomColorGenerator.Forms' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I looked into the bin folder in my local project and I can see the dll file just right.
Any suggestions?
According to your description, your MVC project could work on your development environment, but when deployed to Azure Web App, you got the above error. Per my understanding, you could follow the possible approaches below to troubleshoot this issue:
Use KUDU which is an analysis tool for Azure Web Apps, click on the "Debug console > CMD", then check your deployed web content under D:\home\site\wwwroot\. Make sure the missing dll has been deployed to Azure Web App successfully.
You could try to create a new web app for deploying your MVC project, in order to isolate this issue.
Additionally, you could try to empty your deployed web content via KUDU or redeploy your project by select "Delete all existing files prior to publish" under the "Setting > File Publish Options" of VS publish wizard.
UPDATE:
Based on your comment, you are using Azure Cloud Services. You could enable Remote Desktop and re-publish your application, then remote to your cloud services for troubleshooting this issue. Here is a similar issue, you could refer to it.
An attempt was made to load a program with an incorrect format.
As I known, the above message means that there be a 32-bit or 64-bit
platform conflict. For more details, you could refer to this similar issue.
So as a beginner to the entire Visual Studio IDE and a beginner to F# and the F# based WebSharper, I have certain issues on the system. I use the 'Ctrl+F5' to test the application. Now what do I do if I want to package the application and deploy it on another server, say apache server? Assuming the basic example here has just the .js files and HTML files, where do I find the generated web pages and/or .js files or how do I generate them.
If you created the application using the HTML Site template you’ll find the HTML bundle in the project’s bin folder. You can deploy WebSharper applications built using this template on any server you prefer. If you used one of the Web Application templates (Sitelets, ASP.NET, …) you have the choice between Windows hosting and following these instructions to host the application using Mono on a Linux box running nginx.
When it comes to Windows hosting, AppHarbor is a great choice for deploying WebSharper apps and you can use one of these two templates which both build on AppHarbor to jumpstart your project:
WebSharperMVC
WebSharperBootstrap
Is it possible to attach to a deployed Azure app? I would like to be able to step through the code so that I can see what values are being set in a request to one of my web role actions.
I have looked around and the only examples seem to be of debugging when the azure app is running on the local machine.
Windows Azure Tools (June 2010) allows to use IntelliTrace in the cloud. This release:
Adds support for debugging services in the cloud by using the Visual Studio 2010 IntelliTrace feature. This is enabled by using the deployment feature, and logs are retrieved through Server Explorer.
IntelliTrace support requires:
.NET 4
Visual Studio 2010 Ultimate
the cloud service has to be deployed with IntelliTrace enabled
No, you can't debug an Azure app running on MS's servers.
You might be able to solve your problem with Azure's logging feature, though.
Edited to add MS just announced IntelliTrace for the cloud fabric in the June 2010 tools.
Adding one more thing to Rinat's answer: I did attend a session on Intellitrace and one of things I was told that it should never be used on your applications running in production slot as it creates quite an overhead. So you may want to deploy your application in staging slot do all the cloud debugging and then remove Intellitrace once you find the cause of your problems.
Craig is right "today" you cannot debug an Azure App running on cloud fbaric, you can only debug on local fabric.
you may want to look at the diagonostic and logging API
Link
http://blog.benday.com/archive/2008/11/07/23201.aspx
this is a great tool - http://www.cerebrata.com/Products/AzureDiagnosticsManager/Default.aspx
http://msdn.microsoft.com/en-us/magazine/ee336122.aspx
This will help u..
There is a way to deploy the Visual Studio 2012 remote debugging tools to a Windows Azure Cloud Service and attach to the remote process. The following BLOG post explains an approach.
http://www.fullscale180.com/Blog/post/2012/10/07/Remote-Debugging-Windows-Azure-Cloud-Services-with-Visual-Studio-2012.aspx
This sample code
demonstrates remotely debugging Windows Azure Cloud Services with Visual Studio 2012. The sample utilizes Visual Studio 2012 remote debugging tools and provides an approach to deploy these tools with a cloud service, allowing us to attach to the deployed instance from the Visual Studio 2012 IDE using the remote debugging features.