Fix lỗi " ASP.net Parser Error Message: Could not load type Global_asax"
Đôi khi bạn bị lỗi load file: Global_asax, với các lỗi như sau:
Lỗi 1:
Trích dẫn:
|
Parser Error Message: Could not load type 'evaluation.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="evaluation.Global" %>
Source File: D:\projects\evaluation\web\global.asax Line: 1
|
Lỗi 2:
Trích dẫn:
|
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebService.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="WebService.Global" Language="C#" %>
Source File: /global.asax Line: 1
|
In my case I solved the problem in changing the build output path from bin\x68\Debug to : bin
hope this helps anyone
Lỗi 3:
Trích dẫn:
|
Parser Error Message: Could not load type 'WebApp1.Global_asax'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="WebApp1.Global_asax" Language="vb" %>
|
Cách fix lổi:
1. bạn có thể chuyển đổi kiểu Application Pool từ Intergrates sang Classic
---> IIS --> Application Pool --> Chuyển application mà website đang chạy tự Intergrates sang Classic
2. Phần quyền cho everyone có quyền đọc, ghi trong thư mục source web
3. tham khảo giải pháp
In my case I solved the problem in changing the build output path from bin\x68\Debug to : bin
hope this helps anyone
Chúc các bạn thành công!