小编Ted*_*ddy的帖子

C# - 我无法引用HttpPostedFileBase

我在CSLA的分布式环境中使用MVC .NET,我可以从我的一个Web层(例如Website.MVC)引用HttpPostedFileBase ,但我不能从单独的层引用HttpPostedFileBase(我们称之为OtherLayer.Web).

关于我需要做什么才能调用HttpPostedFileBase的任何想法?我可以在两个层中使用HttpPostedFile - 我应该只使用它吗?

程序集引用基本相同 - 在Website.MVC中我有:

namespace Website.Mvc.Controllers
{
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using System.Web.Mvc;
  using System.Web;
  using System.IO;
  using PetOrganizer.Mvc.Helpers;
  using TrupanionPetInsurance.Web;
Run Code Online (Sandbox Code Playgroud)

而在我的另一层我有:

namespace OtherLayer.Web
{
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using System.Collections.Specialized;
  using System.Data;
  using System.Data.SqlClient;
  using System.IO;
  using System.Net.Mail;
  using System.Text;
  using System.Text.RegularExpressions; 
  using System.Web;
  using System.Web.Mvc;
  using System.Web.Security;
  using System.Xml;
  using System.Xml.Serialization;
  using Csla;
  using iTextSharp.text;
  using iTextSharp.text.pdf;
  using TruDat.BusinessLayer;
  using TruDat.BusinessLayer.Billing;
  using TruDat.BusinessLayer.Data;
  using TruDat.BusinessLayer.Utility; …
Run Code Online (Sandbox Code Playgroud)

c# model-view-controller upload file httppostedfile

11
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

file ×1

httppostedfile ×1

model-view-controller ×1

upload ×1