2008/06/20

[KB][SPS2007]Microsoft.Office.Server.Internal.UI.SharedServicesAdminDefaultPage is not allow for this page

出現這個錯誤已經好幾次,都忘記寫下來。

錯誤訊息為:

The base type 'Microsoft.Office.Server.Internal.UI.SharedServicesAdminDefaultPage' is not allow for this page.

This type is not registered as safe.

通常會遇到這個問題都是客製作 default.master 造成的。

先做了客製作之後,再連接至 admin or ssp 網站就會造成。

解決的方式就是

1.先還原 default.master

2.至admin or ssp 網站的 /_catalogs/master ,將 default.aspx 重設網站定義即可。

[FIX][IIS6] The path specified cannot be used at this time

當開啟 Internet Information Service 時,就會出現這個錯誤

 

The path specified cannot be used at this time.

image

 

很奇怪的是,在 EventLog 上 也出現以下的訊息

 

Event Type:    Error
Event Source:    Office SharePoint Server
Event Category:    Office Server 共用服務
Event ID:    6482
Date:        2008/6/20
Time:        上午 10:37:20
User:        N/A
Computer:   
Description:
服務執行個體 Microsoft.Office.Server.Search.Administration.SearchAdminSharedWebServiceInstance (82d1a3e4-bbc4-4589-b114-1e3e49a50237) 的應用程式伺服器管理工作失敗。

原因: The path specified cannot be used at this time. (Exception from HRESULT: 0x80070094)

技術支援詳細資料:
System.Runtime.InteropServices.COMException (0x80070094): The path specified cannot be used at this time. (Exception from HRESULT: 0x80070094)
   at System.DirectoryServices.DirectoryEntry.CommitChanges()
   at Microsoft.SharePoint.Metabase.MetabaseObject.Update()
   at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ApplyIisVirtualDirectorySettings(VirtualDirectory virtualDirectory, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps)
   at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionIisRootVirtualDirectory(WebSite webSite, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps)
   at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, AuthenticationMethods authenticationMethods, String[] authenticationProviders, String path, AccessFlags accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)
   at Microsoft.SharePoint.Administration.SPMetabaseManager.ProvisionIisWebSite(String serverComment, String[] serverBindings, String[] secureBindings, Int32 authenticationMethods, String[] authenticationProviders, String path, Int32 accessFlags, String applicationName, String applicationPoolId, String[] scriptMaps, String sslCertificateSubjectName)
   at Microsoft.Office.Server.Administration.SharedWebServiceInstance.Synchronize()
   at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)

Event Type:    Error
Event Source:    Windows SharePoint Services 3
Event Category:    計時器
Event ID:    6398
Date:        2008/6/20
Time:        上午 10:30:50
User:        N/A
Computer:   
Description:
工作定義 Microsoft.Office.Server.Administration.ApplicationServerAdministrationServiceJob (識別碼 ce316348-a374-4dc2-ad07-e3328c4868ca) 的 Execute 方法發生例外狀況。其他資訊如下。

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

 

我發現微軟有一個 KB 在說明這個問題,並且在右上角提供索取 hotfix 的方法(小熊子大眼睛沒看到,謝謝黑暗大哥)

http://support.microsoft.com/kb/946517

以下是 KB946517 的內容,提供參考

安裝完後, IIS 管理界面就開得起來囉~

================================================================================================================

SYMPTOMS

Consider the following scenario. You have a process that has more than one thread. Additionally, the process uses the Internet Information Services (IIS) Active Directory Service Interfaces (ADSI) provider to access IIS 6.0. Two threads access IIS 6.0 at the same time. In this scenario, you may be unable to manage IIS 6.0 by using Server Manager.
When this problem occurs, you must restart IIS 6.0, or you must restart the process that uses the IIS ADSI provider.
This problem is likely to occur for the SharePoint Timer service (OWSTimer.exe) in Microsoft Office SharePoint Server 2007. When this problem occurs for the SharePoint Timer service, you may experience the following symptoms:


In SharePoint Server 2007, tasks that are scheduled do not run.


On the SharePoint Web front-end server, you see repeated errors in the Application log in Event Viewer. These errors usually include one of the following three events:


Event ID 6398


Event ID 6482


Event ID 7076

For example, you may see an error message that resembles the following:

Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: (964)
Event ID: 6398
Date: 11/7/2007
Time: 5:45:38
PM User: N/A
Computer: 44MOSSAGRUK
Description:
The Execute method of job definition Microsoft.Office.Server.Administration.ApplicationServerAdministrationServiceJob
(ID 02b5e3f2-21e3-4552-bf1d-6e152749458a) threw an exception. More information is included below.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


When you try to manage IIS 6.0 by using Server Manager, you receive a blank page, or you receive the following error message:

the path specified cannot be used at this time

2008/06/05

[KB] 組態檔的 processModel 區段中提供了無效的使用者名稱和 (或) 密碼,所以無法啟動 aspnet_wp.exe 程式

 

事件類型: 錯誤
事件來源: ASP.NET 1.1.4322.0
事件識別碼: 1084
描述:
無法啟動 aspnet_wp.exe。這項失敗的錯誤碼為 80004005。當背景工作處理序帳戶沒有足夠權限讀取 .NET Framework 檔案時就可能會發生這項錯誤。請確定 .NET Framework 安裝正確,而且安裝目錄上的 ACL 允許存取設定的帳戶。

 

事件類型:    錯誤
事件來源:    ASP.NET 1.1.4322.0
事件識別碼:    1007
描述:
由於在組態檔的 processModel 區段中提供了無效的使用者名稱和 (或) 密碼,所以無法啟動 aspnet_wp.exe 程式。

 

我的解決方式為:

  • 開啟 %windir%\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
    找到 <processModel> 確定 userName 是 machine,password 是 AutoGenerate (<==大小寫有分哦)
  • 重新安裝 aspnet
    • 移除ASPNET的帳號
    • 執行 %windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
    • 執行 %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i  (optional)
    • 執行 iisreset

 

可能可以先用 ProcMon 找 aspnet_wp.exe 的 Access Denied 事件