Click here to Skip to main content
15,891,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm having problem to run C# Form project (using Visual Studio 2008 professional edition).

When I try to run the project which I already ran, it says "Error while trying to run project:could not load file or assembly 'WindowsFormsApplication1' one of its dependencies. The module was expected to contain an assembly manifest".

After this error im not able to run any Form or any other project. Please tell me why this error occured and a way to fix this problem.

Thank You.
Posted
Updated 28-May-18 20:03pm
v3

Go to VS command prompt and type devenv.exe /resetskippkgs and Press Enter.

I hope this will solve your problem.
 
Share this answer
 
Comments
Ammar Shaukat 23-Feb-17 0:37am    
I just tried it . it is not working for me . what is it actually ?
SHWEYI PHUU 7-May-17 5:56am    
Hello sir,
I have same error. Please, How to Solve it!
This error means that the application it's trying to run is not there. I would say this means your build failed due to an error in your code.
 
Share this answer
 
go to the build and click clean solutions.It worked for me.
 
Share this answer
 
Comments
ProEnggSoft 25-Mar-12 8:48am    
This also worked for me in a similar situation. +5
[no name] 4-Apr-12 15:02pm    
This worked for me as well.
Great job. My +5
cogang92 29-Dec-12 3:10am    
thanks.it is great
Tarun Saraswat 24-Nov-15 3:45am    
Worked for me
Swapnil Girme 31-Mar-16 1:14am    
worked for me
that can be caused by a software that has been installed in the computer and was corrupted.then what needs to be done is to re-install it and then start the programme again
 
Share this answer
 
i am geting the same problem. and i have restart and reinstall the visual studio two or three times but getting same problem as below.

could not load file or assembly windowsformsapplication1 or one of its dependencies. the moudle was expected to contain an assembly manifest

and not able to run new newly project.

Thanks in advance
 
Share this answer
 
Try reinstalling crystal report for visualstudio 2010

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip

and also add following in you appconfig

XML
<startup useLegacyV2RuntimeActivationPolicy="true"></startup>


Take Care...

Çintemani IITS
 
Share this answer
 
v2
You provided too little information to solve the problem completely, but I explained the background in my recent answer:
Error in running windows form application in vs2010 c#[^].

—SA
 
Share this answer
 
restart your system and run the application therei is maximum chances that it won't show the error..
 
Share this answer
 
Comments
SoMad 18-Feb-13 0:33am    
Especially since the question is 3 years old...

Soren Madsen
just close the application and restart vs again.
 
Share this answer
 
Comments
mehdighazi 11-Apr-11 4:14am    
did not work at all .

i have this error still .
Bala Selvanayagam 3-Oct-11 3:44am    
Goto the "Build" menu anc click on the "Clean Solution" and then try buiding the application and this should work
muzaffar527 25-Jan-12 4:11am    
I am facing a new problem with my project
Yesterday it worked good.. I shutdown my system and came back to my work with the project today,
it is showing the error

Error while trying to run project: Could not load file or assembly 'WindowsApplication1' or one of its dependencies.
The module was expected to contain an assembly manifest.

1. I set my project as startup project
but no use
2. Deleted the Temp folder
then also getting same error
3. I Removed all the references and added freshly
but same error exists



Now...I created a new project WindowsFormsApplication1
and placed a default empty form

Even if I run this simple form project, I am getting same problem

plz help me to solve this problem

I am not understanding the problem,,, wheather it is in my project or visual studio my entire one month work is seems to be gone,,,,,,,,,,,,,,,plz help me,,,,,,
Set Startup Project and Start Page once again.This worked for me.
 
Share this answer
 
I have resolved this problem. Copy the the name of your namespace, then go to the property window for your project and paste it in the text box of assembly name.
 
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