Website Deployment - c#

I have a ready website which is developed by me in ASP.NET with SQL Server 2005 database connectivity.
I want to know that how I can deploy my website on the internet and for this purpose which website I can access.?

You'll need to find a hosting provider that offers Windows hosting plans with ASP and SQL Server options. You'll also need to register a domain name with which to access the site - the hosting provider should be able to help with this too.

Step 1. Register your Domain.
Step 2. Consult hosting provider for web application hosting & other services needed by
your application. (For example - Version of .NET Framework, MS-SQL server database,
mail, ftp etc)
Step 3. Deploy your application.

Related

Moving to a SaaS architecture from on-premises

Our current solution is an ASP.NET WebApi server and various client apps which run:
Our on-premises: Server and web clients run in our premises. The customer databases are also found here. The main app (WinForms) is installed on the customer's users pc's.
Customer on-premises. Server, database and main app (WinForms) are available within the customer infrastructure. Web clients are still located in our premises.
The projects / apps:
Database: SQL Server database, non multi-tenant, ie. database per tenant.
Server: ASP.NET Core WebApi, non multi-tenant. Connects to different local customer databases. Users might be local AD users or users created in the authorization server (3).
Authorization Server: ASP.NET MVC app that uses OpenId to authenticate and authorize uses. Used by the server (2) and clients below.
Main client app: WinForms app that connects to a server (2).
Dashboard apps: Blazor server-side apps, multi-tenant. Connect to a server (2) using host name strategy.
Web apps: Mixture of ASP.NET MVC and ASP.NET Core apps, non multi-tenant
We would like to move to a SaaS architecture. We will choose database per tenant to avoid noisy neighbor problems and data contamination, as well as security.
The main development work will be development a web-app to replace the main WinForms app.In this case, I see to possibile solutions:
Expand the server (2) to add razor pages. Additionally, the server must become multi-tenant.
Create a web app. the current WinForms app is huge. However, user size is in the low to mid 1000.
In this situation what would be the most practicable solution for the main client app? Blazor Server-side or ASP.NET Core Razor pages?
Any other solutions that might be considered?

Migrating consideration Asp.Net webforms/ MVC website from dedicated to cloud hosting

I have a requirement where i have an option of migrating all website which are asp.net webform & MVC based to a new dedicated server or Cloud server. I am not much aware of internal dynamic of clod hosting and most of the providers are not clear about the concerns i have.
Let me put it this way.
I use asp.net session variable in bot webforms & MVC how can i handle these session on cloud hosting Will session variable break in cloud enviroment in case single user session is severed by multiple instance on different servers in cloud
I am Using MS SQL Server 2008 R2 edition what should i consider for cloud
We have Apple Push certificate installed on dedicated server can we install same on cloud server
Can we have FULL TRUST level in cloud as we are using one application which need FULL TRUST level access to work.
Is there different version of Plesk for cloud server or we can install same Plesk etc.
If issue is with defaul session In-Proc then i can use SQL Server based session to get around it.
Do i need to take into consideration anything that can effect websites from working on cloud from configuration point of view or code point of view.
What steps should i take for migration from windows dedicated server to cloud server.

HTML5 with .NET backend App, compatible with both standalone Windows and Azure?

