我已被授予内部 IIS 服务器的管理员访问权限,我需要在该服务器上建立一个网站。
在进行任何技术操作之前,我想确保我可以访问服务器,但是当我尝试访问一个简单的页面(不涉及 Sharepoint)时
http://localhost/index.html
当我直接登录到服务器时,我得到了
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%@ Assembly Name="Microsoft.SharePoint"%><%@ Application Language="C#" Inherits="Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication" %>
Source File: /global.asax Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.SharePoint' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET
Version:2.0.50727.5456
老实说,我对 Sharepoint 一无所知,那么为什么我会在基本的“hello world”html 页面上收到 SharePoint 错误?
干杯 :)
更新:我据称已经卸载了 Sharepoint,但仍然收到此错误。欢迎提出任何想法!
答案1
好的,卸载 Sharepoint(我很幸运能够在我所在的服务器上执行此操作)并没有解决问题,我仍然收到相同的错误。因此可以假设服务器安装“处于正确的旧状态”...
但是,在新的端口号上创建新站点(而不是在默认网站上)似乎暂时可以解决问题。
至于默认网站为什么会这样,谁也说不准。我会在原始帖子中更新完整的错误,但不会将此帖子标记为答案,因为它充其量只是一种解决方法,而不是修复方法,如果有人知道如何修复它,那么我就可以省去重新安装的麻烦。谢谢