Develop asp.net application for windows server on linux [closed] - c#

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/

Related

How to run a C# application on WindowsNT? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
On trying to run a c# hello world program on Windows NT4 SP6a, the error message says .net dll's not found; however on trying to install .net framework 1.1 on WinNT i get an error: "Application has generated an exception that could not be handled". When i run the C# app on Windows 7 there are no issues.
Windows 7 supports the latest .NET framework whereas WinNT supports only .NET 1.1 and installing .NET 1.1 on WinNT is not straightforward.
To get over those errors, do the following:
To fix this we need to copy a folder from a Windows Server 2003 machine to WinNT machine.
Find a Windows Server 2003 machine on which .NET framework is already installed.
From the Win 2003 machine copy "Framework" folder [C:\Windows\Microsoft.NET\Framework]
Create a folder "Microsoft.NET" in WinNT machine at [C:\Winnt\Microsoft.NET]
Copy the "Framework" folder from step-3 to "Microsoft.NET" folder in WinNT machine (step-4).
Now you have [C:\Winnt\Microsoft.NET\Framework] folder structure in the WinNT machine.
Run dotnetfx.exe and the installation should complete without incident.
reference

Is using Mono on CentOS as good as using Microsoft IIS [closed]

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/

C# publish desktop project with database [closed]

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.

How to package and install Windows 10 application on other computers [closed]

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.

"hyper-v requires windows professional" creating Universal App in Visual studio 2015 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I just downloaded visual studio 2015 today and was following this tutorial:
https://msdn.microsoft.com/en-gb/library/windows/apps/dn765018.aspx
Everything was working fine until the third step where an error comes up saying that windows phone emulator can't work without hyper-v and that hyper-v needs windows professional. I understand that, because I made it a windows universal app and that my computer is not windows professional (only windows 8.1) that I can't run the emulator for windows phone. But, because I don't see myself buying another computer or the upgrade or a windows phone any time soon- how can I finish an app on visual studio and run it.
I downloaded visual studio because I was not happy with the limited options in distributing java apps and heard that c# was similar but much better in terms of distributing as an application that people can use. If I can't use visual studio without windows professional then is there any other programming language/platform that will suit me.
You can't. The emulator is actually not a real emulator. What happens is that the Windows Phone OS image is running as a virtual image on your PC. According to the comparison chart for Windows 8.1 you really need either Windows 8.1 Pro or Enterprise. As you already mentioned yourself, you will have to upgrade to Windows 8.1 Pro (most computers support Hyper-V so it may just be a limitation of your Windows version) or buy a Windows Phone.

Categories

Resources