Azure(或任何云托管)上的 ASP.NET Web 表单应用程序

发布于 2024-08-14 12:13:23 字数 277 浏览 7 评论 0原文

这是一个非常模糊的问题,但我正在努力了解云托管所涉及的内容。

举例来说,如果我有一个 ASP.NET Web 应用程序,使用: - 网络表格 - linq 到 sql - 一个sql服务器数据库 - 调用一些外部的 Restful Web 服务

将其托管在云服务上需要做什么?

是否需要进行特定的代码更改?这些是否需要在初始设计中考虑?

在这种类型的设置中可以使用 sql server 和 linq to sql 吗?

什么平台(如果有的话)最适合?

This is a pretty vague question but I'm struggling a bit to get my head around what is involved in cloud hosting.

Say for instance if I had an asp.net web app using:
- Webforms
- linq to sql
- an sql server database
- Calling some external restful webservices

What would need to be done to host it on a cloud service?

Are there specific code changes that would be required and do these need to be considered in the initial design?

Can sql server and linq to sql be used in this type of setup?

What platform if any would be best suited?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

愁杀 2024-08-21 12:13:23

在最基本的形式中,Azure 只是一个高度可用的 Web 托管环境 - 如果您有 ASP.Net Web 应用程序,则可以将其部署到 cloupapp.net,并且它应该可以工作。

要尝试一下,请为自己准备一台 Vista/7 计算机,下载 Azure SDK 和 VS Tools,然后创建一个新的 Azure 应用程序。此时有 2 个主要部分:云项目和 ASP.Net Web 应用程序。 ASP.Net 将与云项目建立“网络角色”关系。顾名思义,它是云应用程序的可视化前端,与访问者进行交互。

此时,您可以将其留在那里 - 这是一个具有良好托管功能的普通 ASP.Net 应用程序。尽管您可能需要考虑 SQL Azure,但您的 SQL 连接字符串应该可以工作。您还可以托管 WCF 服务。

正如 Manoj 指出的那样,Azure 确实有一个不同的编程模型,您可以利用它来生成非常强大的应用程序。 Azure 还具有辅助角色的概念,它与托管服务类似,因为它们无需公共接口即可执行处理。相反,您的网络角色接受请求,将它们放在队列中,然后工作角色拾取它们,处理并发回响应。

这是一个非常强大的系统,我还没有完全探索过,但好消息是您不必立即成为整个系统的专家,但可以创建简单的 ASP.Net 站点作为 Web 角色,部署这些然后从那里扩展。

,非常值得

尝试一下,托比

in it's most basic form, Azure is just a highly available web-hosting environment - if you have an ASP.Net web application, you can deploy it to cloupapp.net and it should work.

To try it out, get yourself a Vista/7 machine, download the Azure SDK and VS Tools, and create a new Azure application. There are 2 main parts at this point, the Cloud project, and an ASP.Net Web Application. The ASP.Net will have a "web-role" relationship with the Cloud project. This is as it sounds, it is the visual front-end to the Cloud application, that interacts with visitors.

You can, at this point, just leave it there - it's a normal ASP.Net application with very good hosting. Your SQL connection strings should work, though you may want to consider SQL Azure. You can also host WCF services.

As Manoj points out, Azure does have a different programming model which you can take advantage to produce very robust applications. Azure also has the concept of Worker Roles, which are similar to Managed Services, in that they perform processing without a public interface. Instead, your web-roles take the requests, place them on the Queues, and the worker-roles then pick them up, process and send back responses.

It's a very powerful system, which I haven't fully explored, but the good news is that you don't have to be an immediate expert in the whole system, but can create simple ASP.Net sites as web-roles, deploy those then expand from there.

Have a go, it's well worth it

Toby

惜醉颜 2024-08-21 12:13:23

AppHarbor 是一个 .NET 平台即服务。我们可以托管您的 ASP.NET 网站,或多或少无需修改,也无需 Visual Studio 插件和 Windows Azure 所需的其他内容。

AppHarbor is a .NET Platform-as-a-Service. We can host your ASP.NET websites more or less un-modified and without the Visual Studio plugins and other crud that Windows Azure requires.

风吹雪碎 2024-08-21 12:13:23

这取决于您正在寻找什么类型的云托管。有一些云托管只会为您提供应用程序数据的空间,例如亚马逊。而Azure为您提供了完整的应用程序框架,支持您的应用程序托管在云中。但云编程与传统 Web 形式的编程范式不同。您将拥有 .Net 框架中的一些可用类,但可以使用更好的可扩展性资源。

您不能在azure应用程序中直接使用sql server。您可以使用哪些SqlAzure 服务。

It depends on what type of cloud hosting are you looking for. There is some cloud hosting which will just give you space for application data like Amazon. While Azure gives you complete application framework which supports your application to be hosted in cloud. But programming in cloud is different programming paradigm than in traditional web form. You will have some limited classes from .Net framework available but better resources for scalability.

You cant directly use sql server in azure application. What you can use SqlAzure services.

对你而言 2024-08-21 12:13:23

只是参考一本我认为可以为您提供答案的书

云计算书籍

编辑:

检查这个微软链接
提升

Just referring a book which i feel would provide you the answer

Cloud Computing Book

EDIT :

Check this microsoft link
Ramp Up

2024-08-21 12:13:23

是的,它受支持,并且 Microsoft azure 网站上提供了 Asp.NET 4.5 Web Forms 的实时演示...您可以访问此链接以获取详细信息
使用成员资格、OAuth 和 SQL 数据库创建安全的 ASP.NET Web 表单应用并将其部署到 Azure 应用服务

yes, it is supported and live demo of Asp.NET 4.5 Web Forms available on Microsoft azure websites... you can visit this link for detailed information
Create and deploy a secure ASP.NET Web Forms app with Membership, OAuth, and SQL Database to Azure App Service

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文