現在、IISExpressとVS2010でローカルにMVC3サイトで作業しています。IIS Expressがハングし、プロセスを終了するまで、アプリは正常に機能しました。
それ以来、IIS Expressを使用してVS2010でサイトを実行すると、このYSoDが取得されます。
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
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.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.VersionResult.SetFailure(ParseFailureKind failure, String argument) +9566207
System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent) +9549261
System.Version.TryParseVersion(String version, VersionResult& result) +135
System.Version.Parse(String input) +68
System.Version..ctor(String version) +23
System.Web.Compilation.CompilationUtil.GetVersionFromVString(String version) +76
System.Web.Compilation.CompilationUtil.CreateCodeDomProviderWithPropertyOptions(Type codeDomProviderType) +116
System.Web.Compilation.CompilationUtil.CreateCodeDomProviderNonPublic(Type codeDomProviderType) +12
System.Web.Compilation.AssemblyBuilder..ctor(CompilationSection compConfig, ICollection referencedAssemblies, CompilerType compilerType, String outputAssemblyName) +366
System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +700
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +40
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +9118854
System.Web.Compilation.BuildManager.CompileGlobalAsax() +44
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +265
[HttpException (0x80004005): Input string was not in a correct format.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +62
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +421
System.Web.Compilation.BuildManager.CallAppInitializeMethod() +31
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +691
[HttpException (0x80004005): Input string was not in a correct format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
スタックトレースはコードの問題を示していないようです。IIS Expressが赤字であり、実際にどこかでコードを台無しにした可能性は十分にありますが、スタックトレース/デバッガーがそれをキャッチすることを期待しています。
誰かがこれを追跡する方法について何かアイデアがありますか?
前もって感謝します :)
編集
VS開発サーバーで試したところ、同じエラーが発生したので、おそらくIISExpressではありません。
編集2
プロジェクトのバージョン(AssemblyInfo.cs内)は次のようになります。
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("One_Page_Booking_Engine")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("One_Page_Booking_Engine")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("287108fb-4a0c-419f-8b35-a3bc0e2f8617")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
編集3:
bin
との内容を削除してobj
、VSを再起動し、PCを再起動してみました。何もありません:(IISを使用してサーバーにサイトを公開して実行しようとしました:まったく同じYSoDを取得します!