Could I do this as a background job on Startup? Would it then be able to use EF?
No, I tried that first and could not get it to work. Same problem as with the attribute (which I tried next).
I also have this problem. Is there ever going to be an answer on this?
error NG8004: No pipe found with name 'localize'.
@ismcagdas ???
I dont think you can do this with git merge. The problem is that the code (existing code and latest ASP.NET Zero version) is in two separate repos (locations). So better to use a tool like Beyond Compare for the merge.
PS following the steps fro "New Projects" after the steps for "Existing Projects" makes no sense at all. The aspnetzero branch already has the version of ASP.NET Zero we are trying to upgrade to in it. We branched from master to dev and then to aspnetzero. So in "Existing Projects" instructions we put the latest version of ASP.NET Zero there. Hence that is what is in the aspnetzero branch.
Hence following the "New Project" instructions now means we are just doing "git merge aspnetzero" on the dev branch. That does nothing.
Hi this is still not clear to me. Like with amrsaafan I have just found that your instuctions on here do not work: https://docs.aspnetzero.com/en/common/latest/Version-Updating#new-projects.
We have an existing project so we should follow the "Existing Projects" instructions.
But it says the following:
OOOOPS, step 3 is just going to clobber the code in the migrate branch - completely ovwerwrite it and so no merge will happen. The damage is done.
Then ismcagdas says "Sorry about the confusion. Yes, this is correct. After this step, you need to follow the New Project Instuctions". Ummm no - that does not make sense at all.
Can we start with the "Existing Project" instructions. From the step "Copy your existing code into migrate branch" - nothing is right with the instructions ... can we get the correct set of instructions please?
Duhh - ahh yes, of course. Many thanks!
Ahh - you are right! Many thanks. I have fixed it now,
I see in asp.net zero you have this:
public IActionResult Index()
{
if (_webHostEnvironment.IsDevelopment())
{
return RedirectToAction("Index", "Ui");
}
return Redirect("/index.html");
}
Considering there is no index.html - why do you have this for production?
In my webapp that works it is just:
public IActionResult Index()
{
return RedirectToAction("Index", "Ui");
}
No I have not deployed then under the same website. I cannot see that web.config above (This site can’t be reached). My database is created properly. I can connect to the database fromy my local instance (Visual Studio) perfectly fine. In Azure it says the database connection is fine. All EF migrations are done.
As per my other ASP.NET Zero project (www.enduroframe.net) I have the API deployed to an App Service and my Client Angular Website deployed to Azure Storage.
When I go to https://cc-api-svc-p-aue.azurewebsites.net I get error code 404. I expect to see the tenancy logon. But this website works perfectly, locally, from Visual Studio. So why is it not working in Azure. The Microsoft Support people are telling me it is an application error.
For my other website when I go to https://ef-hubapi-svc-t-aue.azurewebsites.net/ I get the tenancy logon. This is what I want for https://cc-api-svc-p-aue.azurewebsites.net. They are deployed in exactly the same way - with the same azure build pipelines.
What "generated Log file" are yo talking about?
Here is my web.config
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <!-- 200 MB in kilobytes --> <httpRuntime maxRequestLength="200000" executionTimeout="7200" /> </system.web> <system.webServer> <handlers> <add name="aspNetCore" path="" verb="" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\CloudCafe.Web.Host.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00" hostingModel="InProcess"> <environmentVariables> <environmentVariable name="COMPLUS_ForceENC" value="1" /> </environmentVariables> </aspNetCore> <httpProtocol> <customHeaders> <remove name="X-Powered-By" /> </customHeaders> </httpProtocol> <security> <requestFiltering> <!-- 200 MB in bytes --> <requestLimits maxAllowedContentLength="209715200" /> </requestFiltering> </security> </system.webServer> </configuration>`
This is what Microsoft said ....
Hello Mark, I hope you are fine,
Thank you for contacting Microsoft Support, my name is Isidro Hernandez and I will be your Microsoft Azure Software Support Engineer, from the App Service team who will be working with you on this service request.
Please reach me using the contact information listed below on my signature, referencing the service request number [120120726005246 - Its not receiving any requests]
From the case description I understand that you are not receiving any request from the app service cc-api-svc-p-aue. I have monitored the app service, below my findings:
On the app service we were able to find 500 errors, this server errors belong to the application level and are related to the application code.
Please find below the exceptions we captured: Exception
· at Microsoft.Data.SqlClient.SqlConnectionString..ctor
· at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions
· at Microsoft.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup
· at Microsoft.Data.SqlClient.SqlConnection.ConnectionString_Set
· at Microsoft.Data.SqlClient.SqlConnection.set_ConnectionString
· at Microsoft.Data.SqlClient.SqlConnection..ctor
· at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerConnection.CreateDbConnection
· at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.get_DbConnection
· at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open
· at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction
· at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.<>c__DisplayClass26_0.<BeginTransaction>b__0
· at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_02.<Execute>b__0
· at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult]
· at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult]
· at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult]
· at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.BeginTransaction
· at Abp.EntityFrameworkCore.Uow.DbContextEfCoreTransactionStrategy.CreateDbContext[TDbContext]
· at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.GetOrCreateDbContext[TDbContext]
· at Abp.EntityFrameworkCore.Uow.UnitOfWorkExtensions.GetDbContext[TDbContext]
· at CloudCafe.Migrations.Seed.SeedHelper.WithDbContext[TDbContext]
· at CloudCafe.Migrations.Seed.SeedHelper.SeedHostDb
· at CloudCafe.EntityFrameworkCore.CloudCafeEntityFrameworkCoreModule.PostInitialize
· at Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2
· at System.Collections.Generic.List1.ForEach
· at Abp.Modules.AbpModuleManager.StartModules
· at Abp.AbpBootstrapper.Initialize
· at Abp.AspNetCore.AbpApplicationBuilderExtensions.InitializeAbp
· at Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp
· at CloudCafe.Web.Startup.Startup.Configure
· at System.RuntimeMethodHandle.InvokeMethod
· at System.Reflection.RuntimeMethodInfo.Invoke
· at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke
· at Microsoft.AspNetCore
If you have additional concerns, please let me know. We will be more than happy to help.
Looking forward to your response,
Best Regards, Isidro M Hernandez | Support Engineer | Azure Support
Email: : : [email protected] | Manager: [email protected]
Working hours: 08:00 AM – 05:00 PM CST | Local Time