I have a Visual studio solution with 3 projects (umbraco cloud site). One of the projects is a website that runs on a webserver (web), it references another project which contains the business logic (core).
Id like to use miniprofiler to profile the referenced DLL when im running the site but i dont seem to be able to see the results on the front end of the site. I can see steps that ive added in the web project however.
Is it possible to do this? Thanks, Jonny
Related
I asked question yesterday, which wasn't answered. I gathered some more details and now I am able to ask it more specifically.
Generally, I have two PCs: PC1 and PC2. On both I have VS2017 Community installed. On PC1 everything works just fine.
It's PC2 I have concerns with. First of all, I miss all Razor templates. I can't create ASP.NET project with Razor Views, if I create empty web project, I can't add Razor View (cshtml file). To be clear - I can do everything on PC1.
Secondly, on PC1 I have below option, on PC2 I don't:
I have Web development kit installed in both VS's. I don't know what is wrong.
Edit
Here's what I get when I navigate to Web->Web site in New project window:
Your PC2 is probably on a newer version of VS c17 with the update explained in this blog post:
Visual Studio 2017 Version 15.5 Preview
Creating ASP.NET Web Applications: We’ve rearranged the ASP.NET project creation menu items a little bit to improve discoverability and increase the likelihood that you’ll choose the right project type for what you’re trying to do. Now, the commands to create a Web Applications or a Web Site are visually next to each other in the File->New Project dialog. This should help the majority of people discover the Create a New Web Application path correctly the first time.
Should just have to go File>New>Projects... then there will be a Web Site option under Web
I am currently running into an issue where I have an mvc project and an API project in the same solution,Visual Studio 2017.
when I build the solution the structure is as follows
solution
solution/area1
solution/area2
solution/api
I am able to reach the api with no issues when just building on my local machine, but when I go to publish the solution the api project builds the dlls but does not build out the solution/api so I cannot navigate to my api calls.
I have tried setting up multiple start up solutions which did not resolve the issue.
When you build on your local machine, you probably use '(Re)Build solution', which builds all projects in the solution.
However, there is no such thing as 'Publish solution'. You can only publish a Project. When you do that, only the project and all its dependencies are built & published.
if your API is in a seperate project and not referenced from the MVC site, it will not be built nor published together with that MVC application.
There are two viable approaches:
You integrate the API in the MVC site (same domain, same routing mechanism, probably seperate area).
In that case I would suggest keeping it in the same project for simplicity.
You develop the API as a seperate application in its own (sub)domain.
Here you put it in its own project. And you build and publish it on its own, seperate from the MVC application.
msbuild MyProject.csproj /p:DeployOnBuild=true;PublishProfile=<profile-name>;Password=<insert-password>
https://stackoverflow.com/a/14232754/2183503 has the answer.
Note: It has some spurious information (regarding passing vs version) though. For example, I tested the command out out just now and it worked fine without the /p:VisualStudioVersion=11.0 in Visual Studio 2019 Developer Command Prompt.
I am sorry to ask a question which doesn't have a specific problem, but I would be more than grateful if you could point the problem. (I can always provide other parts of my code which would be relevant to my question)
I am using Visual Studio to create my web application with ASP.NET MVC Core. All is good with the project and I can make it work on my localhost.
I bought a third party hosting service with Windows hosting (Plesk) and as far as I've asked them, they said their hosting plan supports ASP.NET Core.
For the deployment part, I've literally searched each and every source and tried various different methods but could not properly upload my files on ftp. Trying ASP.NET Core 1.0.0 version worked well and I uploaded a sample website, but since I am working with ASP.NET Core 1.1.0 now, I am unable to find a solution.
Here is what my publish profile looks like before hitting publish button:
I'm not really sure if I filled all the information correctly, but validation seems to work well.
And here is the log which I get after trying the publish via ftp method in visual studio:
Even though it seems to succeed, when I look at my ftp directory after this process, the files in visual studio project were never uploaded in the directory.
Any help is appreciated, thanks.
I have deploy the same on my server and it is working fine see the attached screenshot.
net development. I am working in a website project and I am trying to update one of the dll files. I've search for hours for a solution on stackoverflow, but no luck.
Our website project in Visual studios is composed of one website that uses three C# projects. I am trying to update just one of these C# projects. Currently the website is in production and the DLL files of these projects are in the /bin folder.
I opened up the solution in VS and made my changes.
I built the whole solution and retrieved the new dll.
I stopped our in-process website with IIS and overwrote the dll and restarted it again.
I get an Missing Method Exception as an error when I do this. I was hoping for a straight forward way of updating our website project because I only need to change about two lines of code and swapping dll files seems like the easiest way of doing this.
Thank you guys for your help and be patient with me I am a slow learner and I ask a lot of questions.
One of the reason of this to occur could be that your dll is built using different version of .net framework than what is on your server. You can check that and see if that resolves the issue.
I am adding an ecommerce section to an existing web application using NopCommerce (open source ecommerce package). Since the ecommerce section is logically different and Nop is built on MVC and my application is web forms I am keeping everything separate in my solution. When debugging locally I have all of the projects setup to use iis so I am able to debug them as a whole. All this seems to be setup good but when I go to publish the site I have to publish the three web apps (my app, nop, nop admin) separately. Is there something in vs2010 that I can use to publish all three applications at once? I guess it isn;t really that big of a deal but I would like to set things up correctly so any ideas, comments, or references would be great. Thanks!
I think it is not possible with Visual Studio environment but you can run the command line tool - aspnet_compiler from within the batch file.
Found an interesting blog-posts:
Web Deployment Made Awesome: If You're Using XCopy, You're Doing It Wrong
How To Create an ASP.NET Application from Multiple Projects for Team Development
VS 2005 Web Deployment Projects
ASP.NET Deployment Content Map
How to publish an entire solution as a single Setup file