LibSass.x64 not found on Azure VM (virtocommerce)

I am new to ASP.NET development and I managed to deploy VirtoCommerce on my local IIS computer (Windows 8.1), following the documentation at http://docs.virtocommerce.com/display/vc2devguide/Deploy+web+applications+to+dedicated+ server .

When I tried to deploy it on an Azure VM running Windows Server 2012, I received the following error when I tried to launch the frontend page. The DLL mentioned below is definitely located in the / bin folder in the store.

Server error in application "/". Failed to load file or assembly "LibSass.x64" or one of its dependencies. An attempt was made to download a program with the wrong format. **

I followed the link. Could not load the file or assembly "LibSass.x64" or one of its dependencies in VirtoCommerce , but did not find any luck. What did I miss in this deployment? Any help is much appreciated, thanks.

+6
source share
2 answers

Are you using 64, and the application pool for IIS and applications is 64 bits? If not, be sure to go to IIS and configure the pool settings to work as a 64-bit process. A simpler approach is: http://docs.virtocommerce.com/display/vc2devguide/Deploy+from+GitHub+to+Microsoft+Cloud+Azure , which will install Virto Commerce as a website in IIS with all the correct configuration for IIS Then you can update it differently by simply uploading the site via FTP if you wish. You can also clone the repository on GitHub, and this way your azure site will be automatically updated every time it is checked.

+1
source

I was able to reproduce this error on a clean Windows Server 2012 Standard. It turned out that Libsass.Net requires Visual C ++ Redistributable Packages for Visual Studio 2013 . After installing vcredist_x64.exe, the error disappeared.

+1
source

Source: https://habr.com/ru/post/989048/


All Articles