Developer forum

Forum » Dynamicweb 10 » Install DW10 using a zipped milestone release

Install DW10 using a zipped milestone release

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am trying to install a local version of DW 10.15 using a zip from the Doc site.

Whatever I try, I get this error:

[2025-05-07 21:58:51.699] C:\inetpub\wwwroot\Swift2\Application\bin\runtimes\win\lib\net6.0\Microsoft.Data.SqlClient.dll Unable to load one or more of the requested types.Could not load type 'SqlGuidCaster' from assembly 'Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
[2025-05-07 21:58:51.717] C:\inetpub\wwwroot\Swift2\Application\bin\runtimes\win\lib\netcoreapp2.1\System.Data.SqlClient.dll Unable to load one or more of the requested types.Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.6.1.6, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.

Any suggestions?

Thank you,

Adrian

 


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Which ring did you try? I just downloaded R1 from here: https://doc.dynamicweb.com/downloads/dynamicweb-10 and got it to work without that error.

Note: to get it to work, I unzipped it and added a site in IIS. According to the docs: https://doc.dynamicweb.dev/documentation/fundamentals/setup/installation/install-using-zip.html the site should boot up and let you set it up. Not for me, as I got this:

 Physical path for /Files: 'D:\Projects\Dynamicweb\Sites\DW10R1\wwwroot\Files'.
Unhandled exception. System.IO.DirectoryNotFoundException: Configuration-specified FilesPath does not exist: 'D:\Projects\Dynamicweb\Sites\DW10R1\wwwroot\Files'

 

Once I copied an existing Swift 2 solution into my wwwroot folder things worked just fine.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Imar,

Thank you for the detailed response.

That is exactly what I did except that in my case it did not boot up.

The weird part is that using the archive from R2 works.

I am wondering if I may be missing some dependency on the server (although I have another DW10 instance running and also R2 is working).

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

I have installed the .Net Hosting bundle again but I still get the same error:

[2025-05-08 09:19:15.501] C:\inetpub\wwwroot\Swift2\Application\bin\runtimes\win\lib\net6.0\Microsoft.Data.SqlClient.dll Unable to load one or more of the requested types.Could not load type 'SqlGuidCaster' from assembly 'Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
 
[2025-05-08 09:19:15.525] C:\inetpub\wwwroot\Swift2\Application\bin\runtimes\win\lib\netcoreapp2.1\System.Data.SqlClient.dll Unable to load one or more of the requested types.Could not load type 'SqlGuidCaster' from assembly 'System.Data.SqlClient, Version=4.6.1.6, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it contains an object field at offset 0 that is incorrectly aligned or overlapped by a non-object field.
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Weird. It's a known issue with .NET assemblies for the SQL Client but it should be resolved with recent versions of Microsoft.Data.SqlClient.dll. What's the version number of that file in your Bin folder?

Imar

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Imar,

I believe it is 5.1.3. It's the same version as the one in R2, which works.

The latest one seems to be 6.0.2

Adrian

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

It's the same for me. Does your project (under wwwroot) contain any custom DLLs? I.e. did you extend it somehow? Or is it a fresh Swift 2 install?

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

It seems that the error message about Microsoft.Data.SqlClient and System.Data.SqlClient will always be logged to TypeLoadErrors.log  even though the error is actually ignored.

If you have problems with starting up a new DW10 application in IIS then try to take a look at the Windows Event Log (if you have access to that) and see if that contains any useful information about the problem.

/Morten

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Morten,
Thank you, I will try to.
A local setup using the same archive seemed to work without any issues which means that the issue is very likely in the IIS/Hosting setup.

Thank you,
Adrian

 

You must be logged in to post in the forum