私のウェブサイトを公開するときに奇妙な問題があります。私はこのプロジェクトを継承し、私が到着する前に問題が始まったので、どのような条件が問題の創造につながるかはわかりません。一部のページでウェブサイトが公開されない
基本的に、ウェブサイトプロジェクトの下の3つのフォルダが正しく公開されません。 PrecompiledWebがホストに転送されるとき、これらの3つのフォルダは、Visual Studioプロジェクトから手動で(つまり、公開されたバージョンではなく)ホストにコピーして機能させる必要があります。
パブリッシュ操作の結果が残っている場合は、次のエラーでフォルダの結果の任意のページ:
Server Error in '/' Application. Unable to cast object of type 'System.Web.Compilation.BuildResultNoCompilePage' to type 'System.Web.Compilation.BuildResultCompiledType'. 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.InvalidCastException: Unable to cast object of type 'System.Web.Compilation.BuildResultNoCompilePage' to type 'System.Web.Compilation.BuildResultCompiledType'.
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:
[InvalidCastException: Unable to cast object of type 'System.Web.Compilation.BuildResultNoCompilePage' to type 'System.Web.Compilation.BuildResultCompiledType'.] System.Web.UI.PageParser.GetCompiledPageInstance(VirtualPath virtualPath, String inputFile, HttpContext context) +254
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +171
URLRewrite.URLRewriter.ProcessRequest(HttpContext context) +2183
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +405 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
誰が正しく公開していない、これらのページの原因は何ができるか任意のアイデアを持っていますか?私が見ることができるものは、問題の根本を示すかもしれません。
追加: これは完全にクリーンなビルドであるため、古いbinファイルが横になっていても問題ありません。また、binフォルダ内のアイテムの日付スタンプもチェックしており、最新のものです。
第二に追加: プロジェクトは、もともとウェブサイトではなく、Webアプリケーションとして作成されました。あいまいさを残して申し訳ありません。
完了 - 残念ながら、それはうまくいっていませんでした。また、私はプロジェクトが始まったときに私は周りにいなかったので、私はプロジェクトの種類を制御していませんでした。 –
ScottGuのブログのツールを使用して、WebサイトからWebアプリケーションに簡単に変換できます(またはVS2005 SP1でも可能でしょうか?)。真剣に、これは私がこれらの問題を一般的に解決する方法です! – Sklivvz
私はそれを孤立して試してみるかもしれません - しかし、私たちは一週間ほど離れています。この段階では、他の予期せぬ問題を招く危険は望んでいません。 –