Hosting ASP.NET application with SQL Server DB - asp.net

I have a web site developed in ASP.NET MVC and used MS SQL Server as a back-end database.
I was trying to host this application on webFaction, but unable do do so as it seems WebFaction does not support hosting of ASP.NET applications.
Can I host ASP.NET application with SQL Server as DB on WebFaction?

The official answer is here: https://community.webfaction.com/questions/17081/asp-as-application/17099
WebFaction only offers Linux server hosting.
If you want to use ASP.Net, you'll have to use Mono. They don't provide an installer for it, so you'll need to build the Mono stack from scratch.
Per MS SQL server, it doesn't (currently) run on Linux. So you will either need to connect your Webfaction ASP app to another hosting service for the database, switch to a new database, or wait for MS to release their linux version of MS SQL.

Related

ASP.Net Free WebHosting to My Microsoft SQL Server

I have developed ASP.NET webpage using (C) and I have a domain too but now I don't know where I can find ASP.NET free (or 3 months free) webHosting provider for pushing my ASP.NET files and connect it with my domain.
I have tried a lot in google but all of them are providing free ASP.NET along with their own SQL Server. But I don't want my data to be stored in someones server because all my ASP.NET forms are created by targeting my MS-SQL Server (which is available to connect via internet).
Is there anyone provides webhosting alone and let my webpages to store data in our MS-SQL server rather than saving it in service provider servers.
I have to show it with my organisation that the developed pages are working fine in web so based on that they will arrange local ASP.NET webhosting service for hosting our developed webpages.
Hope I made it clear.
Your suggestion/solutions will be highly helpful to me.
All ASP.Net (Windows) web hosting providers offer ASP.Net with MS SQL Server databases, it does not mean that you have to host your MS SQL databases in their Shared SQL Server mandatorily. If your own MS SQL Server is configured for Remote Connections, you can host MS SQL database in your own Server and connect it to ASP.Net application hosted at some hosting provider. You just have to specify an IP address of SQL Server in connection string of your website.
Are you a student?
You can get Microsoft Azure access for free through their Dreamspark program.
https://www.dreamspark.com/Product/Product.aspx?productid=99

Publish ASP.NET MVC 4 (Razor) app onto remote server running Windows 7 with IIS 7

I have experience in hosting an Asp mvc 4 application on local IIS with Sql server as back end. Now I want to host this application on another system that don't have Sql server and Visual studio installed. I think we can able to get all files necessary to host by publish option in visual studio 2012. But I don't have any idea on how to make my database working on the server without sql server and the necessary connection strings. Can I change my db to sql server compact 4.0?
Please give the necessary instructions.
For .net Application you can generate necessary files using publish feature of VS.You can even make use of web-deploy for direct deployment of artifacts to remote server itself.
For db you better have sql -engine, without that it get's tricky. Express edition will always be better option if you are not looking for some advanced DBA jobs.

Web application deployment

I am buiding an internet web application using c# ASP.NET. I am using my own computer to develop the application. I've installed the oracle database on my computer. In order to deploy this application on the server, does the server have to install oracle client? I already included Oracle.DataAccess.dll in the bin folder.
Yes it does, assuming you're connecting to the database on the same server!
For example, you can connect to remote databases, but the point is where ever the database lives (server or PC), it will need Oracle installed.
The web server you will deploy your application to does not need to have Oracle server but it must have the Oracle client installed (Instant client for instance) + you will have to deploy your database to the Oracle server

Deploying .NET application in azure

I have this .NET web forms application which uses SQl server database, It runs fine on local server but as soon as I add windows azure deployment project to it, it is not able to access the database. what should I do ?
To answer your broad question with a broad answer: have you tried to troubleshoot using the Guidelines for Connecting to SQL Azure Database (http://msdn.microsoft.com/en-us/library/windowsazure/ee336282.aspx)?

using SQL Server Compact Edition in ASP.NET websites

I know next to nothing about databases, but need to store and present user input on my ASP.NET tiny website (up to several thousand records). Should I consider SQL Server Compact Edition? In Microsoft docs I found:
SQL Server Compact 3.5 is not currently optimized to serve as a database for Web sites. By default, connections from ASP.NET-connected applications are blocked in SQL Server Compact 3.5. SQL Server Compact 3.5 is optimized for use as an embedded database within applications. Using SQL Server Compact 3.5 as a database for Web sites requires support for multiple users and concurrent data changes. This can cause performance problems. Therefore, these scenarios are not supported. Other editions of SQL Server, including SQL Server 2005 Express Edition and later versions, are optimized to serve as a database for Web sites.
But then I remember reading some user comment that the 4.0 version of SQL Server CE is finally working OK in ASP.NET scenario. Anyone care to share his experience? I would like to try CE first as SQL server requires additional fee on my hosting.
From the download site for SQL Server Compact 4.0:
Microsoft SQL Server Compact 4.0 is a free, embedded database that software developers can use for building ASP.NET websites and Windows desktop applications.
And:
SQL Server Compact 4.0 enables new scenarios and includes a host of new features, including the following:
SQL Server Compact 4.0 is the default database for Microsoft WebMatrix, which is a stack of web technologies for easily building and deploying websites on the Windows platform.
(emphasis mine)
In conclusion - it has specifically been enhanced for web scenarios.
Yes, SQL Server Compact 4.0 has been designed with scenarios similiar to yours in mind.
New Embedded Database Support with ASP.NET
SQL CE is a free, embedded, database engine that enables easy database storage.
No Database Installation Required
SQL CE does not require you to run a setup or install a database
server in order to use it. You can simply copy the SQL CE binaries
into the \bin directory of your ASP.NET application, and then your web
application can use it as a database engine. No setup or extra
security permissions are required for it to run. You do not need to
have an administrator account on the machine. Just copy your web
application onto any server and it will work. This is true even of
medium-trust applications running in a web hosting environment.
SQL CE runs in-memory within your ASP.NET application and will
start-up when you first access a SQL CE database, and will
automatically shutdown when your application is unloaded. SQL CE
databases are stored as files that live within the \App_Data folder of
your ASP.NET Applications.
Visual Studio 2010 SP1 includes new tooling support for SQL CE

Resources