ASP.NET Web应用程序部署

问题描述:


当我在iis localhost下的浏览器中测试我的aspx文件时遇到错误.我首先通过Visual Studio的website-> copy website菜单创建了网站,然后将该文件夹放在iis localhost的www文件夹中作为规则.我得到的错误是我的aspx文件第一行中的语法错误.但是asp.net网站项目可以通过浏览器从Visual Studio中很好地运行.我创建了一个Web应用程序,并且未在localhost中运行,那么它将如何在托管服务器中运行.请解决.

Hi
i get errors when i test my aspx file in my browser under iis localhost.i first created website by visual studio''s website->copy website menu and placed the folder in my iis localhost''s www folder as its rule.the error i get is syntax error in my aspx files first line.but the asp.net website project runs well from visual studio via browser.i created a web application and in not running in localhost then how will it run in hosted server.please solve.

它看起来像是一些配置问题.最基本的原因可能是使用ASP.Net 1.1版而不是2.0版(其中网站是在2.0版中设计的)

使用运行->''inetmgr''
查找托管在"Defualt网站"中的网站.右键单击托管的网站,然后单击属性".

检查是否将应用程序名称分配给网站.
现在,在"ASP.NET"选项卡中,选中"ASP.Net版本".基于websote框架的设计,对其进行更新并保存.

然后重置IIS. (运行->``iisreset'')

希望能有所帮助.

谢谢,
桑迪普.
It looks like some configuration issue. Most basic reason could be using ASP.Net version 1.1 instead of 2.0 (where as website is designed in 2.0)

Use Run -> ''inetmgr''
Find you website hosted in ''Defualt Web Site''. Right click the website hosted and click Properties.

Check if the application Name is assigned to the website.
Now, in ASP.NET tab, check ''ASP.Net version''. Based on the framework websote is designed, update it and save it.

Then reset the IIS. (Run -> ''iisreset'')

Hope that helps.

Thanks,
Sandeep.


谢谢
我有解决方案,但现在我有数据库错误.错误是-
无法打开登录请求的数据库"NationalIdDatabase".登录失败.用户"ONLINEPC \ ASPNET"的登录失败

我如何将sql server 2005用于我的project.server名称已给出-
在我的项目中为localhost \ SQLEXPRESS.??
hi thanks
i got solution but now i got database error.error is-
Cannot open database "NationalIdDatabase" requested by the login. The login failed.Login failed for user ''ONLINEPC\ASPNET''

how can it be i used sql server 2005 for my project.server name was given-
localhost\SQLEXPRESS in my project.??


您能完全告诉我错误的详细信息,以便我解决问题吗?
can you tell me the error details completely so that i can solve the issue