Greetings all.
Video from today's webinar:
It would be interesting to hear others' opinion and details about setup, so please share.
Take care :-)
Greetings all.
Video from today's webinar:
It would be interesting to hear others' opinion and details about setup, so please share.
Take care :-)
How do you create a multi developer site, where you share a database?
We had some problems with it earlier, especially with some item type XML files, that got out of sync? Any good resources?
/Daniel
Nexusone
Yeah, that's a tricky one. Because usually your source code authoring goes on in your IDE, but for things as Item Types, Data Integration tasks, Repository configuration goes on in Dynamicweb, and the configurations are saved directly to the file archive. But the Item Types also affect the database, and any change to the Item Type xml file will update the item type table in the database, when the application is recycled, and if you a group of developers, who share the database, but might have different versions of the item type xml, you're unknowingly batteling for the item type each time you build the solution.
In our environment we set up publishing to a central development solution, and some developers use that instead of a local environment. We use file publishing and publish directly to the share, which also gives us the opportunity to fetch files from the development solution. So - ideally - when someone makes a change to an item type or one of the other object types mentioned, they right-click the folder or file in the Solution Explorer and click "Replace from server". That will retrieve the file to your local dev, which you can then commit to source control. But then everyone should update immediately, which is not always the case, and then you're back to, where we started.
So, I don't see anything system-wise that can deal with this, but hosting the database locally will mitigate this, and it's so convenient to have it locally. I update mine with a new bacpac file now and then from the main dev solution I'm working on.
It's a question I've received many times, so it would be great to hear from others how they are dealing with it.
Hi again Lars
I have faced some other issues when following this guide, mainly related to .NET versioning.
After setting up the project, I was able to install the Dynamicweb.Render module that you used in the demonstration, and I got intellisense help on all the changes you did to the frontend files. However, since this is setup as a .NET 5 project, a lot of the standard DW pages had errors all over since they used @helper functions, that are deprecated in NET 5. Therefore, the project could not be built. Since it should only be used for holding my razor files, it might not matter a lot, but I do not like that the project cannot be build.
I also tried to add a class library for backend processing and notification subscribers in .NET 5, but when I added the .dll to my bin folder, I got a version conflict and the project failed to run. When I build a .NET framework 4.7.2 project everything was fine. Do you have any suggestions on how to handle these problems?
Hi Daniel,
Sorry for the late reply.
If it works on 4.7.2 I assume it's a DW 9.9.x or earlier, and if you're installing the lates version of the renderer from nuget, that one is for 9.10.
If that's the case, just upgrade the application to 9.10 and upgrade your project to .Net Standard 2.0, or use an earlier version of your DW references to continue running on the pre 9.10 release.
Br.
Lars
Hey Lars,
In this demo you are creating a new project based on the ASP.NET Core template. I am somewhat confused by that since I understand DW 9 is not .NET Core compatible. Could you shed some light?
Thanks,
Justin
Hi Justin,
The ASP.NET Core Web Application is only for template development, and I just need something that will allow me to set up dependencies to the Dynamicweb assemblies to have intellisense in the Razor templates:-)
If you FF to about 27:10 you'll see I set up a .Net Standard Class Library for custom development. This will be compiled into the bin directory of DW, so that's a different matter :)
I'm sorry if that was a bit confusing/unclear.
Br.
Lars
Hi Lars
Just one comment. Whole time 80% of screen is blank - white while code you write is so tinny and hard to see. Could you (probably in future blogs) make it more readable.
Thank you in advance!
Ivan
Hi Ivan,
Thanks, I'll keep that in mind:-)
Br.
Lars
Hi Lars,
I'm trying to install a local instance of DW9 folowing your webinar example but I'm getting stuck on step4 of the web installer creating an administrator account (test.local.dynamicweb.dk/Admin/access/setup/#step4).
The interface keeps processing, but nothing happens.
Any idea what could go wrong here?
Peter
Hi Peter,
Probably a poorly implemented ajax request from our side. I think, you're running into an exception, but our frontend code doesn't expect that, so it just keeps spinning until it receives a 200 error, which in that case will never happen.
Try loading the developer toolbar in your browser, switch to the Network tab and try again. You'll probably notica a 500 error, and then in the Preview or Response tab you can see the exception details.
Feel free to post the exception details here, if you ar not able to decipher it yourself, and I'll see if I can :-)
Br.
Lars
Hi Lars,
Thanks for the quick reply.
I don't see any exceptions in the network tab (all status 200), but I did find an uncaught syntax error in the console tab (see attachment).
Could this be the problem?
Peter
Hi Peter,
I still think, there is an exception going on. The error message you see would occur, if the client is expecting a json response, but gets an HTML response instead, which 500 server error would be.
Br.
Lars
Hi Lars,
Short update: using application version 9.16.3 instead of 9.16.6 the setup wizard completed all tasks.
After completion I changed the source folder in IIS to version 9.16.6 and everything is working correctly now.
Kind regards,
Peter
Great to hear - have fun with it :-)
You must be logged in to comment