ASP.NET Linq到SQL的问题

本文关键字:问题 SQL NET Linq ASP | 更新日期: 2023-09-27 18:01:09

这背后的问题是什么我不知道在本地IIS上每件事都能正常工作,但当我将其上传到web服务器时,我遇到了这个问题,我尝试了所有方法,但没有找到任何结果。有人能告诉我为什么它显示所有文件都上传了,包括dbml设计器和cs

http://lotterynext.com/ilp/pub/这是实时错误

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details and
modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'MasterClassDataContext'    
could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 24:  try
Line 25:  {
Line 26:    MasterClassDataContext db = new MasterClassDataContext();
Line 27: 
Line 28:    var qry = from m in db.tblmenus
Source File: d:'home'lotterynext.com'wwwroot'ilp'pub'HomeStyleMaster.Master.cs  Line: 26 

ASP.NET Linq到SQL的问题

检查您是否在.cs文件中使用了正确的using语句

如果是,则说明您的引用dll有问题。将正确的引用dll文件上载到服务器。