2012-04-12 74 views
0

我正在爲SharePoint Foundation部署創建自定義成員資格提供程序。我已經構建並部署到全局程序集緩存,但在登錄頁嘗試加載時出現錯誤。 我不確定爲什麼找不到簽署的GAC部署的程序集。已部署GAC聲明成員資格提供程序程序集未找到

描述:處理服務此請求所需的配置文件時發生錯誤。請查看下面的具體錯誤細節並適當修改您的配置文件。 任何幫助或方向表示讚賞。

IIS錯誤與融合跟蹤:從組件

Parser Error Message: Could not load file or assembly 'myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d' or one of its dependencies. The system cannot find the file specified. 

Source Error: 

Line 322:  <add name="i" type="Microsoft.SharePoint.Administration.Claims.SPClaimsAuthMembershipProvider, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> 
Line 323:  <add name="ADMembers" 
Line 324:   type="myproviderProvider.myMembershipProvider, myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d" 
Line 325:   connectionStringName="myconn" 
Line 326:   enableSearchMethods="true" 


Source File: C:\inetpub\wwwroot\wss\VirtualDirectories\443\web.config Line: 324 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d' could not be loaded. 


=== Pre-bind state information === 
LOG: User = NT AUTHORITY\IUSR 
LOG: DisplayName = myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d 
(Fully-specified) 
LOG: Appbase = file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/ 
LOG: Initial PrivatePath = C:\inetpub\wwwroot\wss\VirtualDirectories\443\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\inetpub\wwwroot\wss\VirtualDirectories\443\web.config 
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. 
LOG: Post-policy reference: myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/87797408/25d55f52/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/87797408/25d55f52/myprovider/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/bin/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/bin/myprovider/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/_app_bin/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/_app_bin/myprovider/myprovider.DLL. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/87797408/25d55f52/myprovider.EXE. 
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/87797408/25d55f52/myprovider/myprovider.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/bin/myprovider.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/bin/myprovider/myprovider.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/_app_bin/myprovider.EXE. 
LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/443/_app_bin/myprovider/myprovider.EXE. 

GACUTIL列表輸出

-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456 

The Global Assembly Cache contains the following assemblies: 
    myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d, 
processorArchitecture=MSIL 
       SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows Ins 
taller> 

Number of items = 1 

的web.config enrty成員資格提供:

<add name="ADMembers" 
      type="MyClaimsProvider.MyMembershipProvider, myprovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4120f2d354ae484d" 
      connectionStringName="myconn" 
      enableSearchMethods="true" 
      attributeMapUsername="sAMAccountName" /> 

回答

0

你嘗試重置IIS?應用程序池在內存中緩存GAC:ed dll:s,並且需要回收才能加載新的。

+0

我曾嘗試重置IIS併爲此重新啓動。 – 2012-04-13 16:03:36

0

我創建了一個新的項目和設置項目,以.Net 3.5爲目標,並將我的類的源代碼那裏。 (以前的嘗試有針對性的VS 2010的默認網4 到下一個錯誤(我的課將不加載) 但是,這是希望一些愚蠢的錯字的地方。

由於裏卡德爲總是有效的建議。

相關問題