asked on
Dim config As New MarketplaceWebServiceConfig
config.ServiceURL = "https://mws.amazonservices.co.uk"
Dim myClient As New MarketplaceWebServiceClient(AccessKey, SecretKey, ApplicationName, ApplicationVersion, config)
Dim myRequest As New GetReportRequest
myRequest.Merchant = SellerID
myRequest.ReportId = reportId
myRequest.Report = File.Open("C:\\report\" + reportId.ToString + ".txt", FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim myResponse As New GetReportResponse
myResponse = myClient.GetReport(myRequest)
myTextbox.text = File.ReadAllText("C:\\report\" + reportId.ToString + ".txt")
I get "The process cannot access the file "xxx" because it is being used by another process."