Earlier we used to have a .Client project where we store proxies but this is not available in the new microservices template created by abp studio. so How and where to create static proxies
I am tyring to create it in the Blazor web app but when I create the proxy through abp generate-proxy -t csharp -m myprabh -u http://localhost:44314/ it only generates the json file but no proxy files.
@EngincanV FYI, I am facing this issue when I am trying to create proxy based on a microservice that I created along the basic other prebuilt microservice in the initial project creation time using abp studio.
I found I am able to create proxy for chat microservice.
Iām unable to generate static proxies. I recommend that you replicate my setup and create the solution the same way I did to identify any potential issues.
File name: 'Volo.Abp.Account.Pro.Public.Web, Version=8.1.2.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
at System.Reflection.TypeNameParser.ResolveAssembly(String assemblyName)
at System.Reflection.TypeNameParser.GetType(String typeName, ReadOnlySpan1 nestedTypeNames, String assemblyNameIfAny) at System.Reflection.TypeNameParser.Parse() at System.Reflection.TypeNameParser.GetTypeHelper(Char* pTypeName, RuntimeAssembly requestingAssembly, Boolean throwOnError, Boolean requireAssemblyQualifiedName) at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth)
at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources)
at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options)
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction)
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction)
at UrvinFinance.AuthServer.Program.Main(String[] args) in C:\Step2gen\UrvinTerminal\apps\auth-server\src\UrvinFinance.AuthServer\Program.cs:line 69
I have already tried this. Still facing the same issue
Here: <Project Sdk="Microsoft.NET.Sdk.Web">
<Import Project="........\common.props" />
<PropertyGroup> <TargetFramework>net8.0</TargetFramework> <UserSecretsId>647b1370-ff3f-467b-b192-b075f25a139c</UserSecretsId> <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> </PropertyGroup>
<ItemGroup> <PackageReference Include="AspNet.Security.OAuth.Apple" Version="6.0.4" /> <PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.2.1" /> <PackageReference Include="Azure.Identity" Version="1.11.2" /> <PackageReference Include="Datadog.Trace.Bundle" Version="2.46.0" /> <PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="6.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="6.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="6.0.2" /> </ItemGroup>
<ItemGroup> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="8.1.2" /> <!--<PackageReference Include="Volo.Abp.Account.Pro.Public.Web" Version="8.1.2" />--> <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="8.1.2" /> <PackageReference Include="Volo.Abp.EventBus.RabbitMQ" Version="8.1.2" /> <PackageReference Include="Volo.Abp.BackgroundJobs.RabbitMQ" Version="8.1.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="8.1.2" /> </ItemGroup>
<ItemGroup> <ProjectReference Include="........\services\administration\src\UrvinFinance.AdministrationService.EntityFrameworkCore\UrvinFinance.AdministrationService.EntityFrameworkCore.csproj" /> <ProjectReference Include="........\services\identity\src\UrvinFinance.IdentityService.EntityFrameworkCore\UrvinFinance.IdentityService.EntityFrameworkCore.csproj" /> <ProjectReference Include="........\services\saas\src\UrvinFinance.SaasService.EntityFrameworkCore\UrvinFinance.SaasService.EntityFrameworkCore.csproj" /> <ProjectReference Include="........\shared\UrvinFinance.Shared.Hosting.AspNetCore\UrvinFinance.Shared.Hosting.AspNetCore.csproj" /> <ProjectReference Include="........\shared\UrvinFinance.Shared.Localization\UrvinFinance.Shared.Localization.csproj" /> <ProjectReference Include="........\services\identity\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Application\Volo.Abp.Account.Pro.Public.Application.csproj" /> <ProjectReference Include="........\services\identity\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.HttpApi\Volo.Abp.Account.Pro.Public.HttpApi.csproj" /> <!--<ProjectReference Include="........\services\identity\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web.IdentityServer\Volo.Abp.Account.Pro.Public.Web.IdentityServer.csproj" />--> </ItemGroup> <ItemGroup> <Compile Remove="Logs*" /> <Content Remove="Logs*" /> <EmbeddedResource Remove="Logs*" /> <None Remove="Logs*" /> <None Remove="oldDockerfile" /> </ItemGroup>
<ItemGroup> <None Include="entrypoint.sh" Link="entrypoint.sh" CopyToOutputDirectory="Always" /> </ItemGroup>
</Project>
Thanks! Can I share the screen instead? It seems to be a small issue. Build succeeds but issue arrises in dotnet run.