10/10/2018, 10:58
loi webconfig nhờ các anh biết asp.net giúp đỡ
Web asp.net viết bằng visual studio 2008 trên local chạy bình thường nhưng khi upload lên host thì lỗi. Lỗi như thế này sin hỏi giải quyết như thế nào các bạn cảm ơn, Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 49: <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 50: <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 51: <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Line 52: <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Line 53: <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Source File: d:DZHostsLocalUser etbaclieuwww.netbaclieu.somee.comweb.config Line: 51
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 49: <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 50: <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 51: <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Line 52: <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Line 53: <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
Source File: d:DZHostsLocalUser etbaclieuwww.netbaclieu.somee.comweb.config Line: 51
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
Bài liên quan
Nếu ở local chạy tốt thì có lẽ bạn nên dùng chức năng Publish Web Site để xuất trang web, sau đó cứ upload hết thư mục PrecompiledWeb là ổn.
có thể hướng dẫn chi tiết chức năng publish web site để xuất trang website lên không. cảm ơn anh nhiều.
đây là địa chỉ web bị lỗi của em http://netbaclieu.somee.com/
Sở dĩ tui kêu bạn Publish là muốn chắc ăn các file đã được biên dịch đầy đủ và chép vào cùng 1 thư mục, bạn chỉ cần upload thư mục đó lên hosting thôi.
Nhưng bạn chú ý, theo thông báo lỗi thì có liên quan đến namespace CrystalDecisions.Web, vì vậy bạn cần kiểm tra kỹ xem có upload những file thư viện (thường là dll) có liên quan đến CrystalDecisions lên hosting hay chưa.
Cái file mà nó thiếu là CrystalDecisions.Web.dll (cần thiết khi bạn sử dụng CrystalReport)
Chúc bạn thành công.