用户代码未处理 System.TypeInitializationException HResult=-2146233036 Message=“CloudStorage.DAL.SqlHelper”的类型初始值设定项引发异常。 Source=CloudStorageDAL TypeName=CloudStorage.DAL.SqlHelper StackTrace: 在 CloudStorage.DAL.UserService..ctor() 位置 d:\Desktop\CloudStorage\CloudStorage\CloudStorage\CloudStorageDAL\UserService.cs:行号 17 在 CloudStorage.BLL.UserManager..ctor() 位置 d:\Desktop\CloudStorage\CloudStorage\CloudStorage\CloudStorageBLL\UserManager.cs:行号 16 在 CloudStorage.Controllers.UserController..ctor() 位置 d:\Desktop\CloudStorage\CloudStorage\CloudStorage\CloudStorage\Controllers\UserController.cs:行号 13 InnerException: System.NullReferenceException HResult=-2147467261 Message=未将对象引用设置到对象的实例。 Source=CloudStorageDAL StackTrace: 在 CloudStorage.DAL.SqlHelper..cctor() 位置 d:\Desktop\CloudStorage\CloudStorage\CloudStorage\CloudStorageDAL\SqlHelper.cs:行号 23 InnerException:
求大佬帮忙
UserController.cs:行号 13,13行有空对象
sqlHelper应该是一个类吧,这个不需要实例化一个对象么? 新手,不对请指教