Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have to publish my asp.net mvc site to the customer server. Which files should I publish to avoid to distribute the project source code?
Have you tried a right-click on your project an build a deployment package? VS will pack all files you need. And for the Client server use msdeploy to publish
And next time use the search cause you will find lots of posts about this:
Best way to deploy a VS-2008 web project
How to deploy my asp.net project in IIS?
Is it possible to deploy asp.net mvc project on IIS server without installing of mvc?
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Following is my Dockerfile code. I'm trying to run a C# console application which is an EXE file. I created a sample application with same code, and it works, but this one is an existing application which is not running i.e., when I try to run docker logs <thiscontainer> it won't show any result.
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
COPY bin/ MbrRst/
WORKDIR MbrRst/Release
ENTRYPOINT ["RunAccessApp.exe"]
The only difference I see between the sample application and actual application is the TargetFramework in the project properties.
My actual application has .NET Framework 4.5.2, and the other one (sample) has .NET Core 3.1.
I think I need to use the right mcr link in the Dockerfile. Please help me out :)
Since your application is .Net Framework, you need to use the right image in the docker file.
FROM mcr.microsoft.com/dotnet/framework/sdk:3.5
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I use linux and I am not willing to switch to windows. I need to create asp.net application for windows server with people working with visual studio on windows. I would like to work from my linux machine. I have heard about mono. Can I get some instructions and suggestions?
Note that the application will be deployed on windows.
One way or another you are probably going to have to use Windows at some point. Even if everything runs fine under mono you will still need to check that it does on Windows.
You could set up a virtual machine on Linux running Windows, or have a separate machine for testing. If you are working in a team where someone else is responsible for most of the testing you could avoid that too.
Start by installing mono with apt-get install mono-complete. It would probably be easiest to get Visual Studio to setup the project. Hopefully you are using some form of version control, so you can push the code and pull it to your Linux machine. You can write the code on Linux in your preferred text editor and test it running under mono. Finally deploy it back to the Windows machine/VM to verify that it works as expected on your target platform.
You can check which features are currently fully, partially or not supported in mono here:
http://www.mono-project.com/docs/about-mono/compatibility/
http://www.go-mono.com/status/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a MVC project (web application) created using C# in Visual Studio 2015 on Windows. It is working perfectly on a Windows Server.
Now there is a requirement to shift the server from a Windows OS to CentOS.
I googled around to check how to run MVC project on CentOS and found that we can use mono.
But my query is, can we use it in the same way as we use IIS and Windows OS ?
I mean can I just take the project files from my current server (Windows Server 2012) and deploy them as it is on the new server (CentOS) and it will run as it is or do I have to make any programmatic changes ?
I tried this in the past and it wasn't a straight compile and ready to go, I had to follow instructions to get it all migrated.
Here're couple of good resources to read as far as compatibility and migration:
http://www.mono-project.com/docs/about-mono/compatibility/
http://www.integratedwebsystems.com/walkthrough-porting-asp-net-mvc-website-to-mono-2-6-1-and-mysql-on-linux-apache-porting-to-mono-part-3-of-3/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a school project where I have to build a desktop application in C# with ASP.NET MVC 5.Im using Visual Studio 2015, and Sql Server.
That application contains a small database with about 5 tables and some data. The project is done and it works fine on my computer. My problem is: part of the task is making the program I made work on another computer.
How do I publish my application? Publish with One-Click makes the installer, but, when I do install the software in another computer, it gives an error that it cannot connect to the database. How can I deploy my project WITH the database to another computer?
Thanks in advance
EDIT 1:
After an long search, i found an youtube video that explains how to do a Setup Project using Visual Studio 2015, where you can choose what you need to install and the configurations you need to adjust. I´m still trying to make it work, but i can fell im at the right path finally.
Youtube video: https://www.youtube.com/watch?v=zx6w3BDD6Sg
What database are you using?
File-based databases like SQLite or SQL Server Express are built to store their data in easily transportable files that can be shipped along with your app/site.
If you're using a server-based database like SQL Server, MySQL, etc., you'll need to ensure that the target machine/environment has the same database server installed and you'll need to write a deployment script that attaches pre-populated data files to the server. This may be a lot more work.
Try with using Sqlite as a database with entity framework code first approach with that you can hold the database in user's computer (c:/users/username/appdata). By code first approach you can create the database while the user install the application and you can drop the database while user uninstall the application.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have developed a Universal Windows Application (Windows 10). I am now to the point where I would like to package it up and deploy it to an image of Windows 10 or have it on a shared drive and have users double click an .exe and install it.
I am using Visual Studio Enterprise 2015. Does anyone have any experience doing this? If so, could you provide any type of suggestions on how I can accomplish this too?
Please, read this tutorial: How Do I Deploy a Windows 8 App to Another Device for Testing?
For Windows 10 need setup Developer Mode is Settings.
You may want to have a look at Windows Imaging and Configuration Designer (WICD) (contained in Windows Assessment and Deployment Kit (ADK) for Windows 10). With WICD you are able to create a provisioning package containing appx packages. Afterwards, distribute the provisioning package to your users/pcs.