Dbhelper Cannot Be Resolved To A Type

02.01.2020
Java
  1. Name Cannot Be Resolved

I have recently switched my development environment from 32-bit to 64-bit by installing 64-bit and modify it to be used as workstation as described here and I'm really amazed with it’s performance. I have faced the problem mentioned in the post title when I'm trying to run a web application included in one of our development solutions. I have checked the project which has the DBHelper as it’s output and I’ve discovered that the project configured to target x86 platform and as I'm working with 64-bit it will have such ‘incorrect format’ error.

How to fix it: Simply follow the steps below:. open project properties window. select Build tab. Change it to ‘Any CPU’.

Save your changes. Compile your project and run:).

9 Comments. Hi, I have a web site project (VS 2008) that has the build configuration set to Any CPU but still getting the same error for an assembly. Any other steps to solve this? Thanks, Gopalakrishnan Gopalakrishnan -.

Hello Gopalakrishnan, please make sure you have did so for all dependencies your website uses. You can also enable 32-bit mode on IIS and adjust your website and its dependencies to target 86x platform. Let me know if this doesn't work for you. Logic pro 9 keygen. Thank you so much your few lines, fix one day of failed research I'm using Windows 7 64 bit, however it works fine when i switch to x86!!! Feras -.

Thanks a bunch. Spent about an hour before finding this post.

Glad I got luckly and didn't waste a day or more. Changing the dependent project to 'Any CPU' worked for me. Mateo -. I figured out it happened for my WCF project in case I added string in my web.config inside service configuration section. As I remove it, everything works fine. Yuri -. Thanks man.

Resolved

Name Cannot Be Resolved

Saved me some time with this post:) D. Dean -. Thanks for the hint! Saved me hours of searching, had already invested a couple of hours trying everything else! DannyC -. Thanks Man manoj22184 -.

Great. Thanks for the help!