Could not load file or assembly..The system cannot find the file specified

S

semedao

Hi All,

I developed Outlook add-in with VS 2005 , everything work fine , until the
machine reboot unnormally , when I opened the solution again

many projects was not there ! (I have more then 10 project that depends each
other).

I add them again , also add the primary output again to the setup project.

the build was without errors but I saw that it's skip all the
sub-projects... even if the dependencies was ok ! , so based on the article
on

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=172098&SiteID=1

and change the solution configuration that will build all etc..

the build + setup was correct , but then when I run outlook the add in start
to throw exception that some assmbly (the based one that all other dependes
on him) is not find

Could not load file or assembly 'Types, Version=1.0.2420.758

I saw that it was copied to the program files\app folder etc , but the
version number was different ! 1.0.2423.18652 instead of 1.0.2420.758 that
the runtime looked for

when I looked in reference to this assembly in other projects that reference
it - its point to the 1.0.2423.18652 (newer version) also.

Why the runtime looked for other version and how I can solve it ?

also , when I try to go to some backup version of my solution before all the
bugs that worked fine... it also throw the same error !

thanks a lot
 
L

Linda Liu [MSFT]

Hi Semedao,
I developed Outlook add-in with VS 2005 , everything work fine , until
the machine reboot unnormally , when I opened the solution again many
projects was not there !

Do you mean that after the machine reboot unnormally, you opened the
solution only to find that many projects couldn't load in the solution?

Maybe this is just a phenomenon that has no relation the problem. I know
that if we change the locations of the sub-projects and open the solution
in VS again, VS won't find the sub-projects. Is this the reason?
Why the runtime looked for other version and how I can solve it ?

Maybe the reason is that you haven't rebuilt all the relevant sub-projects.
Is the setup project in the same solution? If yes, you could rebuild the
setup project to rebuild all the relevant sub-projects one by one. To do
this, right click the setup project in the Solution Explorer and select
Rebuild command from the shortcut menu. Then you may reinstall the add-in
program.

Please try my suggestion and let me know the result.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

semedao

Hi Linda,
first thank you for the answer.
but I already solve it , I try all what your suggestions , but what solve it
in the end was:
1. because of the re-adding of the project , for some reason , the
configuration changed from debug to release..
so I changed it back to debug.
2. I changed the all project assmebly version to higher version.
I write it here , for others that will have the same problem :)
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top