Web Developer 2008中创建的网站未在IIS 5.1上运行 [英] Website made in Web Developer 2008 is not running on IIS 5.1

查看:54
本文介绍了Web Developer 2008中创建的网站未在IIS 5.1上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我使用Web开发人员和SQL Express 2k8创建了一个网站,后来我切换到了SQL Enterprise版本10,我只是对machine.config文件进行了小改动,并且网站运行平稳,但是我尝试使用IIS 5.1运行该网站,这给了我出现以下错误

SQLExpress数据库文件自动创建错误:

连接字符串使用应用程序App_Data目录中的数据库位置指定本地Sql Server Express实例.提供者尝试自动创建应用程序服务数据库,因为提供者确定该数据库不存在.要成功检查应用程序服务数据库的存在并自动创建应用程序服务数据库,必须满足以下配置要求:......

bcoz是我已经使用.NET 3.5制作了网站,而IIS却是2.0版了吗?

在此先感谢

Hello there,

I made a website using Web developer and SQL Express 2k8, later i Switched to SQL Enterprise edition ten i just made a littele change in machine.config file and website was runing smoothly but wen i tried to run the website using IIS 5.1 it gives me following error

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:......

is it bcoz i have made website using .NET 3.5 and my IIS have 2.0??

Thanks in advance

推荐答案

这里有个主意-为什么不安装.Net 3.5并查看是否可以解决此问题...但是,听起来对我来说更像是SQLServer错误.

您是否将连接字符串中指定的数据库上载到服务器?

顺便说一句,创建一个Web服务并使用它而不是使用从网页直接连接到您的数据库会更好吗?
Here''s an idea - why don''t you install .Net 3.5 and see if that fixes it... However, that sounds more like a SQLServer error to me.

Did you upload the database specified in the connection string to the server?

BTW, wouldn''t it be better to create a web service and use that instead of using a direct connection to your database from the web page?


除了解决方案之外,还提供了其他解决方案John,请看一下此讨论.
In addition to the solution what is given by John, take a look at this discussion.Is possible to work with IIS 5.1 and .NET Framework 3.5?[^]


谢谢大家,最后是在IIs上运行

对于上述问题,我将machine.config文件中的用户实例更改为false,然后解决了该问题,但是iis显示了新错误

MACHINENAME \ ASPNET登录失败:---

为此,我在SQL Server中创建了一个用户帐户并授予了一些权限,然后......我是一个自由人..:D

如果有人遇到同样的问题,将很无助..

再次感谢你们的时间:)
Thanks Everyone,Finally it is running on the IIs

For that above problem i changed the user instance in machine.config file to false then that problem was solved but then iis was showing a new error

login failed for MACHINENAME\ASPNET:---

For that i created a user account in SQL server and Granted some permission and ......then i was a free man.. :D

would be haapy to assist if anyone having same kind of problem..

once again Thanks Guys for your time :)


这篇关于Web Developer 2008中创建的网站未在IIS 5.1上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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