我正在開發ServiceStack
的服務基礎架構(管理面板+ webservices)3.9.71。當我開始開發過程時,沒有錯誤或警告,所有項目都編譯完成並運行。我試圖在Linux上部署應用程序時出現問題:管理控制面板不在此處啓動(mono fastcgi-server4
)。在ServiceStack中缺少類型3.9.71
我備份所有並從解決方案中的所有項目中刪除全部ServiceStack
和ServiceStack Razor
依賴項,然後重新安裝它們。之後,在編譯器日誌中會出現很多錯過類型的警告。我試圖運行應用程序,但它們因錯誤而崩潰。
編譯器日誌如下所列。我使用的是俄語版本Visual Studio 2012 Express
,所以我使用Google翻譯器翻譯的所有郵件。
1>------ Rebuilding all files started: Project: App.Common, Configuration: Debug Any CPU ------
1> App.Common -> d:\projects\app\App.Common\bin\Debug\App.Common.dll
2>------ Rebuilding all files started: Project: App.Models, Configuration: Debug Any CPU ------
3>------ Rebuilding all files started: Project: App.Roles, Configuration: Debug Any CPU ------
2> App.Models -> d:\projects\app\App.Models\bin\Debug\App.Models.dll
3> App.Roles -> d:\projects\app\App.Roles\bin\Debug\App.Roles.dll
4>------ Rebuilding all files started: Project: App.ServiceDTO, Configuration: Debug Any CPU ------
4> App.ServiceDTO -> d:\projects\app\App.ServiceDTO\bin\Debug\App.ServiceDTO.dll
5>------ Rebuilding all files started: Project: App.Services, Configuration: Debug Any CPU ------
6>------ Rebuilding all files started: Project: App.Administration, Configuration: Debug Any CPU ------
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.ServiceInterface.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IService", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.ServiceInterface.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IService", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.ApiMemberAttribute", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
5>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
5> App.Services -> d:\projects\app\App.Services\bin\App.Services.dll
7>------ Rebuilding all files started: Project: App.Tests, Configuration: Debug Any CPU ------
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.ServiceInterface.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IService", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.Common.ServiceModel.MetadataTypesConfig", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Common.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.ApiMemberAttribute", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.ServiceInterface.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IService", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.Razor.3.9.71\lib\net40\ServiceStack.Razor.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.Razor.3.9.71\lib\net40\ServiceStack.Razor.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.Razor.3.9.71\lib\net40\ServiceStack.Razor.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6>d:\projects\app\packages\ServiceStack.Razor.3.9.71\lib\net40\ServiceStack.Razor.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
6> App.Administration -> d:\projects\app\App.Administration\bin\App.Administration.dll
7>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.ServiceInterface.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IService", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
7> App.Tests -> d:\projects\app\App.Tests\bin\Debug\App.Tests.dll
8>------ Rebuilding all files started: Project: App, Configuration: Debug Any CPU ------
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.ServiceHost.IServiceRunner`1", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8>d:\projects\app\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Could not find type "ServiceStack.IO.IVirtualPathProvider", which, according to the link must be defined in "d:\projects\app\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll"
8> App -> d:\projects\app\App\bin\Debug\App.exe
========== Rebuilding all: successful: 8 errors: 0, skipped: 0 ==========
我沒有在其他項目上發現同樣的問題,也是基於ServiceStack 3.9.71,這是我兩個月前開發的。
這解決了這個問題,但是您需要按照相反的順序執行操作,因爲它們的依賴關係 –