Base solution for your next web application
Open Closed

CS0103 The name 'abpHttpClientFactory' does not exist in the current context CosmicABP.Mobile.MAUI #11547


User avatar
0
Ashishv created

Hi,

I've just downloaded the code and trying to run the project first time using all.sln. Its giving me error -

Error CS0103 The name 'abpHttpClientFactory' does not exist in the current context CosmicABP.Mobile.MAUI C:\ABP\src\CosmicABP.Mobile.MAUI\Shared\Layout\MainLayout.razor.cs 122 Active

Please help. Ashish.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Ashishv

    Do you have latest version of Visual Studio installed ? Did you also follow https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Development-Guide-MAUI ? You might be missing some workloads.

  • User Avatar
    0
    Ashishv created

    Yes, I just bought a new PC and have installed latest version VS 2022 Along with latest SQL. After that i purchased aspnetZero and downloaded the code. Followed steps given in help and installed other tools. Since i want to develop web & mobile both app. I selected all.sln as given in help document. After that I'm building solution I'm getting the error -

    Error CS0103 The name 'abpHttpClientFactory' does not exist in the current context CosmicABP.Mobile.MAUI C:\ABP\src\CosmicABP.Mobile.MAUI\Shared\Layout\MainLayout.razor.cs 122 Active

    Below is the screen shot of VS -

  • User Avatar
    0
    johnmalone created

    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.