File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
eFormAPI/Installation/CustomActions Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -391,13 +391,17 @@ public static ActionResult UpdateCA(Session session)
391391
392392 public static bool HandleUpdateWebConfigFile ( string filePath )
393393 {
394+ try
395+ {
396+ var fileContents = File . ReadAllText ( filePath + @"\Web.config" ) ;
394397
395- var fileContents = File . ReadAllText ( filePath + @"\Web.config" ) ;
398+ fileContents = fileContents . Replace ( "<bindingRedirect oldVersion=\" 0.0.0.0 - 10.0.0.0\" newVersion=\" 10.0.0.0\" />" ,
399+ "<bindingRedirect oldVersion=\" 0.0.0.0 - 11.0.0.0\" newVersion=\" 11.0.0.0\" />" ) ;
396400
397- fileContents = fileContents . Replace ( "<bindingRedirect oldVersion= \" 0.0.0.0 - 10.0.0.0 \" newVersion= \" 10.0.0.0 \" />" ,
398- "<bindingRedirect oldVersion= \" 0.0.0.0 - 11.0.0.0 \" newVersion= \" 11.0.0.0 \" />" ) ;
401+ File . WriteAllText ( filePath , fileContents ) ;
402+ } catch { }
399403
400- File . WriteAllText ( filePath , fileContents ) ;
404+
401405
402406 return true ;
403407 }
You can’t perform that action at this time.
0 commit comments