Vue demo does not work using VS2022 and latest browsers

Hi,

I have created a “Authentication per Request Auth Providers” demo from the video on the Authentication and Authorization page, but it fails to display anything. The error is:

Unable to configure browser refresh script injection on the response. Consider manually adding <script src="/_framework/aspnetcore-browser-refresh.js"></script> to the body of the page

I tried adding that to wwwroot/index.html but it did not help. I also tried 3 browsers–same result.

Any ideas how to resolve this?

Thanks

Hi @francis, can you please share the demo you have created from the video on GitHub and I can take a look? The error you are seeing is a Visual Studio related script not being able to be injected, not related specifically to ServiceStack or your application. It sounds like you have a startup/config problem, you will likely see a stacktrace and error from your applications output (not the browser), sharing that might also help us point you in the right direction.

Hi Darren,

It’s actually a SS video on that page. Direct link is: https://youtu.be/NTCUT7atoLo

I downloaded a fresh solution from the SS site and modified it in a few places as described in the video.

Debug output from VS:

‘apikeytest2.exe’ (CoreCLR: DefaultDomain): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Private.CoreLib.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\apikeytest2.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\SDK\7.0.401\DotnetTools\dotnet-watch\7.0.401-servicing.23425.43\tools\net7.0\any\middleware\Microsoft.AspNetCore.Watch.BrowserRefresh.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.Extensions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Browser Link\Microsoft.WebTools.BrowserLink.Net.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘c:\program files\microsoft visual studio\2022\community\common7\ide\commonextensions\microsoft\hotreload\Microsoft.Extensions.DotNetDeltaApplier.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.IO.Pipes.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Linq.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Collections.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Console.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Threading.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Threading.Overlapped.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.AccessControl.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.Principal.Windows.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.InteropServices.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.Claims.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\Microsoft.Win32.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.Loader.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Hosting.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Collections.Concurrent.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\netstandard.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Http.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Routing.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.ComponentModel.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Features.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Hosting.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.Interfaces.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Diagnostics.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.HttpsPolicy.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.DependencyInjection.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.Abstractions.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Hosting.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Hosting.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.DependencyInjection.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.EnvironmentVariables.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.Kestrel.Core.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.Kestrel.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.Quic.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Diagnostics.Tracing.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.IIS.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.IISIntegration.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.CommandLine.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.FileProviders.Physical.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.FileProviders.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.UserSecrets.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Mvc.Core.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\apikeytest2.ServiceInterface.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.Common.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.Text.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.Client.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Private.Uri.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Collections.Specialized.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.InteropServices.RuntimeInformation.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.Serialization.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Text.Encoding.Extensions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Text.RegularExpressions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Memory.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Resources.ResourceManager.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.FileExtensions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.Binder.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Configuration.Json.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.IO.FileSystem.Watcher.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.ComponentModel.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.FileSystemGlobbing.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Text.Json.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Numerics.Vectors.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.CompilerServices.Unsafe.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.FileProviders.Composite.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Reflection.Emit.Lightweight.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Reflection.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Reflection.Emit.ILGeneration.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Text.Encodings.Web.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Runtime.Intrinsics.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Options.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.EventLog.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.Configuration.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Options.ConfigurationExtensions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.Console.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.Debug.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.Logging.EventSource.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Http.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Diagnostics.DiagnosticSource.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.OrmLite.Sqlite.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.OrmLite.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Data.Common.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Linq.Expressions.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Connections.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.HostFiltering.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.HttpOverrides.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Routing.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Extensions.ObjectPool.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.ObjectModel.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Threading.Thread.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\System.Diagnostics.EventLog.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.ComponentModel.TypeConverter.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.Sockets.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Threading.ThreadPool.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\System.IO.Pipelines.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Xml.ReaderWriter.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Private.Xml.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\apikeytest2.ServiceModel.dll’. Symbols loaded.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘Anonymously Hosted DynamicMethods Assembly’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\ServiceStack.Server.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Users\franc\Downloads\apikeytest2\apikeytest2\bin\Debug\net6.0\System.Data.SQLite.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Transactions.Local.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Diagnostics.TraceSource.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Diagnostics.Process.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.ComponentModel.Annotations.dll’.
ServiceStack.ServiceStackHost: Information: Initializing Application apikeytest2 took 671.113ms. No errors detected.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.IO.MemoryMappedFiles.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Diagnostics.Abstractions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.Net.Http.Headers.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.Security.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.Cryptography.X509Certificates.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.Cryptography.Primitives.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Security.Cryptography.Encoding.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Collections.NonGeneric.dll’.
Microsoft.Hosting.Lifetime: Information: Now listening on: https://localhost:5001
Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
Microsoft.Hosting.Lifetime: Information: Hosting environment: Development
Microsoft.Hosting.Lifetime: Information: Content root path: C:\Users\franc\Downloads\apikeytest2\apikeytest2
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Http.Features.dll’.
Exception thrown: ‘System.IO.IOException’ in System.Net.Security.dll
Exception thrown: ‘System.IO.IOException’ in System.Private.CoreLib.dll
Exception thrown: ‘System.IO.IOException’ in System.Private.CoreLib.dll
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Threading.Tasks.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.Http.Extensions.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.22\Microsoft.AspNetCore.WebUtilities.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.NetworkInformation.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.Http.dll’. Symbols loaded.
Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware: Warning: Unable to configure browser refresh script injection on the response. Consider manually adding ‘’ to the body of the page.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\Microsoft.Win32.Registry.dll’.
‘apikeytest2.exe’ (CoreCLR: clrhost): Loaded ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.22\System.Net.WebSockets.dll’.
The thread 0x7074 has exited with code 0 (0x0).
The thread 0x65ec has exited with code 0 (0x0).
The thread 0x64e0 has exited with code 0 (0x0).

@francis to reduce the chance of differences and so I can reproduce the issue exactly, can you share what you have? Eg, create a new GitHub repository, push the project and share the link? I will run it locally and have a look. Thanks.

I was able to simplify reprod for you: I downloaded a fresh example solution from the SS website and just ran it without any modification and I get the same error: a blank page and the error above in the DOS box.

To reproduce using latest VS2022 on Windows11:

  1. go to Create new .NET 6 project - ServiceStack and download the Vue solution.

  1. Restore packages (npm)

  2. Compile and run. https://localhost:5001/ shows a blank page and DOS box shows:

Let me know if you need anything else.

Which project did you download on the start page, e.g. Web?

The Vue Single Page App (as described in the video).

Then you don’t want to include any Auth or SQLite features as it’s already included in the template.

You can find instructions on the vue-spa template in the templates GitHub Repo:

i.e. you need to run both Vue and .NET App

$ npm run dev
$ dotnet watch

Let me know if you have any issues running the Vue project without any features.

1 Like