Cannot init Package Manage Console in Visual Studio 2017 - visual-studio-2017

I am using Visual Studio 2017 Enterprise on Windows 10.
And I have got these errors when I tried to use PM console.
The following error occurred while loading the extended type data file:
Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\typesv3.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\typesv3.ps1xml cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170..
Errors occurred while loading the format data file: Microsoft.PowerShell.Diagnostics, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file: Microsoft.PowerShell.Core, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file: Microsoft.WSMan.Management, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file:
Microsoft.PowerShell.Diagnostics, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Microsoft.PowerShell.Core, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Microsoft.WSMan.Management, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
I removed %AppData%/Local/Microsoft/Visual Studio folder.
And reboot laptop, reopened Visual Studio but the same errors occurred.
Can you please fix this?

Related

ColdFusion Administrator: adding data source returns "java.sql.SQLException: General error" error

I am trying to add a data source in ColdFusion Administrator. After I fill out fields and click "Submit" I get this error:
Connection verification failed for data source: <connection name>
java.sql.SQLException: General error
The root cause was that: java.sql.SQLException: General error
Here is screenshot for more clarity:
I am not sure what could be the problem. All data appears to be entered correctly.
I have 2 questions:
Anybody knows what could cause this error?
How can I farther debug this error message? Are there some logs I can look at with more details, like a stack trace or something?
The problem was outdated .jar driver file. My database administrator provided me with new, updated version of .jar driver file and that solved the problem.
Driver in question was InterSystems Caché JDBC driver. I am not sure what versions they were (filename was the same - just CacheDB.jar). However, my "bad" .jar was 704 KB, and my "good" .jar is 2,019 KB.
I am also not sure what version of hotfix I am on, but I doubt it's the latest one at the moment of writing this.

Prevent logging of File not found exceptions

Hi am getting a lot of errors in the coldfusion exception log from bots trying to access files that no longer exists. Below an example:
"Error","ajp-nio-****","12/08/21","11:21:21","****","File not found: **** The specific sequence of files included or processed is: ****'' "
coldfusion.runtime.TemplateNotFoundException: File not found: ***
Is there a way to prevent coldfusion from logging TemplateNotFoundException's in it's exceptions logs?

Error while running unit tests in debug mode in VS2017

While running my unit test in VS2017 in debug mode, after the build the run starts but immediately after i get an exception before any of my breakpoints are hit:
Managed Debugging Assistant 'BindingFailure'
Message=Managed Debugging Assistant 'BindingFailure' :'*The assembly with display name 'Microsoft.VisualStudio.TestPlatform.Extensions.MSAppContainerAdapter' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.Extensions.MSAppContainerAdapter' or one of its dependencies. The system cannot find the file specified.*'
How can I figure it out where is this issue coming from?
The file in the exception message can be found under:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions and has the version 15.0.28307
The VS2017 that i use has the version 15.9.11

How to solve assertion error in libopal?

I just wrote a script that calls a project I got from github that calls a normal telephone number and during development I ran the script without a problem. But deploying it on my server and testing it there I get the following error message
Starting sipcmd
in debug mode
Manager
Init
initialising SIP endpoint...
TestChanAudio
TestChanAudio
Listening for SIP signalling on 0.0.0.0:5060
assert.cxx(112) PWLib Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
<A>bort, <C>ore dump, <T>hrow exception, <I>gnore?
Both machines are running linux and every single library is perfectly installed.
Does someone know how to fix this?
The error code is EPERM so according to the documentation the user running your application doesn't have permission to set the specified policy.
The policy only allows setting the scheduler priority so I guess the application is asking for a priority higher than the user is allowed to use? This question may hold some clues on how to fix this: Why does pthread_setschedparam() produce EPERM on opensuse 11.4

Error : ShinyApp cannot open the connection

I tried to publish a shinyapp to both shinyapp.io and rstudioconnect.com but there has connection error, here I raised Unable publish to RStudio Connect : Error in yaml::yaml.load(enc2utf8(string), ...) : Reader error: control characters are not allowed: #81 at 276 #115 and Error in yaml::yaml.load(enc2utf8(string), ...) : Reader error: control characters are not allowed: #81 at 276 #31. It works locally but once publish became error as you can see whole knitting process via below gif.
I've recorded few animated gif to know the error thoroughly. error 01, error 02, error 03. Kindly refer to the gif, here I also refer to some articles who faced similar error.
Shiny app turns grey when deployed, works fine locally
(shinyapps.io) ERROR: cannot open the connection
ERROR: cannot open the connection
cannot open the connection in Shiny
ERROR: cannot open the connection in R Shiny
Finally its work, but take few minutes to open the webpage... test shinyapp
I forgot to attach the data and functions into the shinyapp, I wondered some functions unable found while I just simply add googleVis:: and purrr:: to get the require function from load the package.