Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C# Visual Studio will not compile

Posted on 2014-03-22
13
Medium Priority
?
351 Views
Last Modified: 2014-04-08
Hello Experts,

I have a Visual Studio 2008 project (C#) that will  not compile.

I am getting the following error:

Warning      1      Referenced assembly 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\vjslib.dll' targets a different processor than the application.      

Does anyone know how to rectify this?

Thanks!
0
Comment
Question by:Saxitalis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39947920
Is that dll locked by another process?

Did you try closing VS, reopening and compiling again?
0
 

Assisted Solution

by:Saxitalis
Saxitalis earned 0 total points
ID: 39947939
Hmm - how can I tell if another process is causing this?

I did try closing and re-opening VS but same thing.
0
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39947949
In Task Manager, can you see the processes running?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39947955
Do you have other 2008 projects that compile or is this the only one that doesn't?
0
 

Assisted Solution

by:Saxitalis
Saxitalis earned 0 total points
ID: 39947969
Yes  other C# VS studio ptojects compile just fine.

The one that won't compile is actually an exact copy of one that will (compile) with one change. It is an SQL server data driven application. I am connecting to the same database on a different SQL server instance via a different ODBC connection. I have done this quite a bit and never had problems.

Any ideas?
0
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39947992
Can you change the ODBC to the same one that's working and see if it will compile? just as a test (I doubt it's related tho)
0
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39947994
What is your target CPU?

This is how you get to it in VS2010 :  go to your Project Properties, go to Compile, Advanced Compile Option

Compare the one that works with the one that doesn't
0
 

Assisted Solution

by:Saxitalis
Saxitalis earned 0 total points
ID: 39948190
Target CPU is any on both. I changed it to X64 only (my machine) but same thing..
0
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 2000 total points
ID: 39948193
I have to say I don't know and you can click "request attention" to see if others can help.

Since you copied and created another project...I'm guessing there's a conflict with that dll.
0
 
LVL 7

Accepted Solution

by:
Camillia earned 2000 total points
ID: 39948194
Did you try setting it to x86?
0
 

Author Comment

by:Saxitalis
ID: 39976481
Please close
0
 

Author Comment

by:Saxitalis
ID: 39976484
I am the question asker
0
 

Author Closing Comment

by:Saxitalis
ID: 39985523
All good suggestions - Something was corrupted in this solution. I made a new copy of the same solution and it compiles fine.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question