Let me teach you a trick for programming in .Net. It sounds simple, all you have to do is pass on the functions that they expect . Let me give you a simple example.
With this code, I have a similar error:

CS7036 There are no arguments that match the required formal parameter "fileName" in "FileInfo.FileInfo (string)"
The red squiggle line tells you where the problem is. If I dial the opening bracket, it will give me a hint with the expected :

Well, he needs a string, so I declare a string and pass it to the function as she expects:

So, the problem is that you are not giving the CreateSubscription function the parameters that it expects.
Argument not specified for Parameters. Public Function CreateSubscription
To fix this, provide all the required parameters of the ReportingService2005.CreateSubscription Method :
public static void Main() { ReportingService2005 rs = new ReportingService2005(); rs.Credentials = System.Net.CredentialCache.DefaultCredentials; string report = "/SampleReports/Employee Sales Summary"; string desc = "Send email to anyone@microsoft.com "; string eventType = "TimedSubscription"; string scheduleXml = @"<ScheduleDefinition><StartDateTime>2003-02-24T09:00:00-08:00</StartDateTime><WeeklyRecurrence><WeeksInterval>1</WeeksInterval><DaysOfWeek><Monday>True</Monday></DaysOfWeek></WeeklyRecurrence></ScheduleDefinition>"; ParameterValue[] extensionParams = new ParameterValue[8]; extensionParams[0] = new ParameterValue(); extensionParams[0].Name = "TO"; extensionParams[0].Value = " dank@adventure-works.com "; extensionParams[1] = new ParameterValue(); extensionParams[1].Name = "ReplyTo"; extensionParams[1].Value = " reporting@adventure-works.com "; ParameterValue parameter = new ParameterValue(); parameter.Name = "EmpID"; parameter.Value = "38"; ParameterValue[] parameters = new ParameterValue[1]; parameters[0] = parameter; string matchData = scheduleXml; ExtensionSettings extSettings = new ExtensionSettings(); extSettings.ParameterValues = extensionParams; extSettings.Extension = "Report Server Email"; try { rs.CreateSubscription(report, extSettings, desc, eventType, matchData, parameters); } catch (SoapException e) { Console.WriteLine(e.Detail.InnerXml.ToString()); } }
Jeremy thompson
source share