WARN 2016-06-29 14:33:12,459 [duler] Hangfire.AutomaticRetryAttribute - Failed to process the job '9': an exception occurred. Retry attempt 5 of 10 will be performed in 00:04:36. System.IO.FileNotFoundException: Could not load file or assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Hangfire.Storage.InvocationData.Deserialize()
Hi
I am setting up project for single instance multiple database. When i try to add tenants with connection string , i am getting an exception
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AbpAuditLogs' in the database.
Hi
I am using Hangfire in my application to do some scheduled background task. but when this task is triggered its is firing an exception
WARN 2016-06-29 14:33:12,459 [duler] Hangfire.AutomaticRetryAttribute - Failed to process the job '9': an exception occurred. Retry attempt 5 of 10 will be performed in 00:04:36. System.IO.FileNotFoundException: Could not load file or assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
Please help me on this
Thanks for the reply. My issue got solved. we must use property "Enlist=false" inside connection string when we are dealing with multiple db with same unit of work . Thank you
I am using hangfire in inside my web project.
// inside my controller i have added these lines
RecurringJob.RemoveIfExists("Job1");
RecurringJob.AddOrUpdate("Job1", () => Job1(), Cron.Daily(11, 47));
public void Job1() {
//Do some job
}
When i tried that i am getting another exception
Castle.MicroKernel.ComponentNotFoundException
No component for supporting the service RentMoji.Web.BackGroundJobs was found
Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service RentMoji.Web.BackGroundJobs was found
at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments)
at Castle.Windsor.WindsorContainer.Resolve(Type service)
at Abp.Dependency.IocManager.Resolve(Type type) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:line 194
at Abp.Hangfire.HangfireIocJobActivator.ActivateJob(Type jobType) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.HangFire\Hangfire\HangfireIocJobActivator.cs:line 24
at Abp.Hangfire.HangfireIocJobActivator.HangfireIocJobActivatorScope.Resolve(Type type) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.HangFire\Hangfire\HangfireIocJobActivator.cs:line 48
at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass8_0.<PerformJobWithFilters>b__0()
at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass8_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable
1 filters)
at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)
Here is my Code
public class BackGroundJobs:IBackGroundJobs
{
public void AddJob1()
{
RecurringJob.RemoveIfExists("Job1");
RecurringJob.AddOrUpdate("Job1", () => Job1(), Cron.Daily(11, 47));
}
public void Job1()
{
DependencyResolver.Current.GetService<ISubscriberAppService>().SendEmailToSubscribers();
}
}
Thank you, It worked .
Thanks ismcagdas and hikalkan
Hi
i am checking webapi in Postman
I did login using "http://localhost:6634/api/Account/Authenticate" and I got a token
when i try to get tenant list using "http://localhost:6634/api/services/app/tenant/GetTenants " i am getting following response
{
"success": false,
"result": null,
"error": {
"code": 0,
"message": "Current user did not login to the application!",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": true
}
Method : Post Headers - Content-Type:application/json Authorization:[Token Got from Authenticate Api ]
Please help me on this
Hi
Is there any Sample ABP angular + MVC+ Entity Framework Project with Stored Procedure available ?
I would like to use Stored Procedure for getting data from Multiple tables( I don't want to use Entity Framework GetAll Method)
Thank you :)