0

我有一个用 Asp 开发的网络应用程序。net MVC3 并且在我的本地主机环境中运行良好,但是当我在线托管应用程序时,它在很多方面都产生了问题。

例如,我有一个名为Fee Submission的特定页面,当我尝试访问该页面时,会显示以下异常:

在此处输入图像描述

这是其余异常的图像

在此处输入图像描述

以下是我的控制器方法:

// GET: /FeeSubmission
     public ActionResult FeeSubmission()
     {

         return View(niti.getStudentAndFeeDetails());
     }

##

这是 getStudentAndFeeDetails() 方法定义:

##   public List<StudentFeeMapping> getStudentAndFeeDetails()
        {
            log.Info("FeeNiti :: getStudentAndFeeDetails : START");
            var newlist = from n in _dataBase.studentfeemappings
                          select new StudentFeeMapping
                          {
                              AdmissionNumber = n.AdmissionNumber,
                              FatherName = n.studentrecord.guardianrecords.FirstOrDefault().FirstName,
                              Batch = n.studentrecord.classrecord.ClassName + "-" + n.studentrecord.classrecord.Section,
                              FeeName = n.feerecord.FeeName,
                              FeeAmount = n.feerecord.FeeAmount,
                              StudentName = n.studentrecord.FirstName,
                              StudentFeeMappingID = n.StudentFeeMappingID,
                              DiscountAmountinCurrency = (from feeCollectiondateData in _dataBase.feerecords
                                                          where (feeCollectiondateData.CategoryID == n.studentrecord.CategoryID && feeCollectiondateData.discounttype == "Currency")
                                                          select feeCollectiondateData.FeeAmount).FirstOrDefault(),
                              DiscountAmountinPercentage = (from feeCollectiondateData in _dataBase.feerecords
                                                            where (feeCollectiondateData.CategoryID == n.studentrecord.CategoryID && feeCollectiondateData.discounttype == "Percentge")
                                                            select feeCollectiondateData.FeeAmount).FirstOrDefault(),
                              FeeID = n.FeeID,
                              date = n.studentrecord.classrecord.feecollectionrecords.FirstOrDefault().StartDate
                          };
            log.Info("FeeNiti :: getStudentAndFeeDetails : END");
            return newlist.ToList();
        } ##

这里要注意的一点是,我有类似的控制器方法可以正常工作。我正面临着这个方法操作的问题。

4

0 回答 0