System.Diagnostics.Process and windows 10

gbierkensgbierkens Member Posts: 49
edited 2015-08-18 in NAV Three Tier
Hi,

I use a dotnet variable to open a hyperlink in NAV 2009R2 RTC.
But after upgrading a pc to windows 10 the specic functionality returns an error.

I used the following locals
ReturnUrl	Text		250
Pos	Integer		
proc	DotNet	'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Diagnostics.Process	


I used the following code:
//Default DMS url containing a %1
ReturnUrl := "DMS Document Url";

//Replace %1 with searchterm in hyperlink
Pos := STRPOS(ReturnUrl,'%1');
ReturnUrl := DELSTR(ReturnUrl,Pos,STRLEN('%1'));
ReturnUrl := INSSTR(ReturnUrl,VarText,Pos);

proc := proc.Process;
proc.StartInfo.FileName := ReturnUrl;
proc.Start;

When calling this function after upgrading, I get the following error

6FFkFB7D.png

"This message is for C/AL programmers. The call to member Start failed. "

Does anyone have a suggestion to solve this issue?

Comments

  • gbierkensgbierkens Member Posts: 49
    There are some other issues that are "dotnet related".
    The chart part also gives an error that "not all dependancies for control are found".

    kEZ2Jeey.png

    I have activated the dotnet 3.5 (including 2.0 and 3.0) in the windows configuration.
    But this doesn't have any effect.

    Anyone else who has run into these issues?
Sign In or Register to comment.