2013-12-18 58 views
0

我在cristoc上为dnn创建了一个名为“Module Example”的模块,并且在构建完成后我想让该模块释放。它在下面给我显示一个错误。在dnn中找不到(404)错误

Error 2 The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly C:\inetpub\wwwroot\websites\dnndev.me\DesktopModules\Module Example\\packages\MSBuildTasks.1.4.0.61\tools\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\inetpub\wwwroot\websites\dnndev.me\DesktopModules\Module Example\packages\MSBuildTasks.1.4.0.61\tools\MSBuild.Community.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. 

然后,我必须尝试一些掘金安装像“的NuGet安装packages.config”和“安装,包Newtonsoft.Json”。安装完这两个nuget之后,点击build并释放该模块并释放已成功创建的C:\inetpub\wwwroot\websites\dnndev.me\DesktopModules\Module Example\install,并释放名称Module_Example_00.00.01_Source它是一个zip文件夹。之后,在dnn环境下安装此模块,我打开我的dnn站点“dnndev.me”,登录后,将鼠标悬停在主机上,然后单击扩展,然后单击安装扩展按钮并浏览文件夹的位置,然后单击点击“下一步”按钮。但之后,安装此模块时会发生错误。

Failure  File specified in the dnn could not be found in the zip file: - C:\inetpub\wwwroot\websites\dnndev.me\Install\Temp\1cjkvd5v\bin\Module_Example.dll 

而我的DNN环境Not found(404)错误也来了。为什么?我不明白发生了什么事。请建议我等待回复。谢谢

回答

0

我不知道这些组件,但我认为生成的软件包是一个源代码软件包,尽管您正等待发布软件包。 然后,它可能不包含相应的生成程序集。我建议你打开zip来验证“Module_Example.dll”的存在。 这个DLL是否存在于你的开发环境中?你的ascx使用“代码隐藏”还是“代码文件”?使用代码文件模式,您不需要上传该dll,而是上传源文件(vb.net或C#)。 我希望它可以帮助你。