tag:blogger.com,1999:blog-5384857.post1521364827017949406..comments2023-10-10T03:52:55.494+01:00Comments on Under The Stairs: Using Newer Version(s) of .NET with PowerShellUnknownnoreply@blogger.comBlogger10125tag:blogger.com,1999:blog-5384857.post-16249397269325075102017-07-25T10:37:20.014+01:002017-07-25T10:37:20.014+01:00Raman, as the article says:
"To do this, you...Raman, as the article says:<br /><br />"To do this, you need to create a config file, named PowerShell.Exe.Config, located in the same folder as PowerShell.Exe (and another one for PowerShellISE.Exe, or PowerShellISE.Exe.Config)"Thomas Leehttps://www.blogger.com/profile/05591926562143348089noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-20209602425889927622017-07-17T13:17:09.103+01:002017-07-17T13:17:09.103+01:00
Hi Thomas, w... <br /> <br /> <br /> <br /> <br /> <br /><br /><br />Hi Thomas, where to save this Code or past this XML Code so that I can resolve this Error on my PS.Anonymoushttps://www.blogger.com/profile/17686039371223585089noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-63181144051797498762014-05-13T05:36:58.317+01:002014-05-13T05:36:58.317+01:00Its Superb blog , if Rundll error problem go throu...Its Superb blog , if Rundll error problem go through this link and get free from error.<br /><a href="http://windows7support.blogspot.in/2013/10/how-to-remove-rundll-error.html" rel="nofollow">How To Remove Rundll Error</a><br />Thank you<br />Aalia lyonAnonymoushttps://www.blogger.com/profile/10658431130612544488noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-78107320122565245702013-02-19T14:49:15.459+00:002013-02-19T14:49:15.459+00:00You saved my life again Mr Lee :)
Thanks for post...You saved my life again Mr Lee :)<br /><br />Thanks for posting<br /><br />ErnieErniehttps://www.blogger.com/profile/06403070703919122956noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-87925547359006347792013-02-19T14:48:06.452+00:002013-02-19T14:48:06.452+00:00Thanks Thomas, your the man!
I was getting to the...Thanks Thomas, your the man!<br /><br />I was getting to the bottom of my problem, and yet again you helped me out with this post :)<br /><br />ErnieErniehttps://www.blogger.com/profile/06403070703919122956noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-15441401465485231062011-10-10T22:53:54.592+01:002011-10-10T22:53:54.592+01:00A little further, but still not quite successful. ...A little further, but still not quite successful. I managed to get the first DLL to register and the alias defined, but InstallUtil still gives me the "built with a newer version" error.<br /><br /><br />For the record, I discovered another powershell.exe in C:\Windows\SysWOW64\WindowsPowerShell\v1.0\ which is run from the start menu (and gives the command window with the blue background) I had to add the config file there as well.Karlhttps://www.blogger.com/profile/09154186652765794327noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-51531116509335403082011-10-07T19:50:00.508+01:002011-10-07T19:50:00.508+01:00@Karl
I'd double check the .config file is ty...@Karl<br /><br />I'd double check the .config file is typed correctly and is in the same folder as the .exe. When .NET loads an .exe file, it checks the .config file for things to do - like bind to a different version of .NET than was originally planned. <br /><br />Updating the .config file should work - the only things I can think of are typos...Thomas Leehttps://www.blogger.com/profile/05591926562143348089noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-13135051355806675502011-10-07T19:47:03.396+01:002011-10-07T19:47:03.396+01:00@Paul
Yes - that is probably the case. In order to...@Paul<br />Yes - that is probably the case. In order to fix that, you need to create a config file for the remoting exe target (wsmprovhost.exe).<br /><br />I've not tried it, but I would imaging creating a wsmprovhost.exe.config with the same contents would solve the problem.Thomas Leehttps://www.blogger.com/profile/05591926562143348089noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-87055975707145194492011-10-07T19:14:08.297+01:002011-10-07T19:14:08.297+01:00I can't get your fix to work. When I try to r...I can't get your fix to work. When I try to run the "Add-Type" command, I get the same message after adding the config file (and restarting PowerShell). Can you suggest anything I could try? I build and addin with Visual Studion 2010, and it is using the 4.0 framework.Karlhttps://www.blogger.com/profile/09154186652765794327noreply@blogger.comtag:blogger.com,1999:blog-5384857.post-71159872063806205052010-08-02T18:07:15.754+01:002010-08-02T18:07:15.754+01:00the only issue is PSRemoting still uses .net 2.0 s...the only issue is PSRemoting still uses .net 2.0 so if you try to load something remote that is 4.0 it still fails.Anonymoushttps://www.blogger.com/profile/15033122149527599386noreply@blogger.com