找不到类型或命名空间部署网站时出错

时间:2012-09-20 08:05:04

标签: asp.net sisodb

该网站在本地系统上运行良好,但是当我部署它时,会抛出一个异常:

CS0234: The type or namespace name 'ISisoDatabase' does not exist in the namespace 'SisoDb' (are you missing an assembly reference?) ?
顺便说一句,它是共享主机。

知道为什么会这样吗?

编辑:我使用的是Web Project而不是WebSite,但这个错误消失了,但又抛出了另一个异常:

Could not load file or assembly 'SisoDb, Version=15.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The module was expected to contain an assembly manifest.

已解决:问题是我用来上传dll的 ftp客户端。听起来ftp损坏了dll。当我使用文件管理器添加程序集时,问题已解决

1 个答案:

答案 0 :(得分:0)

问题有时是用于部署文件的 ftp客户端。它们在上传时损坏了文件。尝试使用文件管理器上传文件。