簡體   English   中英

在dnn中找不到(404)錯誤

[英]not found (404) error in dnn

我在cristoc上為dnn創建了一個名為“模塊示例”的模塊,在構建之后,我想發布該模塊。 它在下面顯示了一個錯誤。

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 installpackages.config”和“ Install-Package Newtonsoft.Json”。 在安裝兩個nuget之后,單擊build並釋放該模塊,然后在C:\\inetpub\\wwwroot\\websites\\dnndev.me\\DesktopModules\\Module Example\\install和發行名稱Module_Example_00.00.01_Source發行版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)錯誤也來了。 為什么? 我不明白會發生什么。 請建議我等待回復。 謝謝

我不知道這些組件,但是盡管您正在等待發布包,但我認為生成的包是源包。 然后,它可能不包含相應的生成的程序集。 我建議您打開壓縮文件以驗證是否存在“ Module_Example.dll”。 這個dll是否存在於您的開發環境中? 您的ascx使用“ codebehind”還是“ codefile”? 使用代碼文件模式時,您不需要上載dll,而是上載源文件(vb.net或C#)。 希望對您有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM