ResGen error

This forum is for programmers who have questions about the source code.
Post Reply
alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

ResGen error

Post by alkhaef » Mon Jan 03, 2011 4:11 pm

Hi all...

Does anyone know where on earth to find the corflags executable?

I'm trying to build on my 64-bit machine, and it's not in the path "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin". I've tried reinstalling SDKs, but no luck :(.

Alternately, does anyone know of another workaround?

Thanks again,
Al
Al
Help! I've OD'ed on OD! :)

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Mon Jan 03, 2011 5:05 pm

Do you have dotNet 3.5 installed? How far do you get down your path before you can't go anymore? Is C:\Program Files (x86)\Microsoft SDKs\Windows present?
Jordan Sparks, DMD
http://www.opendental.com

alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

Re: ResGen error

Post by alkhaef » Tue Jan 04, 2011 9:03 am

Hi Doc,

Thanks for the quick reply.

Yes, I have .net 3.5 - i believe SP1 (not at that machine now). I have the entire path. It's just that the executable is missing. I even tried a deep search in "Program Files" and "Program Files (x86)", but couldn't find it.

Best,
Al
Help! I've OD'ed on OD! :)

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Tue Jan 04, 2011 12:34 pm

Then I really have no idea. Maybe google to see if anyone else is missing that file too?
Jordan Sparks, DMD
http://www.opendental.com

alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

Re: ResGen error

Post by alkhaef » Tue Jan 04, 2011 12:54 pm

Thanks anyway. I already googled till I ran out of keywords... Maybe I'll ask Microsoft.
Al
Help! I've OD'ed on OD! :)

alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

Re: ResGen error

Post by alkhaef » Mon Jan 10, 2011 10:04 am

FYI for any later viewers...

A reboot made corflags appear :P. Then, the ResGen fix on the OD site worked :).
Al
Help! I've OD'ed on OD! :)

User avatar
B.Thomas
Posts: 160
Joined: Mon Jul 23, 2007 11:00 pm

Re: ResGen error

Post by B.Thomas » Mon Aug 22, 2011 2:59 pm

I kept having the Resgen.exe error as well. I followed the directions on the Open Dental Source Code page;

http://www.opendental.com/manual/sourcecode.html

After Line 3 I had a problem:

3. Copy and paste:
Corflags /32Bit+ /Force ResGen.exe
then Enter. If successful, you will see about 5 lines of text, including "warning CF011: The specified file is strong name signed".


Instead I received the response; "Corflags is not recognized as an internal or external command"

So I researched Corflags and it brought me to the MSDN site where it says;

Where to get corflags.exe. It comes as part of Visual Studio 2010. Open up a "Visual Studio Command Prompt" (not a normal command prompt, as the path won't be set up), and you can call it.


I am currently using C# Express. So my assumption is that the express version will not compile Open Dental and the full version of Visual Studio is required.

alkhaef
Posts: 105
Joined: Fri Jul 02, 2010 10:37 am
Location: Los Angeles, CA

Re: ResGen error

Post by alkhaef » Mon Aug 22, 2011 3:13 pm

Hello Dr. Thomas,

Honestly, it's been too long for me to remember how I got out of it, but I can tell you this much - Express should be just fine. I've built OD with express plenty.

Good luck!

Best,
Al
Al
Help! I've OD'ed on OD! :)

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Mon Aug 22, 2011 3:23 pm

I think it just means you are not yet in the folder where corflags resides. We gave two possible paths, but Express might have installed things in slightly different locations. You have to hunt for it.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
B.Thomas
Posts: 160
Joined: Mon Jul 23, 2007 11:00 pm

Re: ResGen error

Post by B.Thomas » Tue Aug 23, 2011 6:06 am

This is the first time I am attempting to build OD on my new Windows 7 64 bit machine so I'm guessing it may be related to the operating system.

Creation125
Posts: 25
Joined: Fri May 23, 2008 10:05 am

Re: ResGen error

Post by Creation125 » Thu Aug 25, 2011 7:24 pm

I am also getting the error "Corflags is not recognized as an internal or external command" on my Windows 7 Professional computer. I looked in the folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin", but Corflags is not there. I am also running using C# Express.

If anyone has a solutions, please post. I've been working on this for 2 hours with nothing working.

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Fri Aug 26, 2011 8:37 am

And you did a search for corflags on your computer?
Jordan Sparks, DMD
http://www.opendental.com

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Sat Aug 27, 2011 3:38 am

OK, I posted a copy of corflags.exe for you to download and try. Let me know how it goes.
Jordan Sparks, DMD
http://www.opendental.com

Creation125
Posts: 25
Joined: Fri May 23, 2008 10:05 am

