ASP.NETで運用エラーが起こる原因と解決方法

このQ&Aのポイント
  • ASP.NETで運用している際に表示されるエラーメッセージについて解説します。
  • エラーの場所と原因が特定できず、解決策を見つけることが難しい状況です。
  • 必要なファイルが存在しないため、エラーが発生している可能性があります。
回答を見る
  • ベストアンサー

ASP.NETで運用エラー

ASP.NETで運用していますが、 at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) System.IO.FileNotFoundException System.IO.FileNotFoundException: D:\www\get_aspx_ver.aspx at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) とエラーが表示されます。 場所は『D:\www\get_aspx_ver.aspx』とあるのですが、 その場所には該当のファイルがありません。 どの瞬間にどのような原因で起こっているのか上記のエラーではつかめず、困っています。 もしわかる方がいたら教えてください。 よろしくお願いします。

  • ENTRE
  • お礼率0% (16/2523)

質問者が選んだベストアンサー

  • ベストアンサー
回答No.1

単にGoogleでget_aspx_ver.aspxを検索してみただけ。内容は理解していない http://support.microsoft.com/default.aspx?scid=kb%3Bja%3B825792 http://support.microsoft.com/kb/825792/ja

関連するQ&A

  • ASP.NET2.0 GridViewコントロール

    お世話になります。 Vs2005のASP.NETを学習しております。 現在グリッドビューコントロールに、SQLデータソースコントロールを関連付けて、Oracleデータベースよりテーブルの項目を取得しました。 グリッドビューコントロールはコントロール機能として、更新・削除・追加もコードレスで行えるような仕組みになっているのですが、 更新を行い実行したら、下記のエラーが表示されてしまいました。 '/WebSite4' アプリケーションでサーバー エラーが発生しました。 -------------------------------------------------------------------------------- ORA-12704: キャラクタ・セットが一致しません。 説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳細および例外の発生場所については、スタック トレースを参照してください。 例外の詳細: System.Data.OracleClient.OracleException: ORA-12704: キャラクタ・セットが一致しません。 ソース エラー: 現在の Web 要求の実行中にハンドルされていない例外が生成されました。障害の原因および発生場所に関する情報については、下の例外スタック トレースを使って確認できます。 スタック トレース: [OracleException (0x80131938): ORA-12704: キャラクタ・セットが一致しません。 ] System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc) +166 System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals) +1719 System.Data.OracleClient.OracleCommand.ExecuteNonQueryInternal(Boolean needRowid, OciRowidDescriptor& rowidDescriptor) +503 System.Data.OracleClient.OracleCommand.ExecuteNonQuery() +125 System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +493 System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +915 System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +179 System.Web.UI.WebControls.DetailsView.HandleUpdate(String commandArg, Boolean causesValidation) +1197 System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +545 System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs e) +162 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56 System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source, EventArgs e) +117 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56 System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +107 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +175 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +244 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840 -------------------------------------------------------------------------------- バージョン情報: Microsoft .NET Framework バージョン:2.0.50727.832; ASP.NET バージョン:2.0.50727.832 もしかしたら当たり前のことなのかもしれませんが、私には原因が掴めず困ってしまいました。 何かしらのヒントを教えて頂けたら幸いです。 どうか宜しくお願い致します。

  • ASP.NETでのタイマーの使い方

    C#でWebアプリを作っています ActiveXコントロールで計算スレッドを作成し、定期的に計算結果の画像で System.Web.UI.WebControls.Image を更新したいのですが、タイマイベントのところで ImageMap.ImageUrl = "CalcView.aspx"; (ImageMapがImageで、CalcView.aspxが動的に計算結果画像を返すURLです) としても更新されません。ボタンを用意してクリックイベントで上記を実装すれば更新されます。なにがいけないのでしょうか?よろしくお願いします

  • ASP.NET C# ローカルのパスが呼ばれる

    お世話になります。 サーバはWindows Server2008 IIS6.0で、開発環境がWindows8 Visual Visual Studio 2010です。 サーバ環境にローカルで作成したソースをビルド後、アップロードすると下記エラーにて動作しません。 C:\Users\hoge\Documents\Visual Studio 2010\Projects\project\WebApplication1\index.aspx.cs:120 下記エラーを見ると、ローカルのパスが表示されている点と、 該当の行のSQLコネクション部分が怪しいと思うのですが、原因が全くわかりません。 120行目 if (sqlCon1 != null) sqlCon1.Close(); 恐れ入りますが、お分かりになる方がいらっしゃいましたら、 教えていただけますでしょうか? '/' アプリケーションでサーバー エラーが発生しました。 値を Null にすることはできません。 パラメーター名: String 説明: 現在の Web 要求を実行中に、ハンドルされていない例外が発生しました。エラーに関する詳細および例外の発生場所については、スタック トレースを参照してください。 例外の詳細: System.ArgumentNullException: 値を Null にすることはできません。 パラメーター名: String ソース エラー: 現在の Web 要求の実行中にハンドルされていない例外が生成されました。障害の原因および発生場所に関する情報については、下の例外スタック トレースを使って確認できます。 スタック トレース: [ArgumentNullException: 値を Null にすることはできません。 パラメーター名: String] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12636395 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224 WebApplication1.btn_Click(Object sender, EventArgs e) in C:\Users\hoge\Documents\Visual Studio 2010\Projects\project\WebApplication1\index.aspx.cs:120 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

  • MsgBoxをASP.NETで表示したいのですが・・・WEBなどで検索

    MsgBoxをASP.NETで表示したいのですが・・・WEBなどで検索した内容が理解できずに困っています。 VWD2008を使ってページを作成しています。言語はVB.NETです。 ASP.NETではメッセージボックスを使えないことを承知しています。 ただし手段によって可能ということはこのサイトで知りました。 まだ、初心者でハチャメチャなことを書いてあるかも知れませんがご教示いただけないでしょうか? http://www.atmarkit.co.jp/fdotnet/dotnettips/015confirm/confirm.html このページを参考にしてみたのですが・・・ aspx上に配置したボタンのプロパティにAttributesという項目がありません。 また、 private void Page_Load(object sender, System.EventArgs e) { // ページを初期化するユーザー コードをここに挿入します。 Button1.Attributes["onclick"] = "return confirm('本当に移動しますか?');"; はどこに書いてあげたらいいのでしょうか? よろしくお願いします。 Imports System.IO Imports System.IO.Path Imports System.Text Imports System.Web.UI.HtmlControls Imports System.Diagnostics Imports System.Xml Partial Public Class _Default Inherits System.Web.UI.Page ' ' Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click ' '

  • vb2010にてASPWEBシステムを作成していま

    す。 もともとローカルドライブにソースを置いて開発&デバッグしておりました。 今回、ソースをネットワークドライブに移動しました。 ソースの読み込みは、問題無くできるのですがデバックを行うと下記のメッセージエラーが発生します。 対処法を教えていただけないでしょうか?? セキュリティ例外 説明: このアプリケーションはセキュリティ ポリシーで許可されていない操作を実行しようとしました。このアプリケーションで必要なアクセス許可を取得するには、システム管理者に相談するか、構成ファイルでアプリケーションの信頼レベルを変更してください。 例外の詳細: System.Security.SecurityException: 型 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' のアクセス許可の要求に失敗しました。 ソース エラー: 現在の Web 要求の実行中にハンドルされていない例外が生成されました。障害の原因および発生場所に関する情報については、下の例外スタック トレースを使って確認できます。 スタック トレース: [SecurityException: 型 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' のアクセス許可の要求に失敗しました。] System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0 System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) +98 System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +11 System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +127 System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +228 System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +28 System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +69 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +526 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +896 バージョン情報: Microsoft .NET Framework バージョン:2.0.50727.8000; ASP.NET バージョン:2.0.50727.8001

  • ASP.NETの環境について

    ASP.NETについて、知識が無いので教えてください。 某システムはASP.NET上で動きます。 その同じWEBサーバー上に、新たにxxxx.aspxファイルをおき、 URLにダイレクトで、追加したxxxx.aspxを指定して動かしたいのですが どうしても動きません。 どう動かないのかというと、某システムの初期画面が強制的に表示されてしまいます。 (追加したファイルにalert()など入れてみたのですが、表示しません) このような設定がASP.NETではできるのでしょうか? WEB.configなどで??? どうしてもワンクッション、間に処理を入れて 某システムを動かしたいのです。 何か方法は無いでしょうか? よろしくお願いいたします。

  • Global.asaxが無視される

    ASP.NETでWEBアプリを作っています。言語はVBです。 クエリ文字列つきアドレスを固定アドレスに見せかけるロジックを使いたいと思い、 Global.asaxにそのコードを書きました。 ※ ttp://aaa/details.aspx?A=1&B=2&C=3&D=4&E=5 を、 ttp://aaa/details/1-2-3-4-5 と書いてもアクセスできるような仕組みのことです 開発環境はMicrosoft visual web developer 2008 expressです。 しかし、web developer 2008でデバッグした際にはきちんと動いてくれるのですが、 ソースを本番用のWEBサーバーに置いて details/1-2-3-4-5 アドレスにアクセスすると404エラーとなります。 どこが悪いのでしょうか? 以下、Global.asaxのソースを書きます。 *************** <%@ Application Language="VB" %> <script runat="server"> Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs) Dim curPath As String = Request.Path.ToLower() Dim newPath As String = "" Dim fileArray As Array '拡張子がaspx If (System.IO.Path.GetExtension(curPath) = "") Then Dim fileName As String = System.IO.Path.GetFileNameWithoutExtension(curPath) 'ファイル名取得 Dim fileDir As String = System.IO.Path.GetDirectoryName(curPath) 'ディレクトリ名取得 '分岐させる必要がある場合は、分岐条件を書く fileArray = Split(fileName, "-") If fileArray.Length = 5 Then fileName = "A=" & fileArray(0) & "&B=" & fileArray(1) & "&C=" & fileArray(2) & "&D=" & fileArray(3) & "&E=" & fileArray(4) End If '飛ばし先のパス newPath = String.Format("{0}.aspx?{1}", fileDir, fileName) End If 'ReWrite the URL If (newPath <> "") And InStr(curPath, "index.aspx") = 0 And InStr(curPath, "details.aspx") = 0 Then Context.RewritePath(newPath) End If End Sub </script> *************** よろしくお願いします。

  • asp.NET初心者です。「 ’Context’は’○○○’のメンバで

    asp.NET初心者です。「 ’Context’は’○○○’のメンバではありません。」というエラーが出て困っています。 「Inherits」が原因のようなのですが、役割がいまいち分かりません。 ご教授よろしくお願いします。 【あ.aspx】 1行目:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="answer.aspx.vb" Inherits="○○○" %> ・・・中略・・・ <!-- ヘッダー --> <div id="header"> <h1><%=SiteMap.CurrentNode.Title%>!</h1>  ←sitemapで指定したタイトルをヘッダに表示。 </div> ============================================================= 【Web.siteMap】 <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="def.aspx" title="Welcome" description="homepage"> <siteMapNode url="あ.aspx" title="ようこそ" description="あいう" /> ←何をいれてよいのでしょうか? </siteMapNode> </siteMap> ============================================================= 【Web.config】 <siteMap enabled="true"> <providers> <add name="JaSiteMapProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" /> </providers> </siteMap> ============================================================= よろしくお願いします。

  • WEBサイトの登録のエラー

    時計のwebショップに登録をしたいんですが、よくわからないエラーコードがでます。 何が悪いかわかりますでしょうか? http://www.invictawatch.com/ エラーコード Grow your Wings! Your Invicta account was born to grow with you. As more options are available to you, our Invicta Watch Puppy will notify you. ! System.Web.Services.Protocols.SoapException: Server was unable to process request. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Evs.Framework.Crm.CrmService.Create(BusinessEntity entity) at Register.Create_Customer() in c:\Inetpub\wwwroot\InvictaWebService\App_Code\Register.cs:line 350 at Register.RegisterCustomer() in c:\Inetpub\wwwroot\InvictaWebService\App_Code\Register.cs:line 213 at InvictaService.RegisterCustomer(String sFirstName, String sLastName, String sEmail, String sPassword, Boolean bShip, Int32 iQuestion_ID, String sAnswer, String sBillAddress1, String sBillAddress2, String sBillAddress3, String sBillPhone, String sBillCity, String sBillState, String sBillPostalcode, String sBillCountry, String sShipAddress1, String sShipAddress2, String sShipAddress3, String sShipPhone, String sShipCity, String sShipState, String sShipPostalcode, String sShipCountry, Boolean bAddTheMovementSubscription, String dBirthDate, String bGender) in c:\Inetpub\wwwroot\InvictaWebService\App_Code\InvictaService.cs:line 497

  • 外国のゲームサイトに接続するとエラーになります・・・昨日までは普通にできてたのですが・・・

    外国のゲームサイトに接続するとエラーになります・・・昨日までは普通にできてたのですが・・・こんな文章が出ます。 わかる方いましたら対処法を教えてくださいm(_ _)m Server Error in '/' Application. -------------------------------------------------------------------------------- SQL Server does not exist or access denied. 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.Data.SqlClient.SqlException: SQL Server does not exist or access denied. 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: [SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +566 System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +370 System.Data.SqlClient.SqlConnection.Open() +384 AsiasoftOnlineUtil.AsiasoftMember.GetMemberProfileByLoginID(String loginID, String ipAddress) +64 asiasoft.logon.login1.LoginBtn_ServerClick(Object sender, ImageClickEventArgs e) +288 System.Web.UI.HtmlControls.HtmlInputImage.OnServerClick(ImageClickEventArgs e) +109 System.Web.UI.HtmlControls.HtmlInputImage.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +71 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1319