For our Aspnet core and Angular2 based application (latest version), we would like to setup three different deployment environments on Azure. 1. QA 2. Staging and 3. Production. Please let us know how we can deploy the applications to Azure. Can you provide us stepwise instructions on how we can deploy this application to Azure ? Secondly , we would like to employ continuous Integration and continuous Deployment to these environments. Please provide your recommendations on how we can achieve this. Especially how we can configure application for (Client and server) for CI/CD to Azure ?
Thanks. Looking forward to your reply urgently.
<cite>bilalhaidar: </cite> Hello I use the same project template.
The way I use it as follows: 1- Run the server-side application (in debug or not in debug doesn't matter) 2- Go to the angular app, on the command go to nswag folder and then type "refresh.bat" 3- The proxies should be generated now
One thing that happens to me is that, I am using VS Code, so every time I run refres.bat, I have to close VS Code and open it again. then I will be able to see all new and updated proxies.
Try it
HTH
==================== Hi. Tried to do your way but getting following error :
1 source, Func
2 predicate)
at NSwag.CodeGeneration.TypeScript.Templates.RequestBodyTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\RequestBodyTemplate.tt:line 2
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.tt:line 50
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.Render() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.Extensions.cs:line 18
at NSwag.CodeGeneration.ClientGeneratorBase3.GenerateFile(SwaggerDocument document, ClientGeneratorOutputType type) in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration\ClientGeneratorBase.cs:line 90 at NSwag.Commands.SwaggerToTypeScriptClientCommand.<<RunAsync>b__100_0>d.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\Commands\SwaggerToTypeScriptClientCommand.cs:line 265 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NSwag.Commands.SwaggerToTypeScriptClientCommand.<RunAsync>d__100.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\Commands\SwaggerToTypeScriptClientCommand.cs:line 256 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NSwag.Commands.SwaggerToTypeScriptClientCommand.<RunAsync>d__99.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\Commands\SwaggerToTypeScriptClientCommand.cs:line 249 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NSwag.Commands.NSwagDocumentBase.<ExecuteAsync>d__28.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\NSwagDocumentBase.cs:line 187 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NSwag.Commands.Document.ExecuteDocumentCommandBase.<ExecuteDocumentAsync>d__5.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\Commands\Document\ExecuteDocumentCommandBase.cs:line 52 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NSwag.Commands.Document.ExecuteDocumentCommandBase.<RunAsync>d__4.MoveNext() in C:\Data\Projects\NSwag\src\NSwag.Commands\Commands\Document\ExecuteDocumentCommandBase.cs:line 39 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NConsole.CommandLineProcessor.<ProcessSingleAsync>d__12.MoveNext() in C:\projects\nconsole\src\NConsole\CommandLineProcessor.cs:line 139 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at NConsole.CommandLineProcessor.<ProcessAsync>d__11.MoveNext() in C:\projects\nconsole\src\NConsole\CommandLineProcessor.cs:line 107 --- End of inner exception stack trace --- at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification)
at NSwag.Commands.NSwagCommandProcessor.Process(String[] args) in C:\Data\Projects\NSwag\src\NSwag.Commands\NSwagCommandProcessor.cs:line 59
---> (Inner Exception #0) System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func
2 predicate)
at NSwag.CodeGeneration.TypeScript.Templates.RequestBodyTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\RequestBodyTemplate.tt:line 2
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.TransformText() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.tt:line 50
at NSwag.CodeGeneration.TypeScript.Templates.AngularClientTemplate.Render() in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration.TypeScript\Templates\AngularClientTemplate.Extensions.cs:line 18
at NSwag.CodeGeneration.ClientGeneratorBase`3.GenerateFile(SwaggerDocument document, ClientGeneratorOutputType type) in C:\Data\Projects\NSwag\src\NSwag.CodeGeneration\ClientGeneratorBase.cs:line 90
at NSwag.Commands.SwaggerToTypeScriptClientCommand.<We are using ASP.NET Core and Angular 2 template for our application. Unable to generate service proxies . After running swagger we are able to see the API , but the method proxy is not generated in the serviceproxy.ts file after executing refresh.bat in nswag folder. Really stuck at this critical time . Please help !!!! Unable to locate error in the Logs.txt file .
We have a multi-tenant angular1.X and mvc application .
Problem that we are facing is “If different users are logged in as admin for different tenants on separate machines, then the data for one tenant is shown to other tenant.”
We have tried clearing Cache etc. However the data still spills over into another tenant.
Do not have an idea as to why this is happening.
Please advise
There seems to be a problem with the generated migrations file. The up method is actually dropping the objects and down method is creating objects. Hence every time we do update database we get the error "Cannot drop the table 'XXXX', because it does not exist or you do not have permission."
When we switched the method names , db update has started working fine. This has happened on two different machines. So this is definitely a bug.
We are using the asp.net core and angular 2.X template for our application. We are having many issues with code-first migrations. Whenever we make any changes to the models in the core project , and add migrations, either the migrations run but changes are not reflected completely. We then delete the migrations history and migration files and try again . But the framework simply generates empty migrations.
Is this a bug in the framework that is leading to unstable behavior ? Please suggest workaround for this. Its become very tedious to delete migrations every time and try regenerating them.
Thanks
We are thinking of using MongoDB as backend for one of our applications. This application will utilize aspnetzero's Core and Angular 2.x template. We would like to host it on Linux or Mac (On-Premise) as well for some of the customers apart from Windows. That is the reason for choice of MongoDB. However i read in one of your Jan 2017 replies that your framework does not support MongoDB fully . Please let me know if there are any updates in this regard. Should we safely use MongoDB as backend or consider some other DB option. Will MongoDB work well with Windows as well ?
These decisions are critical for us as we decide the architecture of our application. Please reply at length asap.
Thanks
ABP Version 3.0 Angular 1x.... and MVC5.
We get internal server error or the yellow Runtime Error page. This happens when a page is left unattended for some time and we refresh it.
Why does our web application throw a runtime error when a page is not in use for some time ? If we refresh we get runtime error. Whereas it should redirect to login page as the user session has expired. We tried changing the session timeout in web.config, but it does not help.
Please provide us way to redirect to login page when session timeout happens.
I Understand. However , our web application is hosted on azure . Shared space. As such we do not have access to the server where these DB's are located . That is the reason we need to automate this process through code.