Uno: Cannot run the wasm project

Created on 30 May 2019  路  9Comments  路  Source: unoplatform/uno

Current behavior

After generating a new template with the vsix extensions, upgrading Uno.UI package to 1.44.1 throughout the solution, I try to run the wasm project, the browser opens for a second and immediately closes.

The output I see in the _ASP.NET Core Web Server_ output window is:

UnoApp1.Wasm> Version for package Uno.Wasm.Bootstrap.Cli could not be resolved.

I can see this line repeated 2-4 times.

The output in the _Debug_ output window is attached here.

Per this comment I've tried updating the csproj with:

xml <ItemGroup> <PackageReference Include="Uno.UI" Version="1.44.1" /> <PackageReference Include="Uno.Wasm.Bootstrap" Version="1.0.0-dev.281" /> <DotNetCliToolReference Include="Uno.Wasm.Bootstrap.Cli" Version="1.0.0-dev.281" /> </ItemGroup>

But the error still persists.
I've tried the versions of that comment as well.

Expected behavior

When generating an Uno app using the extension, all projects should work out of the box.

How to reproduce it (as minimally and precisely as possible)

  • Install the templates extension
  • In VS generate a new Uno app
  • Set the wasm as startup project (IIS+Chrome) and run
  • Check the output window, switch between _Debug_ and _ASP.NET Core Web Server_ drop downs.

Environment

Nuget Packages and versions:
Uno.UI: 1.44.1
Uno.Wasm.Bootstrap: 1.0.0-dev.281

Affected platform(s):

  • [ ] iOS
  • [ ] Android
  • [x] WebAssembly
  • [ ] Windows
  • [ ] Build tasks

Visual Studio

  • [ ] 2017 (version: )
  • [x] 2019 (version: 16.1.1)
  • [ ] for Mac (version: )

Relevant plugins

  • [ ] Resharper (version: )
platforwasm

All 9 comments

@weitzhandler sorry to hear this. What version of Visual Studio are you using?

@ghuntley Thanks for your sympathy 馃槉
I've updated my post, it's 16.1.1.

Experiencing the same issue, running 16.1.2.

@weitzhandler If you start the app using Ctrl+F5, what happens ? The F5 experience is not useful for now.

@jeromelaban
You probably meant CtrlShiftF5, I've tried that but I get a "HTTP Error 502.5 - Process Failure" error page.
The output in the ASP.NET Core Web Server is as indicated above.

Annotation 2019-06-17 113854
I am getting this error when running WASM after new UNO project created.

Error list shows this when building:

Severity Code Description Project File Line Suppression State
Error System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Userssshar\AppData\LocalTemp\mono-wasm-01f6a0203b0\release'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.EnumerateFiles(String path)
at Uno.Wasm.Bootstrap.ShellTask_vc25c613b5190954144284486cfec2056d1820375.CopyRuntime() in D:\a\1ssrc\Uno.Wasm.Bootstrap\ShellTask.cs:line 358
at Uno.Wasm.Bootstrap.ShellTask_vc25c613b5190954144284486cfec2056d1820375.Execute() in D:\a\1ssrc\Uno.Wasm.Bootstrap\ShellTask.cs:line 109 MyPass.Wasm C:\Userssshar.nuget\packages\uno.wasm.bootstrap\1.0.0-dev.137\build\Uno.Wasm.Bootstrap.targets 101

Whatever this was, it no longer reproduces.

image

Using the latest vsix (see https://github.com/unoplatform/uno/pull/1213/files#diff-bb469f1b15e197be6787eeb4f0a2fcce) pre-release, latest Uno.UI pre-release and latest Uno.Wasm.Bootstrap pre-release.

GitHub
PR Type What kind of change does this PR introduce? Documentation content changes Other information Need to think about the information hierarchy. I don't think /contributing/ is the correct ...

Thanks for letting us know folks, apologies this was open for so long!

I had the same exact problem, but in my case the root cause was that the .NET Core 2.2 SDK wasn't installed. But no helpful errors pointed me to that!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MartinZikmund picture MartinZikmund  路  3Comments

JanabiSoft picture JanabiSoft  路  4Comments

peternary picture peternary  路  3Comments

bricelam picture bricelam  路  3Comments

MatFillion picture MatFillion  路  4Comments