Base solution for your next web application

Activities of "jehadk"

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

I am trying to deply the ASPZero application to IIS but I have below problem

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)]

Question

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:

  1. The server is using a self-signed certificate which cannot be verified.
  2. The local system is missing a Root or Intermediate certificate needed to verify the server's certificate.
  3. The certificate presented by the server is expired or invalid.

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&lt;IWebResourceManager, WebResourceManager&gt;();

//Configure Abp and Dependency Injection
return services.AddAbp&lt;BarznWebWebMvcModule&gt;(options =>
{
	//Configure Log4Net logging
	options.IocManager.IocContainer.AddFacility&lt;LoggingFacility&gt;(
		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

}

Question

We use ASPZero-Core MVC we need to call action on MVC control to implement file upload function

Showing 1 to 10 of 10 entries