Posts

Showing posts from July, 2019

Create Schedule Job

1. use NuGet to install Quartz to Project 2. Create sub class of IJob: public class HelpOnlineJob : IJob     {         public void Execute (IJobExecutionContext context)         {               // call methods in schedule             new CompanyDB().ResetPrintingTimes();             new ASIMSNotificationDB().ResetReachingPrintingAllowanceNotification();             new OnlineEducationDB().BackupDatabase();                           }     } 3. Create class with static method  public class HelpOnlineJobScheduler     {         public static void Start()         {             IScheduler scheduler = StdSchedulerFactory.GetDefaultScheduler();...

"Access to the path 'xxxxxx' is denied."

Image
Right Click Folder that want to access Go to Security Tab Click on Edit Click on Add Click on Addvance Find Now Give Permission to  IIS_IUSRS  (Full Control) Click On OK Click On OK Click On  Full Control  in allow Click On OK Again Run the Application Note:  if application pool identity assign:  ApplicationPoolIdentity   then user will be " IIS AppPool\" and  followed by the name of the application pool from step 2 e.g. "IIS AppPool\myapplicationpool" Note: Form this location, select computer name Click on Check Names button: Give full control for this user