tags:

views:

511

answers:

2

Hi, My application uses windows authenctication. user login with their username/password and upload an excel sheet. The issues is while uploading the excel ,one user able to upload the excel file but another user get an error "No error message available, result code: E_FAIL(0x80004005)". But the code is same. I dont know whats the actual problem is? Please Help?

A: 

Not 100% sure, but can you check:

  1. The user has permissions on the folder where the excel is uploaded.
  2. If you are using OleDBCommand, and the file name is invalid then too you might get same error.
danish
A: 
// User was neither granted nor denied read access.
// Pass the callback method the integer
/// value of E_FAIL.
hr = unchecked((int)0x80004005);

This is how the implementation of return value usually goes. The comment may point you the possible problem.

antreality