hello
if you are getting error at below line
SrcVid.SetInput("ScreenCap://ScreenCapture1")
SrcAud.SetInput("Device://Default_Audio_Device")
then you have to give access to aspnet or network service user to you project folder, you might be resolved the problem.