Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Upgrading OS to x64
 

Pages: 1
Bugs & Issues
Upgrading OS to x64
Page:1/1 

  Print all messages in this thread  
Poster Message
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 30-Oct-2009 16:42:01.  
v2.6

After I've upgraded my computer to x64 templates (of a project built on x86) aren't found anymore, at least some of them.
Default template bindings are pointing to absolute path starting with C:\Program Files\Solution .... which is obviously wrong since LLBLGenPro lives in x86 folder (why don't you distribute it as x64 as well?)

What would be the easiest way to solve the issue? reinstall of LLBLGenPro?
Note that new LLBLGenPro project works fine.

Miha

Let me know if you need further info.
Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34993 posts
# Posted on: 30-Oct-2009 18:15:18.  
As everything is tested inside folders not present in program files, there's no hard-coded path (the test env. doesn't even have it installed) to that folder.

Did you add an additional templates folder in the preferences/project properties?


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 30-Oct-2009 18:32:10.  
Yes, I've added a project-relative folder.

Take note that when the project was created LLBLGenPro was in Program Files folder while now it resides in Program Files(x86).

I'd add a screenshot of current state but it looks like I can't (even though [add attachment] is checked).
Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 30-Oct-2009 18:32:43.  
Yes, I've added a project-relative folder.

Take note that when the project was created LLBLGenPro was in Program Files folder while now it resides in Program Files(x86).

Screenshot of current "Generate/Template Bindings" is attached.

UPDATE: Linq and BackwardsCompatibility.NET20 bindings seems ok (relative) while SharedTemplates and SqlServerSpecific ones are absolute.


Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34993 posts
# Posted on: 31-Oct-2009 09:48:06.  
mihies wrote:
Yes, I've added a project-relative folder.

Take note that when the project was created LLBLGenPro was in Program Files folder while now it resides in Program Files(x86).

Screenshot of current "Generate/Template Bindings" is attached.

UPDATE: Linq and BackwardsCompatibility.NET20 bindings seems ok (relative) while SharedTemplates and SqlServerSpecific ones are absolute.

Please check the xml in the templatebindings files, they all should contain just relative paths (they do here in the official files).
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 31-Oct-2009 10:00:52.  
Yes, they are relative.

Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34993 posts
# Posted on: 01-Nov-2009 10:57:18.  
mihies wrote:
Yes, they are relative.

Hmm. Ok, so somewhere the full path is constructed from the fragment of the 32bit path. This is the 'root folder' where the templatebindings file is read from.

This folder is specified in the llblgenpro.exe.config file, which is also a relative path. Futher, if you have specified a full path in the additional templates folder property/preference, the bindings there are read from that folder and that folder is the 'root' folder of all relative folders in the bindings file.

So, do you have the original 32bit folder specified as additional folder in preferences/properties?
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 01-Nov-2009 11:09:53.  
Hey Frans,

Mistery solved, thank you and sorry to bother you.
I actually use copies of mentioned problematic .templatebindings files and there the paths are, of course, absolute because the templatebindings files are stored in a subfolder of my .net project.
I forgot it since I've created it a long time ago and didn't consider that .templatebinding files in AdditionalTemplates takes precedence over default ones (whichs makes sense of course).
Furthermore upgrading to x64 misleaded me.

To avoid such (dumb user) mistakes in the future perhaps you could
a) show the origin of templatebinding files in Generate dialog. There is enought place in description part of the window.
b) perhaps there is a better way than specifying absolute paths? Some sort of variable, like %LLBLGenProRoot%?


Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 01-Nov-2009 11:45:19.  
Perhaps just leaving relative path will do the trick? Is the relative path in templatebinding always relative to LLBLGenPro or to the folder where templatebinding file resides?

Looks like this won't work.
Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
34993 posts
# Posted on: 01-Nov-2009 12:45:37.  
to where the templatebindings file resides, that folder is stored in the bindings file and when asked the full path is created from that folder and the relative folder. IMHO that's enough?

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
mihies
User



Location:
Nova Gorica, Slovenia
Joined on:
29-Jan-2006 16:00:15
Posted:
738 posts
# Posted on: 03-Nov-2009 09:03:15.  
Right, that's enough.
Miha Markic [MVP C#, INETA Country Leader for Slovenia, LLBLGenPro Partner, DXSquad, Friend of Red Gate]
Blog:http://blog.rthand.com/
Righthand .net consulting and software development
http://www.rthand.com/
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.