Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maharatha"

When I am using the RAD tool to create an entity it's throwing issue in Swagger :

Failed to load API definition.

Any ideas?

Answer

Fixed by commenting :

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

in startup.cs

Answer

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>

Question
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

Works like a charm.. Thank you so much.

Hi -

I am creating a new database for each tenant. I would like to delete the database once the tenant is deleted. Where and what is the best way to implement this ?

Hi -

I have hosted my app on Azure. I have hosted the WebUi and WebAPI on separate servers. I had initially enabled CORS in Azure for WebAPI hosting as result the Chat didn't work. So i completely removed that setting and added the list to the CORS white list in appsetting.

After doing so the Chat functionality started working . When I click on the Tenant Menu at the host login , the tenant doesn't load initially but when you change the Edition Filter and then select Assigned or Not Assigned the tenant grid loads fine. When you move back to All then also it works fine. Below is the error message from Chrome developer tool :

Failed to load <a class="postlink" href="http://xxx.api.yyyy.com/api/services/app/Tenant/GetTenants?Filter=&EditionIdSpecified=false&MaxResultCount=10&SkipCount=0">http://xxx.api.yyyy.com/api/services/ap ... kipCount=0</a>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.yyyy.com' is therefore not allowed access. The response had HTTP status code 400.

<a class="postlink" href="http://xxx.api.yyyy.com">http://xxx.api.yyyy.com</a> : This is the API hosting details

<a class="postlink" href="http://xxx.yyyy.com'">http://xxx.yyyy.com'</a> : This is the WebUi details

Note : This is only happening in the Tenant grid, rest all works fine.

<cite>Kythor: </cite> Now I found this: <a class="postlink" href="https://stapp.space/run-angular-cli-react-cli-aurelia-or-vue-cli-build-in-vsts/">https://stapp.space/run-angular-cli-rea ... d-in-vsts/</a>

So instead of npm, i added a "command line" task with Tool: $(Build.SourcesDirectory)\node_modules.bin\ng.cmd Arguments: build -prod

But when executing the build i get this error: 'D:\a\1\s\node_modules.bin\ng.cmd' is not recognized as an internal or external command, operable program or batch file. Process completed with exit code 1.

However, if I look in my local folder, after using Yarn, the node_modules, folder is present, and there is ng.cmd. Should I just add node_modules in my source control?

I used this method and I was able to deploy Aspnetboilerplate code but not AspnetZero code

I am having the same issue. I tried the above way but doesn't work. Please advise

Question

Hi -

We are planning to use token based authentication using Auth0 or similar provider.

Can you guide how to approach along with the Aspnet zero ?

Showing 171 to 180 of 326 entries