查看完整版本: 請懂SCVMM DDCT 以及WCF的高手請進
頁: [1]

編號ㄚ弦 發表於 2011-12-13 11:33 PM

請懂SCVMM DDCT 以及WCF的高手請進

我的情況是我從http://archive.msdn.microsoft.com/ddc/Release/ProjectReleases.aspx?ReleaseId=5127下載Dynamic Data Center Toolkit v3這個工具包
然後我只用到
Microsoft.Hosting.FaultContracts
Microsoft.Hosting.Management
Microsoft.Hosting.VirtualMachineManagement.DataContracts
Microsoft.Hosting.VirtualMachineManagement.ServiceContracts
Microsoft.Hosting.VirtualMachineManagement.ServiceHost
Microsoft.Hosting.VirtualMachineManagement.ServiceImplementation

這六個資料夾


我開VS2010並且新增Console專案



,開完之後專案名稱與方案名稱,

接下來我將Microsoft.Hosting那六個資料夾 全部複製到Console方案裡面,

複製完後,將VS裡面Console_1213方案一一加入現有專案,詳細過程如


一一加入後如,加入後全部建置。

再來加入服務參考,再按探索,結果,探索過程如,顯示錯誤結果如




錯誤的詳細資料:
==========================================================================


下載 http://localhost:51666/VirtualMachineManagementService.svc 時發生錯誤。
要求失敗,錯誤訊息為:
--
<html>
    <head>
        <title>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>'/' 應用程式中發生伺服器錯誤。<hr width=100% size=1 color=silver></H1>

            <h2> <i>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> 描述: </b>在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

            <br><br>

            <b> 例外詳細資訊: </b>System.BadImageFormatException: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。<br><br>

            <b>原始程式錯誤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>組件載入追蹤:</b> 下列資訊在確定為何無法載入組件 'ManagedCertificateHelper' 時是有幫助的。<br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

警告: 組件繫結記錄切換為 OFF。
若要記錄組件繫結失敗,請將登錄值 (DWORD) 設為 1。
注意: 與組件繫結失敗記錄相關的效能會有部分負面影響。
若要關閉此功能,請移除登錄值 。
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <b>堆疊追蹤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>


   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46


   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591


   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9013676
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>版本資訊:</b>?Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1

            </font>

    </body>
</html>
<!--
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   於 System.Reflection.Assembly.Load(String assemblyString)
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   於 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   於 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   於 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   於 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   於 System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   於 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--.
中繼資料包含無法解析的參照: 'http://localhost:51666/VirtualMachineManagementService.svc'。
回應訊息的內容類型 text/html; charset=utf-8 與繫結 (application/soap+xml; charset=utf-8) 的內容類型不符。若使用自訂編碼器,請確認已正確實作 IsContentTypeSupported 方法。回應的前 1024 個位元組為: '<html>
    <head>
        <title>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>'/' 應用程式中發?'。
遠端伺服器傳回一個錯誤: (500) 內部伺服器錯誤。
如果目前方案中有定義該服務,請嘗試建置這個方案,並再次將該服務加入服務參考中。



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

然後我每次加入服務參考結果出現的錯誤都不一樣,很奇怪。

有時候亦會出現不一樣的錯誤詳細資料如下:

==============錯誤詳細資訊2============================================================

下載http://localhost:51666/VirtualMachineManagementService.svc 時發生錯誤。
要求失敗,錯誤訊息為:
--
<html>
    <head>
        <title>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>'/' 應用程式中發生伺服器錯誤。<hr width=100% size=1 color=silver></H1>

            <h2> <i>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> 描述: </b>在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

            <br><br>

            <b> 例外詳細資訊: </b>System.BadImageFormatException: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。<br><br>

            <b>原始程式錯誤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>組件載入追蹤:</b> 下列資訊在確定為何無法載入組件 'ManagedCertificateHelper' 時是有幫助的。<br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

警告: 組件繫結記錄切換為 OFF。
若要記錄組件繫結失敗,請將登錄值 (DWORD) 設為 1。
注意: 與組件繫結失敗記錄相關的效能會有部分負面影響。
若要關閉此功能,請移除登錄值 。
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <b>堆疊追蹤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>


   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46


   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591


   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9013676
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>版本資訊:</b>?Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1

            </font>

    </body>
</html>
<!--
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   於 System.Reflection.Assembly.Load(String assemblyString)
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   於 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   於 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   於 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   於 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   於 System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   於 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--.
中繼資料包含無法解析的參照: 'http://localhost:51666/VirtualMachineManagementService.svc'。
接收 http://localhost:51666/VirtualMachineManagementService.svc 的 HTTP 回應時發生錯誤。這可能是因為服務端點繫結未使用 HTTP 通訊協定所造成。也可能是伺服器中止 HTTP 要求內容 (可能因服務關閉) 所造成。如需詳細資訊,請參閱伺服器記錄檔。
基礎連接已關閉: 接收時發生未預期的錯誤。
無法從傳輸連接讀取資料: 遠端主機已強制關閉一個現存的連線。。
遠端主機已強制關閉一個現存的連線。
如果目前方案中有定義該服務,請嘗試建置這個方案,並再次將該服務加入服務參考中。




========================錯誤詳細資訊3==================================================

下載 http://localhost:51666/VirtualMachineManagementService.svc 時發生錯誤。
要求失敗,錯誤訊息為:
--
<html>
    <head>
        <title>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>'/' 應用程式中發生伺服器錯誤。<hr width=100% size=1 color=silver></H1>

            <h2> <i>無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> 描述: </b>在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

            <br><br>

            <b> 例外詳細資訊: </b>System.BadImageFormatException: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。<br><br>

            <b>原始程式錯誤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>組件載入追蹤:</b> 下列資訊在確定為何無法載入組件 'ManagedCertificateHelper' 時是有幫助的。<br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

警告: 組件繫結記錄切換為 OFF。
若要記錄組件繫結失敗,請將登錄值 (DWORD) 設為 1。
注意: 與組件繫結失敗記錄相關的效能會有部分負面影響。
若要關閉此功能,請移除登錄值 。
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <b>堆疊追蹤:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>


   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46


   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591


   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9013676
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>版本資訊:</b>?Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1

            </font>

    </body>
</html>
<!--
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   於 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   於 System.Reflection.Assembly.Load(String assemblyString)
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   於 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   於 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   於 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   於 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   於 System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   於 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
: 無法載入檔案或組件 'ManagedCertificateHelper' 或其相依性的其中之一。 試圖載入格式錯誤的程式。
   於 System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   於 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--.
中繼資料包含無法解析的參照: 'http://localhost:51666/VirtualMachineManagementService.svc'。
接收 http://localhost:51666/VirtualMachineManagementService.svc 的 HTTP 回應時發生錯誤。這可能是因為服務端點繫結未使用 HTTP 通訊協定所造成。也可能是伺服器中止 HTTP 要求內容 (可能因服務關閉) 所造成。如需詳細資訊,請參閱伺服器記錄檔。
基礎連接已關閉: 接收時發生未預期的錯誤。
無法從傳輸連接讀取資料: 連線已被您主機上的軟體中止。。
連線已被您主機上的軟體中止。
如果目前方案中有定義該服務,請嘗試建置這個方案,並再次將該服務加入服務參考中。


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


跪求希望能有高手幫忙解決.....感激不盡Orz......<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>

cupid791223 發表於 2012-1-30 03:45 PM

想說要來幫你解決的,可是一點進來就出現下載附件扣積分的提示,所以我又按上一頁了....
頁: [1]