将ASP.NET页设置为IIS 6 Windows Server 2003
好吧,大家好,我已经停止测试了,因为我无法将我的网页简单地部署到IIS(我开始讨厌它,但我从未能够使它可以在我必须使用的2台不同的计算机上工作).所以我的问题如下:
我有一个页面可以用作数据生成器(进行某种测试),我在远程服务器上工作,所以我对配置没有太多控制.他们有Windows Server 2003,IIS 6,我尝试通过添加新的虚拟目录并指定页面目录来尝试发布网站.我尝试在默认值之外创建一个新网站,但没有进行任何操作.起初,我认为未配置asp.net,因为它试图显示aspx源而不是纯HTML,因此我通过更改站点属性和设置asp版本对其进行了修复,它们分别具有2、2.something和4.something .
我尝试使用也在属性中设置的ip访问该页面,我在服务器ip中使用了我认为应该使用localhost的地址,但是键入localhost给我找不到网页".最初,如果我键入服务器ip,我得到了目录浏览器,因此我尝试打开Default.asp,但随后它说找不到该页面.经过一些调整后,现在突然之间我什至看不到目录.
我创建了新的虚拟目录,将ip设置为服务器目录,打开浏览器,键入ip,它总是告诉我没有默认页面集,并且我在网站的文档"选项卡中明确指定了该页面特性.它有很多选择,我只是添加了Default.aspx而没有运气.尝试默认删除所有这些选项,只是让.aspx不走运,现在我无法浏览目录,无法访问IIS中的默认页面,无法通过本地主机访问,我真的迷路了这里.
我无法进行视觉工作室发布,因为我没有该工具,因此尝试从我的PC远程进行发布,并且发布总是失败.我能做些什么?为什么没有本地主机?先前配置的服务器?如何设置默认页面或再次启用浏览?非常感谢
Ok hi everyone, I''ve reacheda stop in my testing becauseeee I can''t do a simple deploy of my webpage to the IIS (I''m starting to hate it, I''ve never been able to make it work in 2 different computers I''ve had to work with). So my problem is the following:
I have a page that will serve as a data generator (sort of) to do some testing, I''m working on a remote server so I don''t have much control over the config. They have windows server 2003, IIS 6, I''ve tried tutorials to publish my site by adding a new virtual directory and specifying my page directory. I tried creating a new web site outside the default and nothing. At first, I think asp.net was not configured because it was trying to display the aspx source and not plain html so I fixed it by changing the site properties and setting the asp version, they had 2, 2.something and 4.something.
I tried accessing the page with the ip which I set in the properties also, I used the server ip where I think I should be using localhost but typing localhost gives me "the webpage can''t be found". At first, if I typed the server ip I got the directory browser, so I tried to open my Default.asp but then it said it couldn´t find the page. After some tweaks, now all of a sudden I can''t even see the directory.
I create the new virtual directory, I set the ip to the server one, I open my browser, type the ip and it always tells me there''s no default page set and I clearly specified it in the Document tab of the Web site Properties. It had many options, I just added Default.aspx and no luck. Tried removing all those options by default and just leave the .aspx no luck, now I can''t browse directories, can´t access de default page within the IIS, can''t access through localhost, I''m really lost here.
I can''t do a visual studio publish ''cause I don''t have that tool, tried to do it remotely from my pc and the publish fails always. What can I do? why no localhost? previous server configured? how do I set the default page or enable the browsing again? thanks a lot
OK经历了几个问题,但最终使它起作用了.首先,Windows Server的IIS 6带有锁定的Web服务器扩展,其中还包括Active Server Pages.
解锁它们时,我找不到安装在计算机中的asp.net版本,因此,如果根本不存在它们,我就无法解锁它们,因此我必须使用cmd aspregiis重新安装这些asp.net版本. /i,它终于起作用了:)
无论如何,谢谢您的帮助,解决了我自己的问题
OK went through several Issues but finally made it work. First, windows server'' IIS 6 comes with locked webserver extension which includes Active Server Pages as well.
When unlocking them, I couldn´t find the asp.net versions installed in the machine so if they didn''t exist at all, I couldn''t unlock them so I had to reinstall those asp.net versions with the cmd aspregiis /i and it finally worked :)
Thanks anyway for the help, solved my own question