# Publish .net 5 web assembly site to IIS fails

**URL:** <https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604>\
**Category:** Blazor WebAssembly\
**Created:** [November 12, 2020, 7:36pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604 "2020-11-12T19:36:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 12, 2020, 7:36pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/1 "2020-11-12T19:36:39Z")

</div>

![image](https://forum.radzen.com/uploads/default/original/2X/3/3188600eaadc24af26f37df48cf9f7c5a08c655d.png)

Also inside the radzen application ( i just updated the app today, so it is current) when i deploy...  
it has link that states...

when you click the following link it takes you to .net core 3.1, versus .net 5...is that the intended functionality here? I have installed .net 5 hosting, and still i get the error attempting to deploy to site.

I have deployed from vs 2019 a custom non radzen web assembly .net 5 core app to this same site without issue.

 ![image](https://forum.radzen.com/uploads/default/original/2X/c/cf70b203d7bdb158135e8b96debd2398779c6f73.png)

what am i doing wrong?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 12, 2020, 8:51pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/2 "2020-11-12T20:51:05Z")

</div>

The link was wrong, thanks - not sure however about the error. Check the log file in the deployed app root folder. I've just deployed new .NET 5.0 app to my IIS and everything worked normally:

 ![image](https://forum.radzen.com/uploads/default/original/2X/4/4ed9a0e45563f9b1846464a7702eef10054783b1.jpeg)

 ![image](https://forum.radzen.com/uploads/default/original/2X/2/2762281652d7807925c6ba8b18c5d934fff0cb6f.png)

 ![image](https://forum.radzen.com/uploads/default/original/2X/d/d4f3f35689cd8ae0a52a704be41448137d679b99.png)

---

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 12, 2020, 9:38pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/3 "2020-11-12T21:38:43Z")

</div>

i created sample app for blazor server .net 3.1 deployed to site...works.  
i created sample app for blazor web assembly .net 3.1 deployed to site...works.

i created sample app for blazor server .net 5 deployed to site...works.  
i created sample app for blazor web assembly .net 5.0 deployed...get error i sent above...?

If i can run a .net 5 blazor server site, why would the web assembly not work?

sidenote: there is an error when deploying 3.1 assembly but still succeeds, but gets some type of missing analyzer dll error during deploy

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 12, 2020, 10:08pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/4 "2020-11-12T22:08:06Z")

</div>

Have you checked the log file?

---

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 12, 2020, 10:19pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/5 "2020-11-12T22:19:19Z")

</div>

is this what you are referring to?  
here is the log inside the radzen app...

dotnet: Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET  
Copyright (C) Microsoft Corporation. All rights reserved.

dotnet: Determining projects to restore...

dotnet: All projects are up-to-date for restore.

dotnet: Radzen4.Client -\> C:\Users\cglick\source\Radzen\RADZEN4\client\bin\Release\net5.0\Radzen4.Client.dll

dotnet: Radzen4.Client (Blazor output) -\> C:\Users\cglick\source\Radzen\RADZEN4\client\bin\Release\net5.0\wwwroot

dotnet: Radzen4.Server -\> C:\Users\cglick\source\Radzen\RADZEN4\server\bin\Release\net5.0\Radzen4.Server.dll

dotnet: Radzen4.Server -\> C:\Users\cglick\source\Radzen\RADZEN4\server\bin\Release\net5.0\Radzen4.Server.Views.dll

dotnet: Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: [https://aka.ms/dotnet-illink](https://aka.ms/dotnet-illink)

radzen: Server application prepare for publish done in 45345ms.  
radzen: Deploying...  
radzen: Reading connection strings  
radzen: Saving connection strings in appsettings.json  
radzen: Creating temporary deploy folder  
radzen: Copying server app to deploy folder  
radzen: Syncing deploy folder with server  
dotnet: Compressing Blazor WebAssembly publish artifacts. This may take a while...

msdeploy: Total changes: 2 (0 added, 0 deleted, 2 updated, 0 parameters changed, 621 bytes copied)

radzen: Removing temporary deploy folder  
radzen: Deploy done in 3010ms.  
radzen: Stopped server.

---

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 13, 2020, 12:39am UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/6 "2020-11-13T00:39:20Z")

</div>

event 1 - Unable to locate application dependencies. Ensure that the versions of Microsoft.NetCore.App and Microsoft.AspNetCore.App targeted by the application are installed.  
event 2 - Could not find 'aspnetcorev2\_inprocess.dll'. Exception message:  
event 3 - Failed to start application '/LM/W3SVC/4/ROOT', ErrorCode '0x8000ffff'.

these are events when i try to run site from iis, keep in mind i can run the site from radzen without issue.

why don't you create a new .net 5 blazor web assembly app, create a blank page and publish it to iis, you will see same error?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 13, 2020, 4:42am UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/7 "2020-11-13T04:42:18Z")

</div>

I was able to reproduce the problem - fix will be included in the next update. In the meantime you can use Visual Studio to publish/deploy your .NET 5.0 WASM app.

---

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 13, 2020, 4:34pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/8 "2020-11-13T16:34:07Z")

</div>

Thank you for your support as always!

---

<div class="post-metadata">

**Author:** ![cglick](https://forum.radzen.com/user_avatar/forum.radzen.com/cglick/32/4687_2.png) [@cglick](https://forum.radzen.com/u/cglick)\
**Post date:** [November 17, 2020, 9:57pm UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/9 "2020-11-17T21:57:05Z")

</div>

Has this issue been resolved?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 18, 2020, 5:18am UTC](https://forum.radzen.com/t/publish-net-5-web-assembly-site-to-iis-fails/5604/10 "2020-11-18T05:18:34Z")

</div>

Yes, now Radzen will copy all needed files to IIS unlike the previous version where no files were copied in case of .NET 5.
