2010-10-27 93 views
2

我有一个与Web应用程序有点混乱。我在开发环境中工作,现在我试图将它发布到另一个仍在我自己的计算机上的文件夹,所以我的一个同事可以尝试一下,而不必打扰我。于是我去了“Visual Studio”中的“发布”,创建了一个新的“Web应用程序”,然后我在那里发布了应用程序。ASP.NET应用程序部署混乱

但是,应用程序无法正常工作:

Could not load file or assembly 'DkWP2' or one of its dependencies. The system cannot find the file specified. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'DkWP2' or one of its dependencies. The system cannot find the file specified. 

我给看看文件夹结构和文件都是存在的,但它是尴尬一点点:

C:\inetpub\wwwroot\DkWP2App>tree /f 
Folder PATH listing 
Volume serial number is 68B7-8AE3 
C:. 
│ AppConfig.xml 
│ LogoMini.png 
│ DkPService.svc 
│ Web.config 
│ 
├───App_Data 
├───bin 
│ │ AppConfig.xml 
│ │ DkWP2.dll 
│ │ DkWP2.pdb 
│ │ DkWP2.XmlSerializers.dll 
│ │ 
│ ├───css 
│ │ └───GSA1 
│ │  │ jquery-ui-1.8.5.custom.css 
│ │  │ 
│ │  └───Images 
│ │    [jQueryUi Pictures] 
│ │ 
│ ├───Images 
│ │  [Some of the Main pictures] 
│ │ 
│ └───x86 
│  └───Debug 
│    AppConfig.xml 
│    DkWP2.dll 
│    DkWP2.pdb 
│ 
├───css 
│ │ [MainCss Files] 
│ │ 
│ ├───Base 
│ │  [Base Css Files] 
│ │ 
│ └───GSA1 
│  │ jquery-ui-1.8.5.custom.css 
│  │ 
│  └───Images 
│   [jQueryUi Pictures] 
│ 
├───Images 
│  [Main pictures] 
│ 
├───JavaScript 
│  [JS Files] 
│ 
├───Web 
└───Web References 
  • ./bin./bin/x86/Debug中的.dll文件具有不同的 大小。
  • 我试过复制.dll 文件到./但它仍然没有 工作。
  • 该文件夹css出现在././bin中,但与 的内容不同。

ASP.NET在哪里试图找到.dll文件?

如果我在发布时选择“发布”,为什么要有./bin/x86/Debug

亲切的问候。

+0

+1为伟大的插图 – Aliostad 2010-10-27 11:36:02

回答

1

当您下次发布时,打开输出窗口设置为生成输出。这将充满Visual Studio输出的指示,向您显示它正在执行的所有操作。当我缺少DLL引用时,我在那里发现了Visual Studio试图找到缺少的文件的语句。它注意到它查找文件的所有地方。