I`m getting an ArgumentException from the following code:

string strPath="C:\somename.xls";
startPath=System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
filePath = System.IO.Path.Combine(startPath, strPath);

I found this code on Stack Overflow. Link: C#:Copy protected worksheet to another excel file I don't exactly know what it is. Please tell me what it is. This code I'm building into an exe.

Lastly, I need to Copy one worksheet to another file.

What`s wrong am I doing? I deploy this in server.

Edit
Report