Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
semedao - 20 Aug 2006 08:44 GMT
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
Linda Liu [MSFT] - 21 Aug 2006 10:41 GMT
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.
semedao - 21 Aug 2006 12:33 GMT
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

> Hi Semedao,
>
[quoted text clipped - 45 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.