Base solution for your next web application
Open Closed

Azure Publish Error #5067


User avatar
0
maharatha created
DEBUG 2018-05-03 21:31:32,314 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
FATAL 2018-05-03 21:31:32,970 [1    ] Abp.AbpBootstrapper                      - System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\Plugins'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at Abp.Reflection.AssemblyHelper.GetAllAssembliesInFolder(String folderPath, SearchOption searchOption)
   at Abp.PlugIns.FolderPlugInSource.LoadAssemblies()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Abp.PlugIns.FolderPlugInSource.GetModules()
   at Abp.PlugIns.PlugInSourceExtensions.GetModulesWithAllDependencies(IPlugInSource plugInSource)
   at Abp.PlugIns.PlugInSourceList.<>c.<GetAllModules>b__1_0(IPlugInSource pluginSource)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.&lt;DistinctIterator&gt;d__64`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Abp.PlugIns.PlugInSourceList.GetAllModules()
   at Abp.Modules.AbpModuleManager.FindAllModuleTypes(List`1& plugInModuleTypes)
   at Abp.Modules.AbpModuleManager.LoadAllModules()
   at Abp.Modules.AbpModuleManager.Initialize(Type startupModule)
   at Abp.AbpBootstrapper.Initialize()
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\Plugins'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at Abp.Reflection.AssemblyHelper.GetAllAssembliesInFolder(String folderPath, SearchOption searchOption)
   at Abp.PlugIns.FolderPlugInSource.LoadAssemblies()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Abp.PlugIns.FolderPlugInSource.GetModules()
   at Abp.PlugIns.PlugInSourceExtensions.GetModulesWithAllDependencies(IPlugInSource plugInSource)
   at Abp.PlugIns.PlugInSourceList.<>c.<GetAllModules>b__1_0(IPlugInSource pluginSource)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.&lt;DistinctIterator&gt;d__64`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Abp.PlugIns.PlugInSourceList.GetAllModules()
   at Abp.Modules.AbpModuleManager.FindAllModuleTypes(List`1& plugInModuleTypes)
   at Abp.Modules.AbpModuleManager.LoadAllModules()
   at Abp.Modules.AbpModuleManager.Initialize(Type startupModule)
   at Abp.AbpBootstrapper.Initialize()
FATAL 2018-05-03 21:31:33,064 [1    ] soft.AspNetCore.Hosting.Internal.WebHost - Application startup exception
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\Plugins'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
   at Abp.Reflection.AssemblyHelper.GetAllAssembliesInFolder(String folderPath, SearchOption searchOption)
   at Abp.PlugIns.FolderPlugInSource.LoadAssemblies()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Abp.PlugIns.FolderPlugInSource.GetModules()
   at Abp.PlugIns.PlugInSourceExtensions.GetModulesWithAllDependencies(IPlugInSource plugInSource)
   at Abp.PlugIns.PlugInSourceList.<>c.<GetAllModules>b__1_0(IPlugInSource pluginSource)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.&lt;DistinctIterator&gt;d__64`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Abp.PlugIns.PlugInSourceList.GetAllModules()
   at Abp.Modules.AbpModuleManager.FindAllModuleTypes(List`1& plugInModuleTypes)
   at Abp.Modules.AbpModuleManager.LoadAllModules()
   at Abp.Modules.AbpModuleManager.Initialize(Type startupModule)
   at Abp.AbpBootstrapper.Initialize()
   at Abp.AspNetCore.AbpApplicationBuilderExtensions.InitializeAbp(IApplicationBuilder app)
   at Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app, Action`1 optionsAction)
   at DOCUHOLD.EDRMS.Web.Startup.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter.&lt;&gt;c__DisplayClass3_0.&lt;Configure&gt;b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter.&lt;&gt;c__DisplayClass0_0.&lt;Configure&gt;b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
INFO  2018-05-03 21:31:33,954 [8    ] soft.AspNetCore.Hosting.Internal.WebHost -

Please help


3 Answer(s)
  • User Avatar
    0
    maharatha created

    I did exactly the way it's describe in the document :

    <a class="postlink" href="https://aspnetzero.com/Documents/Step-by-step-publish-to-azure-angular">https://aspnetzero.com/Documents/Step-b ... re-angular</a>

  • User Avatar
    0
    maharatha created

    Fixed by commenting :

    // options.PlugInSources.AddFolder(Path.Combine(_hostingEnvironment.ContentRootPath, "Plugins"));

    in startup.cs

  • User Avatar
    0
    aaron created
    Support Team

    The fix for this will be in v5.4.

    Related issue: https://github.com/aspnetzero/aspnet-zero-core/issues/968