Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ITWebTeam"

Hello,

I'm attempting to run Power Tools when I have multiple DbContexts (2). I'm receiving the error "More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."

In my scenario, only one DbContext is writable.

Is it possible to overcome this by telling Power Tools which DbContext to use?

Thank you for your help, Ron

Nevermind, this is a duplicate to the Add Migration issue

https://support.aspnetzero.com/QA/Questions/8253

Hello,

I've been watching the Udemy course and came to the demo for the Power tools. When trying to run them I get the error " Specified command or file was not found"

I'm using the latest AspNetZero with Angular, Visual Studio 2019 and SQL Server.

Below is a screen grab of the Console windows. -> PersonsAppService.cs is being generated. -> IPersonsAppService.cs is being generated. -> PersonConsts.cs is being generated. -> CreateOrEditPersonDto.cs is being generated. -> PersonDto.cs is being generated. -> GetAllPersonsForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllPersonsInput.cs is being generated. -> GetPersonForViewDto.cs is being generated. -> GetPersonForEditOutput.cs is being generated. -> Person.cs is being generated. -> PersonsExcelExporter.cs is being generated. -> IPersonsExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EntityHistoryHelper.cs is being modified. -> AspZeroAngularDemoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration...

Welcome to .NET Core 3.1! --------------------- SDK Version: 3.1.100

Telemetry --------- The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

---------------- Explore documentation: https://aka.ms/dotnet-docs Report issues and find source on GitHub: https://github.com/dotnet/core Find out what's new: https://aka.ms/dotnet-whats-new Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs Write your first app: https://aka.ms/first-net-core-app -------------------------------------------------------------------------------------- Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-ef does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. Running update-database... Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET Core program, but dotnet-ef does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH. -> persons.component.ts is being generated. -> persons.component.html is being generated. -> create-or-edit-person-modal.component.html is being generated. -> create-or-edit-person-modal.component.ts is being generated. -> view-person-modal.component.html is being generated. -> view-person-modal.component.ts is being generated. -> main.module.ts is being modified. -> main-routing.module.ts is being modified. -> app-navigation.service.ts is being modified. -> service-proxy.module.ts is being modified. -> AspZeroAngularDemo.xml is being modified.

Code generation is complete. Press ENTER to exit...

Hi,

I am getting a 500 error when I attempt to call a Service method that is overloaded.

The interesting observation in the error is the parameters are being replaced by MyApp.Intranet.Application, which is possibly making them identical calls.

Does the AppService support overloads and how should we implement? Thanks

Code:

    Task<PagedResultDto<UserProfileListDto>> GetUsersWithProfiles();

    Task<PagedResultDto<UserProfileListDto>> GetUsersWithProfiles(GetUserProfileListInput input);

When hitting the service url in the browser I expect json data returned but receive the following error. http://localhost:45777/api/services/app/User/GetUsersWithProfiles

AmbiguousActionException: Multiple actions matched. The following actions matched route data and had all constraints satisfied:

VanEck.Intranet.Authorization.Users.UserAppService.GetUsersWithProfiles (MyApp.Intranet.Application) VanEck.Intranet.Authorization.Users.UserAppService.GetUsersWithProfiles (MyApp.Intranet.Application)

<br> <br>

We've identified that bower is having an issue within our company's proxy server getting a certificate. This is preventing the dependencies from being downloaded using bower.

bower blockUI#*UNABLE_TO_GET_ISSUER_CERT_LOCALLY Request to <a class="postlink" href="https://bower.herokuapp.com/packages/jquery.blockUI">https://bower.herokuapp.com/packages/jquery.blockUI</a> failed: unable to get local issuer certificate

We are looking into a resolution.

We are having problems with dependencies issues for several AspNetZero projects. The project builds and runs but I don't believe it should have missing dependencies.

Project affected are Web.Core, Web.Host, Web.Mvc and Web.Public. See example screenshot below.

Options selected during creation: ASP.NET CORE MVC & jQuery, ANZ v4.5.1 and .NET Framework 4.6.1

Also please note that there is another issue, possible related, in which I will create a separate topic for if needed. The styling of both Public and MVC sites, aesthetically look terrible. See below screenshot

Public Website

Any help is appreciated, Ron

Showing 11 to 16 of 16 entries