Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir/Madam,

"Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified".

I am getting error like this in server( asp.net application hosted server).
I have developed the application in Visual studio 2010 framework 4.0 and sql server 2008. In my system it is working fine, but when I will deploy and run in godaddy.com server it is showing this kind of error. More explanation about project in web based application I am importing data from MS excel file to grid view ihn this time it is showing error. In my system it is working perfectly and I guess in my system I installed MS office 2010 but in godaddy server it is not there so please let me know how to solve this problem.


Thanks
Prabhu
Posted

Could not load file or assembly 'office, Version=14.0.0.0
It is working fine on your system as you have this assembly on your system - Office.dll v14.0.0.0

You have Office of that version installed on your system and it worked all good. This must be missing on the server and hence the error. You need to either provide/ship the Office dll in your bin along with other dll's or install the correct version of office on server.
 
Share this answer
 
Comments
Espen Harlinn 3-Jul-12 16:46pm    
5'ed!
Hi,

Shared hosting from godaddy are not providing office DLL installed on their server. in your local machine you have MS office library are installed in your GAC. So you can search for such hosting provider who can install on demand library.

hope this information will help you,

thanks
-Amit.
 
Share this answer
 
Comments
Espen Harlinn 3-Jul-12 16:46pm    
5'ed!
AmitGajjar 4-Jul-12 1:12am    
Thanks a lot...
i have also same error...

Thanks
Ajay Ahitan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900