Developer forum

Forum » Dynamicweb 10 » DW10 - Error when setting up database on Azure -

DW10 - Error when setting up database on Azure -

Marie Louise Veigert
Reply

Hi!

I have started the setup wizard for DW10. When I get to the step "Setup Database" I put all credentials towards Azure and it tells me connection is OK.
I have a emty database setup in Azure as well beforehand.

When pressing continue, I get this error "Sequence contains no elements":

I have checked "Create database if it does not exist"  as well.



Anyone having a idea, what is wrong?

 

BR 
Marie Louise


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Marie Louise,

We have not tested the DW10 installation process against Azure yet, but the logic is basically copied from the DW9 installation process, so perhaps something was left out or needs a different implementation.

I will make a task to get this tested and fixed.

Thank you for reporting.

- Jeppe

Votes for this answer: 1
 
Marie Louise Veigert
Reply

I got it working when not trying to setup from local towards Azure. 

I set all up directly in Azure and then it works.

But now I get an error in the console. Maybe it's a general error in DW beta?

 An error occured while selecting the store state: Cannot read properties of undefined (reading 'language')

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Marie Louise,

You didn't mention which version you're running, so I've tested on the latest released version from Tuesday.

I have tested the installation process with databases in Azure -- existing ones and ones created by the installer -- from DW10 both locally and running on Azure App Services. It all worked for me. I did experience a timeout when creating the database the first time, if I then try again it works. I suspect that Azure is still provisioning the database when the timeout occurs.

What I did was to create a SQL server and configured it with SQL Authentication (Server Admin). I used that account to create the database.

With regard the the JS error you're getting. I don't see how it can come from the DW10 application. We don't have any JS files called 3.chunk.js or tabPrompt.chunk.js. I do, however, get the same failing request to Application Insights (see image). The only thing I can think of is if a possible frontend implementation could be at play here. Do you have any frontend JS that might explain it?

- Jeppe

 

 

 
Marie Louise Veigert
Reply

Hi Jeppe,

I have only added swift from here: https://doc.dynamicweb.com/downloads/dynamicweb-10

And the DW10 Im using is the one from downloads section as well (October Beta) :)
But I might need to try to set up the NuGet version instead?
Do you have any guide to setup DW10 from NuGet?

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

The easiest way to get started with DW10 as a custom app is to create new empty ASP.NET Core application using .NET 7. Then you need to go to the NuGet Package Manager and find the package Dynamicweb.Suite. You need to check the box to include pre-release packages for it to show up. Add this package to your project. Once that's done, you need to configure the app to use Dynamicweb. Change your Program.cs file and add both AddDynamicweb and UseDynamicweb. It should look something like this if the app is configured for top-level statements:

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDynamicweb(builder.Environment, builder.Configuration);

var app = builder.Build();
app.UseDynamicweb();

app.Run();

Next, we need a Files folder. There are two options for getting one. Either start the app and install a new one, or use an existing one. For an existing one, you can either copy it to the wwwroot folder of the app (App->wwwroot->Files), or you can point to it in the appsettings.json by adding an entry called FilesPath ("FilesPath": "C:\\dev\\solutions\\dw10test\\Files").

Basically, the steps are these:

  1. Create a new empty ASP.NET Core web app using .NET 7
  2. Install the NuGet package Dynamicweb.Suite (requires pre-release flag)
  3. Change Program.cs to use Dynamicweb 10
  4. Add a Files folder

There will be a proper guide on our Dynamicweb 10 doc site, but it's not ready yet. Hopefully, we'll start to roll out some documentation over the next couple of weeks. We will also have an easy starter template so getting started could be as simple as dotnet new dw10.

Let me know if you run into an issues.

- Jeppe

 

 

You must be logged in to post in the forum