I know this is a very common question and I could find several answers, but I think my situation is a bit different.
So, I have an ASP.NET Website (NOT a web application), built using "Web forms". Its a very simple website which does bunch of REST calls and talks to the SQL Server 2008. Can you please help me finding a step by step guide to deploy the same on Windows Azure using VS 2010? As of now, the website runs fine on a traditional web hosting server.
So far what I am getting are approaches which use MVC (and using ASP.NET web application, not website). I don't think that I should be concerned about MVC at all? Does a website vs. web application aspect make a difference? If yes, do I need to convert the website to web application?
There's a lot of content on web, so I am a bit confused given my condition. Can someone please put me in right direction? Thanks a lot.
You'll need to convert your Website project to an ASP.NET Web Role project, whether you first convert it to a ASP.NET Web Application or not doesn't really matter. The rest of the tutorial you already linked to applies just fine.
There's no need to look at ASP.NET MVC, It's a different technology than web forms, and there's no need to move to it in order to get your site hosted on Azure.
As for your database, unless you host that yourself in a VM-Role or somewhere else (and connect it using Azure Connect), you'll need to convert it to Sql Azure or Azure Table Storage. SQL Azure is largely compatible with SQL Server, but there are a few features which are unsupported.
Related
My only .NET knowledge is from making a couple locally hosted CRUD apps in MVC. Whenever I watch tutorials for Blazor, they talk about a server and APIs. Can I create a CRUD app in Blazor that reads from a local SQL DB but doesn't need to be hosted online but instead makes API calls that are local?
Yes, you can. Here is a tool that will help you get Blazor application in short time. For either Angular or Blazor frameworks. https://www.radzen.com/features/
I needed some help in understanding how i can get this setup completed. Due to the current setup of the website, we have a "/blog" that is powered by Wordpress PHP. We are looking to upgrade the website with ASP.NET C# for the main website "/" in a Windows Azure server but maintaining "/blog" on a Linux machine.
The service doesn't wish to use sub-domain for the blog in fear of losing too much SEO value that cannot be duplicated.
May i ask how can this be done?
Thanks!
Make the php website a subfolder of your main ASP.NET site as described in Create a Separate Site or Virtual Directory for PHP Content.
See also Can PHP and ASP.Net run together within the same web site in IIS 7.5?
I have a website, but some of the back-end infrastructure is little slow.
So I am planning to get help from CLOUD, I haven't decided which one yet.
I need to know does Microsoft Cloud does the same thing.
What I need is following,
1) Have database on external web resource.
2) Have code and http enabled methods that I will write in C# and place it on Cloud.
3) And call the methods in step 3 from my asp.net MVC wesite's codebehind and client side(javascript).
I need to know if I get support from Microsoft Cloud platform, will I get the solution required in above 3 mentioned points?
And if I get support from Microsoft Cloud, then the coding syntax for SQL, will be same as if I run queries against normal SQL Server database
Thanks,
If I am understanding you correctly in that you are looking to have a cloud hosted SQL database and HTTP access to this database through custom C# code, then yes to all three of these.
You can set up your database as an Azure SQL database and create an ASP.NET WebAPI application to open up your database to HTTP calls as you see fit. Then you can use the REST client of your choice to access your database from your MVC controllers or through Javascript in your views.
Also, yes, SQL syntax for Azure SQL is the same as for regular SQL Server.
I am new to APIs development and have to start building a REST API for the e-commerce website to be built and can be used by 3rd party: mobile app development company.
The eCommerce site is written in C#, ASP.net.
I have read about SOAP, REST, RESTFul on google.
My doubts are :
Where do I start? I have never created any API's before. Please mention the steps to start over.
The REST API is to be used with both Android and iOS mobile app. So, do we have to create a different client application for both?
Do we use some frameworks? If yes, then which frameworks to use?
As the website is written in dot net. Do we use Java or dotnet for REST API development?
What is the best way to create the REST API for mobile apps?
Please help me with my doubts.
Thanks in advance.
Here is Tutorial to build RESTFUL API in .NET.
My knowledge is in ASP.NET so I leave the Java guide for experts in that field.
RESTful API provided by Microsoft - which is called Web API - is a part of ASP.NET MVC, so you should start learning ASP.NET MVC, it's pretty easy for ASP.NET guys to learn ASP.NET MVC.
No, when you developed your Web Service, both iOS and Android would be able to communicate with your Web Service.
For Authentication, you gonna need libraries like Owin.
Since your main website is in .NET and not MVC, you should keep the Web Service files separate, for this, you can put Web Service file in a separate folder on the same host which the main website is, then create a sub domain to access the Web Service. By the way, you can create your Web Service using Java too, since it is separate from the main website, it makes no difference which technology you use.
The best way to create a REST API for a mobile app is if it is done by an expert! ;) There are many tools and frameworks out there that can be used to create RESTful Web Services, each one of them has some pros and cons, I prefer to use the one I know the best, which is Microsoft ASP.NET Web API, you should choose based on your current expertise.
P.S. If you gonna start learning ASP.NET MVC, I recommend to learn ASP.NET Core, which is the latest version of ASP.NET MVC, and is the future of this technology.
I have an existing ASP.NET MVC based website. Very typical: XHTML, CSS, jQuery, C#, LINQ2Sql. Web.config tells app where to connect for SQL database.
Are typical websites like this easy to port to Windows Azure? What sort of headaches should I be ready for if I decided to do this?
It's not necessary at this time, but I'm planning for when I need to get the site ready for scaling. Thanks in advance!
i just found these two links that seem helpful for ASP.NET. Plus two more for SQL Azure.