Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Quản trị Server web IIS, FTP Server (http://quantrinet.com/forum/forumdisplay.php?f=87)
-   -   Fix lỗi " ASP.net Parser Error Message: Could not load type Global_asax" (http://quantrinet.com/forum/showthread.php?t=9552)

hoctinhoc 07-11-2013 02:18 PM

Fix lỗi " ASP.net Parser Error Message: Could not load type Global_asax"
 
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!


:battay:


Bây giờ là 08:13 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.