第一个网站再次帮助! [英] First website help AGAIN!

查看:131
本文介绍了第一个网站再次帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

再见.以前我问过有关部署的问题.

现在我在网站上遇到了问题.

这是一个简单的ASP.NET动态数据Linq to SQL Web应用程序.我遵循了动态数据教程.我为数据做了脚手架.在我的App_Data中,我刚刚创建了一个SQL Server数据库.我觉得这可能是问题所在.我相信它与本地驱动器(而不是服务器)上的SQL Server有关,但是我不知道如何更改它或将其放置在何处.是否将数据库放在IIS7网站区域中或与网站相同的地方?

当我使用IIS7发布网站时,在浏览器中运行该网站时,它会显示除后退箭头图片以外的所有内容,并且不会更新和插入内容.那么对此问题有什么建议吗?

^ _ ^感谢您的帮助!尝试自学内容时,Code Project可以帮助很多人.

更新:
我在IIS管理器中的站点中找到了连接字符串.它显示我的数据库条目类型的连接字符串为Local.如何更改数据库服务器?或如何制作合适的数据库服务器?

Hi again. Previously I asked a question about deploying.

Now I am having problems with the website.

It was a simple ASP.NET Dynamic Data Linq to SQL Web Application. I followed the Dynamic Data tutorials. I did the scaffold thing for my data. In my App_Data, I just created a SQL server Database. I feel like this may the problem. I believe it has to do with the SQL server on my local drive instead of the server, but I don''t know how to change it or where to put it. Do I put the database in the IIS7 website area or the same place as the website?

When I published my site using IIS7, when I run the site in the browser, it shows everything except the back arrow picture and it doesn''t update and insert things. So any advice for this problem?

^_^ Thanks for the help! Code Project helps a bunch when trying to self-learn stuff.

Update:
I found the connection strings in my site in the IIS manager. It shows that the connection string for my database entry type is Local. How do I change my Database server? Or How do I make a proper Database server?

推荐答案

如何更改数据库服务器?或如何制作合适的数据库服务器?

安装Sql服务器.将App_Data数据库附加到Sql Server中.
更改IIS7网站的web.config文件中的连接字符串.
How do I change my Database server? Or How do I make a proper Database server?

Install Sql server. Attach the App_Data database in Sql Server.
Change the connection string in the IIS7 Website''s web.config file.


以下链接可能会帮助您完成安装过程,

[1] 如何:安装SQL Server 2008 R2(安装程序) [如何安装SQL Server 2005-快速指南 [^ ]

[3] 如何:安装SQL Server 2000-基本本地安装 [
Following links might help you to go through the installation process,

[1] How to: Install SQL Server 2008 R2 (Setup)[^]

[2] How to Install SQL Server 2005 - A Quick Guide [^]

[3] HOW TO: Install SQL Server 2000 - Basic Local Installation[^]

Hope it helps :)


这篇关于第一个网站再次帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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