I have create event receiver in dev environment and its working fine. But when try to add in production facing:
PS C:\Users\spfarmadmin> $spList = $spWeb.Lists["EmpEntyExit"] PS C:\Users\spfarmadmin> $spEventReceiver = $spList.EventReceivers.Add() PS C:\Users\spfarmadmin> $spEventReceiver.Assembly = "$SharePoint.Project.Assemb lyFullName$" PS C:\Users\spfarmadmin> $spEventReceiver.Class = "my_STG.AddTaskand_SubTask .AddTaskand_SubTask" PS C:\Users\spfarmadmin> $spEventReceiver.Name = "AddTaskand_SubTaskItemAdded" PS C:\Users\spfarmadmin> $spEventReceiver.Type = 10002 PS C:\Users\spfarmadmin> $spEventReceiver.SequenceNumber = 1000 PS C:\Users\spfarmadmin> $spEventReceiver.Synchronization = 1 PS C:\Users\spfarmadmin> $spEventReceiver.Update() Exception calling "Update" with "0" argument(s): "Could not load file or assembly '.Project.AssemblyFullName$' or one of its dependencies. The system cannot find the file specified." At line:1 char:1 + $spEventReceiver.Update() + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : InvalidOperationException PS C:\Users\spfarmadmin> |
↧
when try to add event receiver to production facing this issue
↧