Dears,
I created BackgroundJob class and added to PostInitialize => workManager.Add(IocManager.Resolve<xxBackgroundJob>());
why the job does not worked
public class xxBackgroundJob : PeriodicBackgroundWorkerBase, ISingletonDependency { private const int CheckPeriodAsMilliseconds = 5000;////10006010; private readonly IInsTariffIntegAppService _IInsTariffIntegAppService;
public BarzanBackgroundJob(AbpTimer timer, IInsTariffIntegAppService theIInsTariffIntegAppService)
: base(timer)
{
_IInsTariffIntegAppService = theIInsTariffIntegAppService;
Timer.Period = CheckPeriodAsMilliseconds; //5 seconds (good for tests, but normally will be more)
Timer.RunOnStart = true;
}
[UnitOfWork]
protected override void DoWork()
{
_IInsTariffIntegAppService.CrtInsTariffSetup1();
}
}
Dears, ASPZERO MVC Core(AspNetZeroCore v5.3.0) first if I can call oracle SP and it is support, how I can do that ?
problem in deployment the ASPZero MVC Core on windows 2008 R2 Enterprise Bild7601
Application 'MACHINE/WEBROOT/APPHOST/BARZNWEB.BARZNWEB.WEB.MVC' with physical root 'C:\ASPZero\publish' failed to start process with commandline 'C:\ASPZero\publish\BarznWeb.BarznWeb.Web.Mvc.exe ', ErrorCode = '0x80004005 : 80131700.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authentication mode="Windows" /> </system.web> <system.webServer> <handlers> <add name="aspNetCore" path="" verb="" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers> <aspNetCore processPath=".\BarznWeb.BarznWeb.Web.Mvc.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00" /> <httpProtocol> <customHeaders> <remove name="X-Powered-By" /> </customHeaders> </httpProtocol> </system.webServer> </configuration>
the error when trying to call swagger is: error 404 but when run the app debug mode using VS the swagger is working fine
Dear All,
I download new version from ASPZero V5.5.2
and Clear All Nuget Cace(s) and restore All Nuget Packges on sln
but still the below error apears 9>C:\Program Files\dotnet\sdk\2.1.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file 'C:\Users\Barzan\source\repos\BarznWeb (6)\BarznWeb\src\BarznWeb.BarznWeb.Web.Host\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
Display below error when trying to access to the App layer Required permissions are not granted. At least one of these permissions must be granted: Tenants I Disabled the below flage public const bool MultiTenancyEnabled = false;
//and create below permission public class AppPageNames { public static class Tenant { public const string UnderWriting = "UnderWriting"; } }
//and create AppPermissions UnderWriting public static class AppPermissions { public const string Pages_Tenant_UnderWriting = "Pages.Tenant.UnderWriting"; } //and create var UnderWriteing = pages.CreateChildPermission(AppPermissions.Pages_Tenant_UnderWriting, L("UnderWriting"), multiTenancySides: MultiTenancySides.Tenant);
// add below to the xxxxnAppService [AbpAuthorize(AppPermissions.Pages_Tenant_UnderWriting)]
We Have problem in sending the email Version# AspNetZeroCore v5.3.0
An error occurred while attempting to establish an SSL or TLS connection.
The SSL certificate presented by the server is not trusted by the system for one or more of the following reasons:
See <a class="postlink" href="https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate">https://github.com/jstedfast/MailKit/bl ... ertificate</a> for possible solutions.
Hello,
I am adding Report Viewer into an ASP.NET Core app. It works perfect!
Now, I try to move the Report Viewer to an existing ASP.NET Core (based on ASPNET Boilerplate framework).
When I run the application, the Report Viewer is actually showing in the Page. However, communication fails with the Report Storage on the server.
Below you can find the error generated and also the code in the Startup.cs class.
ComponentNotFoundException: No component for supporting the service DevExpress.AspNetCore.Reporting.WebDocumentViewer.WebDocumentViewerController was found Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) <<
The ASPNET Boilerplate uses Castle Windsor as DI. It seems the Controllers for the Report Viewer are not being registered with the DI!
The code for the Startup.cs class is below:
>> public IServiceProvider ConfigureServices(IServiceCollection services) { services.AddDevExpressControls();
// Adds MVC controllers for processing requests with the default routes.
services.AddMvc().AddDefaultReportingControllers();
var identityBuilder = IdentityRegistrar.Register(services);
//Identity server
if (bool.Parse(_appConfiguration["IdentityServer:IsEnabled"]))
{
IdentityServerRegistrar.Register(services, _appConfiguration);
}
AuthConfigurer.Configure(services, _appConfiguration);
//Swagger - Enable this line and the related lines in Configure method to enable swagger UI
services.AddSwaggerGen(options =>
{
options.SwaggerDoc("v1", new Info { Title = "BarznWeb API", Version = "v1" });
options.DocInclusionPredicate((docName, description) => true);
});
//Recaptcha
services.AddRecaptcha(new RecaptchaOptions
{
SiteKey = _appConfiguration["Recaptcha:SiteKey"],
SecretKey = _appConfiguration["Recaptcha:SecretKey"]
});
services.AddScoped<IWebResourceManager, WebResourceManager>();
//Configure Abp and Dependency Injection
return services.AddAbp<BarznWebWebMvcModule>(options =>
{
//Configure Log4Net logging
options.IocManager.IocContainer.AddFacility<LoggingFacility>(
f => f.UseAbpLog4Net().WithConfig("log4net.config")
);
options.PlugInSources.AddFolder(Path.Combine(_hostingEnvironment.ContentRootPath, "Plugins"));
});
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { //Initializes ABP framework. app.UseAbp(options => { options.UseAbpRequestLocalization = false; //used below: UseAbpRequestLocalization });
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseStatusCodePagesWithRedirects("~/Error?statusCode={0}");
app.UseExceptionHandler("/Error");
}
app.UseAuthentication();
if (bool.Parse(_appConfiguration["Authentication:JwtBearer:IsEnabled"]))
{
app.UseJwtTokenMiddleware();
}
if (bool.Parse(_appConfiguration["IdentityServer:IsEnabled"]))
{
app.UseJwtTokenMiddleware("IdentityBearer");
app.UseIdentityServer();
}
app.UseDevExpressControls();
ReportStorageWebExtension.RegisterExtensionGlobal(new EmbeddedResourcesReportStorageWebExtension(env));
app.UseStaticFiles();
if (DatabaseCheckHelper.Exist(_appConfiguration["ConnectionStrings:Default"]))
{
app.UseAbpRequestLocalization();
}
app.UseMvc(routes =>
{
routes.MapRoute(
name: "defaultWithArea",
template: "{area}/{controller=Home}/{action=Index}/{id?}");
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
// Enable middleware to serve generated Swagger as a JSON endpoint
app.UseSwagger();
// Enable middleware to serve swagger-ui assets (HTML, JS, CSS etc.)
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "BarznWeb API V1");
}); //URL: /swagger
}
We use ASPZero-Core MVC we need to call action on MVC control to implement file upload function