Re: ResGen error

Post by Creation125 » Mon Sep 12, 2011 11:18 am

Where can I find the corflags file to download?

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Mon Sep 12, 2011 3:08 pm

Jordan Sparks, DMD
http://www.opendental.com

Creation125
Posts: 25
Joined: Fri May 23, 2008 10:05 am

Re: ResGen error

Post by Creation125 » Mon Sep 12, 2011 3:30 pm

Thanks for the file. Downloaded to fold and renamed to .exe file. Unfortunately, did not work with the following error:

Unsupported 16-bit Application
The program or feature "\??\C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\corflags.exe" cannot start or run due to incompatibility with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

afeuer
Posts: 93
Joined: Tue Aug 26, 2008 8:45 pm

Re: ResGen error

Post by afeuer » Fri Oct 14, 2011 10:43 am

I had the same problem. Install this first. http://www.microsoft.com/download/en/co ... px?id=8279
Then I found it here: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin

I'm running windows 7 64bit.

I ran the fix in the source code page and it gave the CF011 error and everything. I've tried so many different fixes I've found online. I just find it easier to compile OD on one of my 32bit workstations. Sucks, but I've already spent many hours trying to fix that stupid error.

-Adam

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Sat Oct 15, 2011 2:21 pm

So are you saying that the link you posted is a fix?
Jordan Sparks, DMD
http://www.opendental.com

Creation125
Posts: 25
Joined: Fri May 23, 2008 10:05 am

Re: ResGen error

Post by Creation125 » Thu Nov 10, 2011 8:02 am

I'll give it a try tonight.

afeuer
Posts: 93
Joined: Tue Aug 26, 2008 8:45 pm

Re: ResGen error

Post by afeuer » Thu Dec 29, 2011 1:56 pm

sorry I forget to look in this forum every once and a while. I was just sending the link showing where to find the coreflags.exe. I still can't compile it on a 64 bit machine. I've completely given up and only do it on 32 bit systems.

-Adam

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: ResGen error

Post by jordansparks » Sat Dec 31, 2011 8:59 am

Hmm. We all have 64 bit machines here. I just don't know.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
jsalmon
Posts: 1555
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: ResGen error

Post by jsalmon » Fri Feb 10, 2012 1:19 pm

This doesn't have to do with the ResGen.exe error but I ran across this the other day and since the word ResGen was in the file section of the error, I figured it might help someone else browsing for related ResGen issues. The solution is to make sure you have all projects set to build within the solution's Configuration Manager (UnitTest, WebForms and WebHostSynch are optional if you don't want to build them).
Error description was: "Caught a FileNotFoundException saying "Could not load file or assembly ' [path to a specific dll] ' or one of its dependencies. The system cannot find the file specified." The file was: "ResGen" The project was: "OpenDental"
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Creation125
Posts: 25
Joined: Fri May 23, 2008 10:05 am

Re: ResGen error

Post by Creation125 » Fri Feb 10, 2012 3:55 pm

I couldn't make it run either, and have also given up.

ZagGrad
Posts: 4
Joined: Wed Oct 19, 2011 5:03 pm

Re: ResGen error

Post by ZagGrad » Tue May 22, 2012 10:29 pm

I'm just starting to look into building some plug-ins for OD, but ran into similar problems. I'm new to C# and Visual Studio Express though, so that could be a big part of the problem. Anyway, after digging around for a while I found this on the MSDN link that Jordan posted:
Workaround 3:

Force the CLR to load all MSIL applications as 32-bit by:

1. Cd “%windir%\Microsoft.NET\Framework64\v2.0.50727”

2. Ldr64.exe setwow

Then, since this also is a way to force ResGen.exe to execute as though it’s a 32-bit process, you must also go through the second part of Workaround 2 (setting ResGenToolArchitecture=Managed32Bit).

Pros: Doesn’t require changing the architecture of the referenced assembly

Cons: Affects how the CLR works for the entire machine. Also the same cons as Workaround 2.
Keep in mind, I have Visual C# 2010 Express installed on a Windows 7 64 bit machine. After I followed these instructions the resgen build errors went away. I still have quite a few warnings to take care of, but the solution successfully builds. So I'm on the right path. A word of warning, however: I have absolutely no idea what this did to the compile process or how it might affect any other projects.

User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Re: ResGen error

Post by drtech » Sat Jun 30, 2012 11:03 am

I tried this yesterday and it didn't work, now I tried it today (after trying many other things and restarting) and now it complies! Yeah! I spent literally 6 hours yesterday trying to get it to work again on my new install of windows on my same 'ol laptop!
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

Post Reply