- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Optional usage: ESXAR.exe 'month-num' 'year-4-digit-num' ['to-email-address']
System.NullReferenceException: Object reference not set to an instance of an ob
ect.
at ESXAR.ESXAR.GenerateReport() in C:\Users\mxc228.SW\Documents\Visual Studi
2010\Projects\ESXAR\ESXAR\Program.cs:line 138
Unhandled Exception: System.IO.IOException: The process cannot access the file
C:\ESXAR\esxi-10-2012.txt' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access,
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share)
at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String
mediaType)
at System.Net.Mail.AttachmentBase..ctor(String fileName)
at System.Net.Mail.Attachment..ctor(String fileName)
at ESXAR.ESXAR.SendReport(ArrayList objs) in C:\Users\mxc228.SW\Documents\Vi
ual Studio 2010\Projects\ESXAR\ESXAR\Program.cs:line 365
at ESXAR.ESXAR.Main(String[] args) in C:\Users\mxc228.SW\Documents\Visual St
dio 2010\Projects\ESXAR\ESXAR\Program.cs:line 99
The funny thing is that we never created a file with that name, so I am not sure what's going on.