2015-09-07 13 views
5

VS2013でコードを構築中にコンピュータがクラッシュしました。再起動後、私は、デバッグせずに自分のコードを実行したときにそれが正常に実行されますが、デバッグモードでは、私は次の例外だとき:コンピュータクラッシュ後VS 2013で 'Antlr3.Runtime'アセンブリがロードされない

Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Antlr3.Runtime' could not be loaded.

=== Pre-bind state information === LOG: DisplayName = Antlr3.Runtime (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: Antlr3.Runtime | Domain ID: 2 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///D:/qqq/qqq.Admin/ LOG: Initial PrivatePath = D:\qqq\qqq.Admin\bin

Calling assembly : (Unknown).

LOG: This bind starts in default load context. LOG: Using application configuration file: D:\qqq\qqq.Admin\web.config LOG: Using host configuration file: C:\Users\DevBatch\Documents\IISExpress\config\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/051d9c22/9e0bcfb5/Antlr3.Runtime.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/051d9c22/9e0bcfb5/Antlr3.Runtime/Antlr3.Runtime.DLL. LOG: Attempting download of new URL file:///D:/qqq/qqq.Admin/bin/Antlr3.Runtime.DLL. LOG: Using application configuration file: D:\qqq\qqq.Admin\web.config LOG: Using host configuration file: C:\Users\DevBatch\Documents\IISExpress\config\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ERR: Failed to complete setup of assembly (hr = 0x80070057). Probing terminated.

Stack Trace:

[FileLoadException: Could not load file or assembly 'Antlr3.Runtime' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]

[FileLoadException: Could not load file or assembly 'Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: Could not load file or assembly 'Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +736 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +284 System.Web.Compilation.BuildManager.ExecutePreAppStart() +153 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521

[HttpException (0x80004005): Could not load file or assembly 'Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931916 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

を私は私のR & Dをやってきたし、私が得た最も近いソリューションは、すべてのファイルを削除することです

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\

そしてまた、これらの

C:/Users[username]/AppData/Local/Temp/Temporary ASP.NET Files/

プラスi 'はAntlr3.Runtime' DLLしかし、これまでのところ運をリロードしてきたがクリア。

+0

あなたは 'Framework'でもファイルを削除しようとしましたか? (Framework64ではなく) –

+0

はいすべてのファイルを削除しました.. –

+0

Antlr3.Runtime dll、DotNetOpenAuth.aspnet dll、EntityFramework dllをnugetパッケージ経由で更新しましたが、これまでのところ運がありません –

答えて

1

ここでの唯一の解決策は、新しいプロジェクトを作成し、デバッグで実行して(動作していることを確認して)、すべてのプロジェクトを新しく作成したものにコピーすることです(マージのためにtfsを試すことができます)時間を節約するために)。

この特定のAntlr3.Runtimeが混在しているため、スタジオが粉砕されると、それは台無しになってしまい、再作成できません。これは注意しなければならない問題です。

+0

私もこれを試しました。まだ同じ問題です..でも、私はそれぞれのDLLをnugetパッケージで更新しましたが、これまでのところ運がありません!!! –

+0

最後に、ビジュアルスタジオをアンインストールして再インストールします。 –

0

そのファイル(Antlr3.Runtime.dll)をbinフォルダに手動でコピーしてみてください。

3

私はこの問題に苦労しています.2時間の検索と試しの後、私はここで簡単な解決策を見つけました。

  1. C内のすべてのファイルを削除します:\ WINDOWS \ Microsoft.NET \ Framework64 \ v4.0.30319 ASP.NETの一時ファイル\ルート\
  2. \ C内のすべてのファイルを削除します:\ WINDOWS \ Microsoft.NET \ Frameworkの\ v4.0.30319 \ Temporary ASP.NET Files \ root \
  3. C:/ Users/[ユーザー名]/AppData/Local/Temp/Temporary ASP.NET Files /(存在する場合)をクリアします。
  4. C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files \ vs \のすべてのファイルを削除します。

enter image description here

+0

これは私のために働いた唯一の答えです.. – user1073075

0

私が行うための最善のことは、あなたの一時フォルダをクリアし、プロジェクトのbinフォルダ内のすべてのファイルを削除することで、前にこの問題に直面しました。クリーンソリューションと再構築、タダン!あなたは行くのが良いです:)これは、将来誰かがここで答えを探すのに役立つことを願っています。

関連する問題