Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 2-Jul-12 22:46pm
PKeloor895
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Espen Harlinn at 3-Jul-12 16:46pm
   
5'ed!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Espen Harlinn at 3-Jul-12 16:46pm
   
5'ed!
amitgajjar at 4-Jul-12 1:12am
   
Thanks a lot...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

i have also same error...
 
Thanks
Ajay Ahitan
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 410
1 Maciej Los 258
2 CHill60 222
3 OriginalGriff 210
4 Sinisa Hajnal 125


Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100