AspNetCore

NE NZANZA 46 Reputation points
2022-09-27T21:12:54.153+00:00

245210-running-project.png

The Application does not have any syntax error but when try to run it ...It gives this error not sure if I messed up with my namespace

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

Answer accepted by question author
  1. Anonymous
    2022-09-29T03:01:29.71+00:00

    Hi @NE NZANZA ,

    Try to add code below in your csproj file one by one and test the project.

    <ItemGroup>  
        <FrameworkReference Include="Microsoft.AspNetCore.App" />  
    </ItemGroup>  
    

    and

    <ItemGroup>  
        <ProjectCapability Include="SupportsSystemWeb" />  
    </ItemGroup>   
    

    Try to rebuild the project and see whether it makes any diffrence.

    If the issue persists, try to run dotnet restore or dotnet restore --force-evaluate command.

    Please do let me know your test results.

    Note: Please take the backup of your project and then try to test the suggestions above.

    Best Regards,
    Deepak


1 additional answer

Sort by: Most helpful
  1. NE NZANZA 46 Reputation points
    2022-09-28T10:03:19.93+00:00

    I bit of an update:I tried to deleted my bin and obj file build, rebuild and clean the solution but am still getting the say error

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.