Base solution for your next web application

Activities of "johnmalone"

I think you will find the answer in this post: https://support.aspnetzero.com/QA/Questions/11467/MAUI-Project-Build---Program-does-not-contain-a-static-%27Main%27-method-suitable-for-an-entry-point. Read post carefully, there are 2 errors addressed and 1 is the error you are seeing.

How does this support forum work? My company paid for ASP.NET Zero and we are supposed to get a year of support. I am still wrestling with this issue. Can someone please provide assistance?

Yes, I tried that. Still same Access Denied error. I've spent hours trying to figure this out. I hope someone can help, or maybe I will have a breakthrough soon.

I am following the instructions in the .NET Maui Development Guide.

At the debugging step, I am getting "Access Denied" when starting the Web.Host project in any of the 3 ways mentioned in the instructions.

Debugging Host To start debugging MAUI app you need to configure host settings. You can use Web.Host to feed the MAUI app. Open Windows Command Prompt. Go to the folder where your Web.Host csproj file is located. Then run the command below to start hosting your Web API:

dotnet run --launch-profile Mobile Bash This will start the Web.Host project from the address "https://0.0.0.0:44301" which enables to access it from external networks.

Alternatively, there's start-host-mobile.bat file in your Web.Host directory which does the same for Windows users.

Warning

If you want to start Web.Host from Visual Studio, set Web.Host as startup project and choose the Mobile profile.


Here is the error I am getting:

C:\Source\MAUI Portal\src\Allworth.Portal.Web.Host>start-host-mobile.bat Unhandled exception: System.ComponentModel.Win32Exception (5): An error occurred trying to start process 'C:\Source\MAUI Portal\src\Allworth.Portal.Web.Host\bin\Debug\net7.0\Allworth.Portal.Web.Host.exe' with working directory 'C:\Source\MAUI Portal\src\Allworth.Portal.Web.Host'. Access is denied. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted) at Microsoft.DotNet.Tools.Run.RunCommand.Execute() at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<

This does not appear to be a Windows file permissions error or a file blocked by Windows.

Can anyone help me get past this error?

Any resolution to this? I am running Visual Studio 2022 17.5.1 with all workloads according the the article and I am still getting these 2 errors.

I also have tested the .NET Maui "Hello World" app and it works fine.

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version?
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? CORE

I am using VUE JS with ASP.NET Zero. I am having an issue with making AJAX calls from VUE before the dynamic proxies are downloaded, therefore getting undefined object errors.

Can I create static javascript proxies? If so, how?

Showing 1 to 6 of 6 entries