开发者

Having problem with setup project in visual studio 2010?

开发者 https://www.devze.com 2023-03-16 17:12 出处:网络
i have create a c# form application for parsing Html using Winista.html parser. Now i have created a setup project for this and when i install the setup and run it generates error

i have create a c# form application for parsing Html using Winista.html parser. Now i have created a setup project for this and when i install the setup and run it generates error

System.IO.FileNotFoundException: Could not load file or assembly 'Winista.HtmlParser,
Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The 
system cannot find the file specified.
File name: 'Winista.HtmlParser, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null'
at Investigator.Form1.googleNewsSearcher()

Why is this happening ? Why is it not finding the dll , i pasted the winistal.HTMLParser in the bin folder ,and add reference to it .Is there any thing missing please help this is very ur开发者_如何学运维gent , i have to submit this?

Thank you


YOu have to add a reference, when you create a setup project it doesn't look in the bin folder for assemblies it checks references. You should be able to add the assembly to the setup project. I would suggest that you add it as a reference though.

You might also need to re-add the primary project to the setup project once you do this, but I think a rebuild should solve it once you added the reference to the assembly.

Update
Try right clicking on the reference and select copy always. This will insure that the assembly is always coppied to the bin folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消