如何在服务器上创建一个ASP.Net的工程?(100分相送!♫♫♫♫♫♫♫♫♫)

chinapro 2002-09-16 05:58:30
想在服务器上创建一个ASP.Net工程,供开发团队的人员使用。但在本机(windows 2000 server+sp3)用VS.Net创建服务器(Windows 2000 server + sp3)工程时报如下错误:
The default Web access mode for this project is set to file share,but the project folder at 'http://172.23.224.43/WebApplication2' cannot be opened with the path "\\IBM-SERVER\wwwroot$\webApplication2".The error returned was:
Unable to open Web project 'WebApplication2'.The Web 'WebApplication2' located on server 'http://172.23.224.43' does not exit.
What would you like to do ?
1.Retry using a different file share path
Location: \\IBM-SERVER\wwwroot$\WebApplication2
2.Try to open project with FrontPage Server Extension
3.Work offline
将Location中的机器名改为IP地址则可以创建项目但报如下几个错误:
对话框1
The Web was created successfully,but an error occured when trying to configure the application root for this web.Web projects may not operate correctly without an application root.The returned error was: Active Directory Services cannot find the web server.A possible cause for this is an incopatibility between versions of Internet Information Server(IIS) on the client and the server.The usual cause for this error is creating Web projects on a Windows 2000 or newer server from a Windows NT 4.0 client.
You can manually configure the application root using the Internet Services Manager.

对话框2
Unable to set the permissions on the 'bin' folder to restrict browse access.Active Directory Services cannot find the web server.A possible cause for this is an incapatiblity between versions of IIS on the client and the server.The usual cause for this error is creating web project on Windows 2000 or newer server from a Windows NT 4.0 client.
You can manually restrict browse access to this folder using the Internet Services Manager.

在弹出两个对话框后,项目创建完成。
对自动生成的Webform1.aspx点右键,选择Build and Browse出现如下错误:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

请问那位高人能解决此问题?如果在服务器端创建项目的问题得到解决,其他用户又如何通过VS.Net连接到此创建的项目上?

...全文
49 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
angel_lee 2002-09-18
  • 打赏
  • 举报
回复
iis的设置很重要,楼上说的对:)
zgh_ms 2002-09-17
  • 打赏
  • 举报
回复
感谢您使用微软产品。

这些问题可能是由于很多原因导致的,我们可能需要一定的时间来做排错。

对于第一个问题,建议您检查Windows 2000Server段IIS的配置:

打开IIS控制台,右键点击"Default Web Site"并选择"Properties". 在"Web Site"页面上,请您确认您在"IP Address"下拉框中选择了"(All Unassigned)"选项。


对于后面两个错误信息,很可能是VS.NET使用FrontPage Server Extension时出错,您可以参阅下面的微软知识库文章:

Q320451 PRB: Remote ASP.NET Projects Need IIS on Client Computer
http://support.microsoft.com/support/kb/articles/q320/4/51.asp

同时,您还可以通过下面的微软知识库文章了解更多的这方面的消息:

Q320265 HOW TO: Use File Share Mode for a Share Other Than wwwroot$
http://support.microsoft.com/support/kb/articles/q320/2/65.asp

Q316906 PRB: Error Creating Web Projects with Japanese Characters
http://support.microsoft.com/support/kb/articles/q316/9/06.asp

Q326497 PRB: "Unable to Open" Err Msg If Web Project Is Moved
http://support.microsoft.com/support/kb/articles/q326/4/97.asp

希望对您有所帮助。

-微软全球技术中心 -zgh

本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
Aaron_Lau 2002-09-17
  • 打赏
  • 举报
回复
就在顶部的菜单栏上啊。“文件”“编辑”。。。。。
chinapro 2002-09-17
  • 打赏
  • 举报
回复
DOTNET的“工具”菜单在什么地方?
Aaron_Lau 2002-09-16
  • 打赏
  • 举报
回复
其他用户可以在他们的机器上通过“文件”-》“打开”-》“项目”然后通过网上邻居打开项目便可。其他的用户好像不能用“启用”
Aaron_Lau 2002-09-16
  • 打赏
  • 举报
回复
首先检查你的IIS服务器是否正确,IP 地址设为“全部未设定”,然后检查一下权限是否正确。最后点击DOTNET的“工具”菜单,选择“项目”-》“WEB设置”-》“WEB项目缓存的位置”设为“C:\Documents and Settings\Administrator\VSWebCache”问题应该可以解决。
wenhuayuan 2002-09-16
  • 打赏
  • 举报
回复
直接在你本机创建,然后用vss共享和管理

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