Hi all,
As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions -
NAV 2009 R2 - is installed.
NAV 2009 SP1 - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\
NAV 2009 - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\
This approach has been working great for execution of Classic and RTC Clients.
However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error:
---------------------------
Microsoft Dynamics NAV Classic
---------------------------
It is not possible to instantiate the Visual Studio bridge.
---------------------------
OK
---------------------------
After searching for the error i figured out the issue was due to -
Design change in NAV 2009 R2 which uses the .NetBridge rather than the old Visual Studio bridge component.
Solution OR Work Around
The Visual Studio bridge files are included with the binaries in the NAV 2009 SP1 Classic Client folder
so we can avoid the above error by running REGASM.EXE to register the DLL.
The REGASM.EXE is included in the .Net Framework folder so executing the following command from within the NAV 2009 SP1 Classic Client folder will remove the error.
Steps to Resolve the issue
1) Start Command Prompt (* Run as administrator if windows 7)
2) Change directory to location where NAV 2009 SP1 classic is placed.
In my case it is C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\Classic\
So command is CD C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\Classic\.
3) Now find the Location of regasm.exe which is located in .NET Framework
In my machine the path is C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ (for 64 bit)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ (for 32 bit)
4) Now in command prompt run the command
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe Microsoft.Dynamics.Nav.VisualStudioBridge.DLL (64 bit)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe Microsoft.Dynamics.Nav.VisualStudioBridge.DLL (32 bit)
* you can find Microsoft.Dynamics.Nav.VisualStudioBridge.DLL inside classic folder.
5) If everything is correct, you will receive a message "Type Registered Succesfully" as shown in image below.
Problem Resolved !
Thanks & Regards,
Saurav Dhyani
http://saurav-nav.blogspot.in/
This is brilliant! Thank you for the tip.
ReplyDeleteHi Dynamics NAV Entusiast,
ReplyDeleteThanks for the comment.
Hi Saurav,
ReplyDeleteGreat Job....Excellent Work..
Thanks Saurav But one request please also mention that you have copy that dll in Microsoft.NET Frame work because without it its not working.
ReplyDeleteRishi