Diễn đàn    Các Projects Dotnetnuke (DNN)    Error khi dùng Namspace trên dnn 5.4.2

Thành viênTrả lời
thanhnv


7  bài
25-6-2010 9:31:44
Tình hình là em thử viết 1 module thực hiện các phép toán +,-,*,/. Khi add vô dnn thì chạy ok. Nhưng khi mình chỉnh code behind để thêm dòng Namespace Pheptoan thì code lại báo lỗi là: Error: Pheptoan is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'Pheptoan.UcOperation'. ---> System.Web.HttpParseException: Could not load type 'Pheptoan.UcOperation'. ---> System.Web.HttpParseException: Could not load type 'Pheptoan.UcOperation'. ---> System.Web.HttpException: Could not load type 'Pheptoan.UcOperation'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError).....

Mong các bác xem giúp em lỗi này, em cũng mới tập tò tìm hiển dnn nên còn gà lắm.
 
thanhnv


7  bài
26-6-2010 9:13:50
Mấy bác cao thủ của forum đâu hết rồi?? bác aspnet ơi
 
quangvd


102  bài
26-6-2010 22:38:55
Namespace ở file ascx khác trong file cs chứ sao
 
thanhnv


7  bài
28-6-2010 8:46:35
Namespace ở file ascx khác trong file cs chứ sao


Vậy hướng giải quyết thế nào vậy bác? Em viết bằng vb.
 
quangvd


102  bài
28-6-2010 9:19:54
Trong file ascx
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Pheptoan.UcOperation" %>

Trong file .cs
namespace Pheptoan
{
public partial class UcOperation: DotNetNuke.Entities.Modules.PortalModuleBase
{
 
thanhnv


7  bài
28-6-2010 11:55:1
Trong file ascx
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Pheptoan.UcOperation" %>

Trong file .cs
namespace Pheptoan
{
public partial class UcOperation: DotNetNuke.Entities.Modules.PortalModuleBase
{


Mình up code lên, bác down về kiểm tra giùm. Em đã làm giống như thế mà vẫn ko được.
http://www.mediafire.com/?ktej4uyzyoz
 
aspnet

Lập trình không biên giới
608  bài
28-6-2010 23:27:56
cái này chưa dịch ra file dll nên nó chết, khi cho thêm namespace vào nó đọc theo file dll chứ không đọc = code behind nữa. Thế thôi, cố làm sao tìm cho ra file Pheptoan.dll là nó chạy ngon lành
---
Coding for food
http://yenbai.awas.vn
http://tknd.vn
http://coder.awas.vn
http://awas.vn
http://bieuquyet.vn
http://webhocsinh.com
 
thanhnv


7  bài
29-6-2010 8:17:7
Cái Pheptoan.dll thì có rồi bác à. Em đã tìm ra cách giải quyết. Cũng như vậy nhưng trên C# thì chạy rào rào. Nhưng trên VB thì phải cấu hình lại thêm một tí.
 

Chủ đề gần đây :

Cùng loại :

Tên file Mô tả chi tiết Ngày
NWeb.zip (1) Module đơn giản Newsweb trên Dotnetnuke v10.x.x.x10/18/2025 8:08:11 AM
vspforum.zip (11) Ma nguon vspforum ngay xua4/18/2023 6:38:37 AM
pdfjs.rar (2) pdfjs 2017 : hiển thị tốt trên iphone 11, 12, 13 không lỗi, bản 2012 sẽ lỗi trên iphone6/21/2022 11:52:48 AM
pdfjs2.rar (2) Xem file pdf bằng viewer.hml cua pdfjs (thư viện chuẩn mozilla) 2012. https://mozilla.github.io/pdf.js/getting_started/#download có thể download bản prebuild tại đây6/21/2022 11:52:04 AM
runner.zip (0) using three.js, orbitcontrol to view an object move random on map. Di chuyển 1 đồ vật ngẫu nhiên trên bản đồ, sử dụng với demo nhân viên di chuyển trong văn phòng. Toàn js download về là chạy12/5/2019 5:55:14 PM
gmap.zip (1) google map + marker7/17/2019 2:25:05 PM
vinsmarthomeservice.zip (1) java post json to api, use AsyncTask, event listener7/9/2019 5:00:10 PM
fblogin.zip (0) Login facebook bang javascript SDK7/9/2019 9:16:37 AM
autocomplete-location.zip (2) autocomplete location geo from google place, html + js7/4/2019 4:37:55 PM
WebAPI.zip (8) api for android access db (v1.0.0)7/4/2019 9:14:17 AM