Deploying ASP.NET MVC using apache server and mysql database - asp.net

Is it possible to use an apache server deploying my asp.net MVC webapp and using mysql database? Currently I'm testing my application using the integrated xsp webserver in my mono develop.
Please advise.
Many thanks.

In windows you can use mod_aspdotnet, see
https://serverfault.com/questions/132846/configuring-asp-net-mvc2-on-apache-2-2-using-mod-aspdotnet
In linux you can create web application config file using online tool in go-mono.com web site and put this file to apache config directory like /etc/httpd

Related

Can we have an ASP.NET Core application alongside a WordPress sites?

I'm working for company which we have their own Virtual server for WordPress sites and It is running.
I don't know much about servers and hosts but I know that we run apache on server for WordPress sites and use cPanel for server management.
I create an application with ASP.NET Core 3.1 and Core is a cross-platform.
My question is ...
Can I run my application on this server without conflicting with other WordPress sites?
Thanks For Your Help!!
As long as you run your ASP.NET Core server on a port which is not used by another server, you should be fine.
Mahdi, Since you are using .NET Core you can host ASP.NET Core on Linux machines with Apache. For more details take a look at this article. To see how exactly to configure Apache reverse proxy take a look here.
Also bear in mind that you can run an entire WordPress Application over an ASP.NET Core Host seamlessly using PeachPie which is an open-source PHP language compiler and runtime for .NET and .NET Core frameworks. If you are interested in this take a look here.

Migrate a ASP.Net application from one server to another server

I have developed a ASP.Net MVC 4 application with Visual Web Developer Express 2010. It was successfully published/deployed to a remote server A (development server) using the Web Developer's built-in publishing tool and it works perfectly on it IIS 7.0 with the web deployment component.
Now I want to deploy it to another remote server B (production server). This one sits in an isolated environment and does not have Internet access! Even if server B is a replica of server A, its IIS 7.0 does not have the web deployment tool component installed. So the built-in publishing tool does not work for the web deployment option.
I then tried to publish it using the File System option. I copied the exported files to a new folder on IIS on server B. The folder was configured the same way as its counterpart on server A. I tried the URL on server B and it just gave me directory/files listing on the browser instead of the welcome page of the application.
Has anybody got the experience or tips to solve the issue? Thanks.
Cheers,
Alex
edit:
because it a MVC site, the default document doesn't apply. check the following steps:
IIS Extension Less URLs are enabled and allowed.
ASP.NET 4.0 is installed and registered. C:\Windows\Microsoft.NET\Framework\<version> and then aspnet_regiis -i (this will typically force IIS to use the MVC infrastructure instead of using the default document methodology)
Ensure App Pool is in 4.0 Integrated mode.
Ensue that the IIS Advanced Settings for the website are showing the right root folder path.

deploying VB.net website with MySQL server database into portable device (pendrive)

I have developed a web application using VB.net with MySQL database,
now I need to deploy this application to a portable device such as pendrive/harddisk so user can use this application through the portable device in different computers.
Is there any possible way to do this?
I found this asp.net on apache but I am not sure will this work for me or not.
EDIT
Is Mod_MONO able to do what I wanted?
websites /web application can be deployed on web server only.
for asp.net it is IIS .
to make it portable you need Microsoft Virtual PC. create a virtual machine and install your app on that , then keep that in Portable Device

asp.net to tomcat

Anyone has any example/tutorial links to deploy asp.net to tomcat (intranet) using mono? The guide they gave isn't clear on how it should be done.
Or are there any other ways to deploy asp.net to tomcat other than using mono?
Thanks in advance!
Anyone has any example/tutorial links to deploy asp.net to tomcat
(intranet) using mono?
Since Tomcat is mainly intended for running Java based technology you should probably look into things like Grasshopper although I haven't seen anyone using Tomcat to deploy ASP.NET applications so far.
Or are there any other ways to deploy asp.net to tomcat other than
using mono?
If your environment is unix based then your only way how to do that is using mono. I would however recommend you to use either apache with mod_mono or nginx with FastCGI since these are the most used combinations of running ASP.NET based web applications with mono.

How can I deploy my ready website?

I have well developed an ASP.NET website with SQL Server 2000. How can I drop it on a server?
You might find these resources helpful:
ASP.NET Web Site Project Deployment Overview
Deploying a Database by Using the Database Publishing Wizard
How to: Deploy a Database With a Web Application Project
Depends on a number of things (e.g. if you have direct access to the server(s)). I tend to export my database structure as a SQL script and execute that against the production database. I then "publish" the site using VS and copy it across to a virtual directory on the web server.
If I am passing the application to a customer, I tend to use WiX or a VS deployment project to wrap the application up in an installer.
You can use SQL Server Publisher (free) wizard for moving database from development machine to the server. Or you can use SQL Server database schema synchronization tool by Red-gate.com
And SitePubisher for deploying files over FTP (and VPN)
There are many ways to do this.
Read this - http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx

Resources