I need to design an HTML 5 responsive, and simple app that should work on both internal Win server and on Azure.Our Client wants to check out Azure but maybe later he will want this app to be on its own on premise servers. Our Developers are almost all .NET back ends, with basic knowledge in HTML 5, Javascript, Jquery, and bootstrap. We accepted the challenge because the project is tiny and interesting, the point is, is possible to have 1 project that can be deployed to azure or IIS with no problem? and what kind of project should we create? I think that a simple asp.net project with some web methods and js will do the job, but I don't know if it will work on azure too. Back n 2010 I did something that way but now I am not sure it's still valid
Important: the web application should be able to query oracle on premise server, via web service but not sure if take azure service bus or azure vpn
It depends on how you build your application. I have built applications in the past that works both on-premise and on Azure. As long as you don't access any Azure specific features, there's no problem to deploying the web application project to an on-premise IIS.
If you use Azure-specific features or services from Azure, such as Azure SQL DB, you have to built an on-premise version. In my case it was simple as changing the connection string and the rest was done by Entity Framework, but you can use an IoC container, such as Unity, to change your implementation based on the environment you're running on. If the Azure environment is available (check through RoleEnvironment.IsAvailable) you resolve the Azure-specific implementation of some features and if not the on-premise implementation. In most cases that are just a few dependencies, for example if you use a worker role on Azure and a Windows Service on-premise.

Putting your website online from scratch (ASP.NET MVC + Database)

Ok. I made website (in VS 2012 ASP.NET MVC 4) and I have database on my local sql server that website uses.
Now, what do I have to do to put it online.
Is there any good tutorial that shows how to do this from scratch (there must be but I can't seem to find any).
So I want to know things like:
- what are the best hosting sites
- do they offer space for my database and how can I connect to this database from sql server or do I have to buy space for my database somewhere else...
-where to put files I get from publishing my website from VS
-etc..
Scott Hanselman has an article here to Bin deploy your MVC project to your server via FTP.
Follow next steps:
you would buy a space on Windows server via a host. Once you do this, you will get the FTP server address, username & password that you would use when Bin deploying.
Buy a domain via services like godaddy.
Link your domain to your server by changing the name server address through godaddy's control panel.
That's it. This is in short assuming you understand the basics of hosting, domain etc.
I would recommend you to check out Windows Azure. That is one of the best and easiest hosting services I have tried at least. For instance, when you create a website, you can just download the piblish profile and right click at the project in VS and choose publish. Select the publish profile that you downloaded and most of the time you are done.
Check out Troy Hunt's: worldsgreatestazuredemo and Azure Friday to get a feeling for what Windows Azure is.

Is there a ASP.NET web site administration tool in IIS?

I am using asp.net web site administration tool to manage the different roles in my project (currently Customer and Administrator). During the development, in vs 2008, its very easy to manage the roles. (Project -> Asp.Net configuration). How do I manage my roles and users when the system is deployed (IIS)? Is it possible to run a "asp.net web administration tool-services" on IIS?
This article describes how to create one, including the code that you can directly embed in your website:
https://web.archive.org/web/20210510020726/https://aspnet.4guysfromrolla.com/articles/053007-1.aspx
This article describes how you can run the ASP.NET configuration website administration tool on IIS:
http://blogs.msdn.com/rahulso/archive/2006/03/09/547402.aspx
Update: here's a very basic example in MVC3/Razor:
http://www.mikepope.com/blog/DisplayBlog.aspx?permalink=2240#Create_a_page_to_manage_roles
Supposedly, developers are intended to admin the site using the visual studio web site administration tool. There is no out-of-the-box web interface to front-end that stuff.
If you are using a SQL Server instance, rather than the mapped database file in APP_DATA you can use the ASP.Net configuration tool by temporarily changing the Connection String for the database to point to your live database rather than the local one - this will enable you to edit the roles/users etc.
However, it's one of those areas where you should probably look at writing/finding a tool to edit/manage these properly.
you can create an application in IIS, you just know that direction of web administration tools (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ASP.NETWebAdminFiles)
the other point that you should now is that you need two parameter in the URL.
AS an example:
http://localhost/PMIS-Security/default.aspx?applicationPhysicalPath=C:\PMIS&applicationUrl=/PMIS
applicationPhysicalPath=C:\PMIS
applicationUrl=/PMIS
You can use Servant. Get it here http://servant.io/ just install it on your server and you are good to go
Try this ASP.NET Web Site Administration Tool
http://sourceforge.net/projects/wsatudri/

Categories

Resources