need help adding references to a VS2010 project

I have an Orchard CMS project that runs fine using web matrix, however when I open it in visual studio and try to build the solution, I get errors telling me the references are not correct. I have no idea where to even start troubleshooting this.

Please help point me in the right direction.
Issue-with-VS2010-Project-Build.docx
LVL 1
sqlagent007Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sqlagent007Author Commented:
The project is MVC 3 and Razor
0
alexey_gusevCommented:
"Hayden" seems to be a part of your solution, so just check in your main project:

- go to Project properties, then References
- check the paths: missing references will have 0.0.0.0 as a version
- if that's the case, remove offending reference and add it afresh, selecting from Project tab
0
sqlagent007Author Commented:
At this point I have 2 projects under 1 solution. What I did was r click on the project "Orchard" located above "hayden.ContentAuthorization", then selected "property pages". The first screen was "references". So I clicked on "add", then browsed to the solution file of that project. Once that was done, I attempted a build. Now I am getting this error:

"Error      1      Object reference not set to an instance of an object."

The was I understand Orchard to work is that each module is its own solution. So all of these custom modules will need to be added as references, however I would like to get 1 working first. See screen shot
Obj-ref-not-set-err.jpg
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

sqlagent007Author Commented:
and...Thank you for the help!!
0
alexey_gusevCommented:
ok, then inspect hayden.ContentAuthorization project for its references to see that all is set and available
0
sqlagent007Author Commented:
I did a build on hayden.contentAuthorization and it built with 0 errors
0
alexey_gusevCommented:
you mentioned that you selected a solution for hayden project - is it correct ? I reckon it's just a terminology mistake because you should select a project, not the solution.

if you could post the sources it'd make the life much easier :)
0
sqlagent007Author Commented:
Yes, I made a mistake. (See attached screen shot) I added a reference to the project.

I am happy to post anything you need. Please clarify what you would like me to do.
0
alexey_gusevCommented:
Ideally, post the whole project so we can just get it compiled.

Alternatively, if I were you, I'd create simple project in the same solution where I'd reference that "hayden" project and create one of the objects from it. This should compile. Then you could compare any settings related to referenced component and see what's different.
0
sqlagent007Author Commented:
Please let me know as soon as you have pulled this down.

Source Code: ftp://68.14.213.228/Violet/OrchardProjectSln.zip
username=vsmith
password=CIS_123456 (CIS is all caps)

I know it will work with linking an empty project together, however the issue is that several people were developing custom modules for Orchard, and the control of adding them to 1 solution was not there. So I think what will need to happen is each individual project will need to be added as a reference. If you can just show me how to do 1, I can do the rest.
0
alexey_gusevCommented:
I've downloaded it, thanks. I'll let you know how it goes.
0
sqlagent007Author Commented:
Thank you so much for your help!
0
alexey_gusevCommented:
hmm, so far it compiles with 1-2 errors - working on it
0
sqlagent007Author Commented:
Wow, you are amazing! Thank you so much for your help. When I tried it had more than that.
0
alexey_gusevCommented:
I've just used exact sources you uploaded. What was/is the issue now is one of the modules (Contrib) which is not used in one of the cshtml files but then it generates temp cs file (a-la App_Web_kjhkjhkj.cs) the same namespace cannot be found.
0
sqlagent007Author Commented:
I don't think Contrib.DateTimeField is being used. You can just remove it.
0
sqlagent007Author Commented:
well, I see it in the app_data\dependencies\dependencies.compiled.xml, but I am not sure it is being used by the code.
0
sqlagent007Author Commented:
I figured it out. What I needed to do was download the entire Orchard source code, then add each module to the Modules folder above Orchard.Web
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sqlagent007Author Commented:
solved
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.