0

私は何時間もこのエラーを修正しようとしてきましたが、できる限りのことを試みましたが成功しませんでした。私はC#を初めて使用します。誰かがこのエラーの解決を開始する方法を特定するのを手伝ってくれるかどうか疑問に思っていましたか?

エラーメッセージ:

Could not load type 'Inventory1.Global'.    W:\admin.fctl.ucf.edu\inventory\Global.asax 1   

Global.asaxの内容:

<%@ Application Codebehind="Global.asax.cs" Inherits="Inventory1.Global" Language="C#"%>

Global.asax.csの内容:

using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;

namespace Inventory1 
{
    /// <summary>
    /// Summary description for Global.
    /// </summary>
    public class Global : System.Web.HttpApplication
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        public Global()
        {
            InitializeComponent();
        }   

        protected void Application_Start(Object sender, EventArgs e)
        {

        }

        protected void Session_Start(Object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(Object sender, EventArgs e)
        {

        }

        protected void Application_EndRequest(Object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(Object sender, EventArgs e)
        {

        }

        protected void Application_Error(Object sender, EventArgs e)
        {

        }

        protected void Session_End(Object sender, EventArgs e)
        {

        }

        protected void Application_End(Object sender, EventArgs e)
        {

        }

        #region Web Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {    
            this.components = new System.ComponentModel.Container();
        }
        #endregion
    }
}
4

1 に答える 1

0

そのコードは私のマシンで動作します。Dllが/binディレクトリに存在することを確認してください。また、binファイルとGlobal.asaxファイルがアプリケーションのルートに存在することを確認してください。サーバーレベルの誰かがIISで何かを変更した可能性は十分にあります。

于 2013-02-27T17:43:43.773 に答える