EXCEL INTERLOP CHART ERROR C# - A share violation has occurred. (Exception from HRESULT: 0x80030020 (STG_E_SHAREVIOLATION))
Please download the file attached
When I press Button1 twice I get the error A share violation has occurred. (Exception from HRESULT: 0x80030020 (STG_E_SHAREVIOLATION)) Please help me solve this issue.
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
xlApp = new Excel.ApplicationClass(); is not correct here. Use the following codes: xlApp = new Excel.Application(); Note: I am using VS2010. Good Luck.
George ericPosted Apr 16, 2012, 3:58 AM