2013-02-27 2 views
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 
    } 
} 
+0

MiGusta는 원격 서버 또는 로컬 컴퓨터에서 수정하려고하는이 코드입니다. 또한이 컴퓨터에서 실행 중이거나 디버깅하려는 'W : \'드라이브가 있습니다. 코드를 디버깅 해 봤어? 아니면 코드를 작성하고 시나리오 유형을 실행 중입니까? – MethodMan

+0

원격 서버. 디버깅 중입니다. 내가 뭘 하려는지 Visual Studio에서'재고'프로젝트를 다시 작성하고 오래된 응용 프로그램이 며칠 동안 내려 왔기 때문에 새로운. dll 파일을 만듭니다. 그래서 재 작성하기 위해이 코드를 디버깅해야합니다. 지금 당장이 코드를 작성하려고합니다. 위의 오류는 제가 얻은 유일한 오류입니다. – AnchovyLegend

+0

그렇다면 디버깅을 시도하는 동안 로컬 컴퓨터에서 실행되는 위치는 어디입니까? – CodingGorilla

답변

0

그 코드가 내 컴퓨터에서 작동합니다. Dll이/bin 디렉토리에 있는지 확인하십시오. 또한 bin 및 Global.asax 파일이 응용 프로그램의 루트에 있는지 확인하십시오. 서버 수준의 누군가가 IIS에서 무언가를 변경했을 가능성이 큽니다.

+0

Josh는'IIS에서 무엇인가를 변경했습니다 '라는 말은 OP와 관련하여 가상 디렉토리 경로를 의미합니까? – MethodMan

+0

오래된 .dll에 결함이 있거나 구형이므로 응용 프로그램이 중단됩니다. 새 프로젝트를 만들려고하는데이 문제를 해결하는 좋은 방법은 무엇입니까? – AnchovyLegend

+0

@DJKRAZE - 예. 때로는 devs가 알지 못하는 사이에 경로가 변경되고 더 이상 루트 디렉토리에서 실제로 작업하지 않습니다. – Josh

관련 문제