如何使用ms sql文件托管ASP.NET网站? [英] How to host ASP.NET website with ms sql file?

查看:78
本文介绍了如何使用ms sql文件托管ASP.NET网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我不是.NET的新手,而是第一次开发和托管网站。



我已经使用visual studio在我的本地机器上为书店创建了一个asp.net网站。



对于后端我创建了ms sql数据库文件(mdf)并在我的网站上使用它。我存储了连接和命令@ web.config。



现在我想在付费服务器上托管我的网站,并且每个人都可以访问! (把它带到网上)



请帮助我如何继续,特别是因为我有数据库文件以及我。



我是否需要在服务器上上传mdf文件并且它的工作方式与我在本地机器项目中的工作方式类似吗?



或者我是否需要使用Web服务器提供程序上的SQL Server?还有什么我需要照顾的吗?



我的网站已准备就绪,它与数据库连接完美无瑕?上传后我需要额外测试吗?



我真的很感激如果你帮助我完成我的工作,虽然对你来说听起来很傻。 />


Plz不要留下其他网站的链接,除非它们真的很有用:)



先谢谢



Rahul

Hello,

I am not new to .NET, but developing & hosting website for 1st time.

I have created an asp.net website for a bookstore, on my local machine using visual studio.

For backend I created ms sql database file (mdf) and used that in my website. I stored connections and commands @ web.config.

Now i want to host my website on a paid server & make is accessible to everyone! (Bring it Online)

Please help me how can I proceed, specially as I have database file as well with me.

Do I need to upload the mdf file as well on server & will it work in similar manner as it is working in my local machine's project?

Or do i need to use the SQL Servers present on the Web Server providers? Anything else i need to take care ?

My Website is ready & it works flawless with db connection? Do i need to test anything extra after uploading it?

I would really really appreciate If you help me in my genuine work, though it sound silly to you.

Plz don't leave links of other websites unless they are really helpful :)

Thanks in Advance

Rahul

推荐答案




这很容易在线部署您的网站。

1>首先是您购买的域名和服务器空间。这是由多个网络托管门户网站提供的,如godady.com,hostgatter.com,Bigrocks.com等。



2>之后,您拥有托管服务器站点提供的用户ID和密码。



3>使用用户ID和密码打开服务器站点的控制面板。



3>之后上传与您网站相关的所有文件和文件夹。



4>用于数据库Web服务器站点也提供sql server数据库空间。



4>数据库附件首先你的crate数据库的备份或脚本文件。





5>在该服务器站点提供恢复备份文件或新查询文件等选项后,如果您有备份文件或脚本文件,请选择一个选项。
成功恢复文件后,


6>现在在同一控制面板上在线复制服务器站点提供的连接字符串。



7>更改网络配置的连接标记。



7>控制面板还提供默认文档选项您要先打开的页面。



8>现在打开您的域名browse和enjoin。
Hi
it is very easy to deploy your website online.
1> First your purchase domain name and sever space.which is provided by multiple of web hosting portal like godady.com,hostgatter.com,Bigrocks.com etc.

2> After that you have userid and password provided by the hosting sever site.

3>Using userid and password open Control Panel of the Server site.

3>After that upload the all the file and folder related to your website.

4>for the database web server site provide sql server database space as well.

4>for database attachment first your crate a backup or scrip file of your database.


5>After that server site provide a option like restore backup file or new query file etc choose one option if your have a backup file or scrip file.

6>after successfully restore file now copy the connection string which is provided by the server site online on the same control panel.

7>Change the connection sting of your web config.

7>Control panel also provide default document option that is which page your want to open first.

8>now open your domain name of browse and enjoin.


上传您的网站你的付费服务器。您的付费服务器可能允许您将数据库添加到其服务器中。如果他们允许,那很好,否则,你可以在服务器的某个地方创建你的数据库,并在web.config中管理你的连接字符串,通过公共IP访问远程服务器的数据库。
Upload your website on your paid server. Your paid server might allow you to add your database into their server. If they allow, its fine, else, you can created your database in server somewhere and manage your connectionstring in web.config to access database of remote server via public ip..


这篇关于如何使用ms sql文件托管ASP.NET网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