Microsoft Dynamics NAV 4.x and Windows Vista

 

I've talked yesterday about the fact that Microsoft Dynamics NAV 4.x is not officially supported on Windows Vista, and I've said also that I've see tricks in order to run it with the new OS.

First, I've to be more precise: the Dynamics NAV client works correctly on Vista, there's no problem to install and use it.

However, there's a problem when you try to connect to a SQL Server database due to a wrong MDAC detection.

The cause of this problem is the unified versioning of all DLL that Vista has. My friend Kine has found a trick that I want to share with you (reported here in order to don't loose it, it can be useful in future):

As he explain, Navision is detecting MDAC version through File version of SQL ODBC driver (sqlsrv32.dll). On Windows XP you can see version like 2000.85.1117.0 etc, but on Vista the file has version 6.0.5600.16384 and this is “less" than the requested version. Changing MDAC detection in Navision is no way.

The trick to run Dynamics NAV 4.x on Vista is this:

  1. You need some resource editor tool, for example the Resource Hacker application

  2. Copy the file sqlsrv32.dll from your Vista system32 folder to another place.

  3. Open this copy in the resource editor

  4. Change FILEVERSION value to new value e.g. 2000.85.1117.0 (in the header of Version info ressource)

  5. Compile the resource

  6. Save the file (backup original file!)

Now you need to copy the file back into system32 folder. But under Vista, this is not easy task. The file cannot be changed because just installer has enough rights.

Replacing original file with modified one:

  1. Open properties of the original file

  2. On the Security tab click Advanced

  3. On the Owner tab click Edit

  4. Select new owner of the file, for example your account

  5. Commit all changes

  6. Change permissions for your account to have all rights
  7. Commit all changes
  8. Now you are able to delete the file – delete it

  9. Copy the modified file into system32 folder

Thanks a lot Kine...

I hope that this problem with MDAC will be solved with the next Service Pack releases for Dynamics NAV (SP3 is attended in a near future but there's no sign for this problem).

Print | posted on Wednesday, September 27, 2006 8:27 AM

Comments on this post

# re: Microsoft Dynamics NAV 4.x and Windows Vista

Requesting Gravatar...
Not Kyne but Kine pls... ;-)

Kine
MVP-Dynamics NAV
Left by Kine on Sep 27, 2006 9:00 AM

# re: Microsoft Dynamics NAV 4.x and Windows Vista

Requesting Gravatar...
You're right... sorry Now it's ok.
Left by Stefano Demiliani on Sep 27, 2006 9:01 AM

# CRM 3.0 with Windows Vista and Office 2007

Requesting Gravatar...
CRM 3.0 with Windows Vista and Office 2007
Left by STEFANO DEMILIANI on Oct 04, 2006 1:50 PM

# re: Microsoft Dynamics NAV 4.x and Windows Vista

Requesting Gravatar...
Thanks, thanks.Finaly Navsion run on SQL and on Windows Vista.
Thanks.
Left by RAFAA on Mar 23, 2007 11:02 PM

# Dynamics NAV, SQL Server and Vista

Requesting Gravatar...
Dynamics NAV, SQL Server and Vista
Left by STEFANO DEMILIANI on Mar 25, 2007 3:08 AM

# re: Microsoft Dynamics NAV 4.x and Windows Vista

Requesting Gravatar...
I have done all the steps and it works thanks! but when i tried to open the Nav4sp2 file the system produced a error message that said there is no No. 46-100 in the stx file. I tried to copy other version of the file but to no avail. Do you have any idea how to get around this issue?

Thanks
Left by Bernard on Jul 11, 2008 1:15 PM

# re: Microsoft Dynamics NAV 4.x and Windows Vista

Requesting Gravatar...
I have sorted out this problem by using NAV4SP3 and it all works fine. Thanks
Left by Bernard on Jul 11, 2008 1:44 PM

Your comment:

 (will show your gravatar)
 
Please add 8 and 7 and type the answer here: