When I try to install EntityFramework though NuGet, I get the following:
PM> Install-Package EntityFramework
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 5.0.0'.
Unexpected end tag. Line 46, position 3.
Successfully uninstalled 'EntityFramework 5.0.0'.
Install failed. Rolling back...
Install-Package : Unexpected end tag. Line 46, position 3.
At line:1 char:16
+ Install-Package <<<< EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], XmlException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
This happens with older versions of EntityFramework as well.
Are you able to build and execute your application before installing entityframework. What I am guessing is there could be an error in web.config or some other file that has an unexpected end tag. Another thing would be to try installing it on a different project and if you still see the issue?
For example, when I tried to install it on a project with malformed web.config I get the following error:
install-package entityframework
You are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'EntityFramework 5.0.0'.
Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 12, position 5.
Successfully uninstalled 'EntityFramework 5.0.0'.
Install failed. Rolling back...
install-package : Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 12, position 5.
At line:1 char:1
+ install-package entityframework
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], XmlException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Related
I have installed node.js and then installed npm live server
but when i want to use live server using terminal in vs code by
live-server
I get:
live-server : File C:\Users\**\AppData\Roaming\npm\live-server.ps1 cannot be loaded
because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ live-server
+ ~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
so how can i solve this problem?
The answer in the output
For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
You have to turn on script execution in your Windows.
I am trying to code a discord Bot.
When i install Node.js to Path, Everything seems fine. However, then i go to Visual Studio Code, type in terminal npm init and this error comes up:
npm init
~~~
CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
I am not sure how to interpret or fix this error.
Hi,
it's a problem that a lot of users like you have. There are no 3000 solutions for this. The easiest way (and the one I would recommend) is to use the manual installation method available at https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows
If the problem persists, I invite you to try to reinstall Nodejs and take the last available version (here 9.3.0)
https://nodejs.org/en/
I am working with an application that we deploy through a NuGet package and with the latest version I see the following error:
Attempting to resolve dependencies for package 'MyPackage-2.2.1.alpha-17' with DependencyBehavior 'Lowest'
Install-Package : Unable to find a version of 'Antlr' that is compatible with 'MyPackage-2.2.1.alpha-17 constraint: Antlr (= 3.4.1.9004)'.
At line:1 char:1
+ Install-Package MyPackage -Version -2.2.1.alpha-17 -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
In the MyPackage.nuspec file metadata we have the following:
<dependencies>
<dependency id="Antlr" version="[3.4.1.9004]" />
<!-- and so on -->
This is a legit version of Antlr and the dependency seems to be fine. In fact changing the Antlr version doesn't stop the error message and as far as I can judge the problem is caused by another missing reference in the .nuspec file but the error message just references the first dependency in the list.
I have tried using the -Verbose option ( as the error message shows ) but it just gives me a list of HTTP requests between the various package repositories and my local machine.
I can't figure out how to validate the package or get more information on what is actually going on. How do I find what dependency is really causing the package to fail?
Is there a way to create a PCL with NServiceBus messages (like you can for ServiceStack)? I tried to add the NuGet package but I doesn't seem to support Xamarin
Install-Package NServiceBus
Install failed. Rolling back...
Package 'NServiceBus 5.2.5' does not exist in project 'RZ.Services.ServiceModel'
Install-Package : Could not install package 'NServiceBus 5.2.5'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<< NServiceBus
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Any work arounds of future plans to support this? We will indeed never use NServiceBus on other platforms, but we might want to use both NServiceBus and ServiceStack to support different scenario's, and since those will be sharing messages those must be placed in one class library.
It is probably best not to reference NServiceBus for your messages and better to use unobtrusive mode.
See the documentation here: http://docs.particular.net/nservicebus/messaging/unobtrusive-mode
This makes sure that your message do not have to inherit from any of the NServiceBus marker interfaces.
To configure unobtrusive mode see the following example partially copied from the doco:
BusConfiguration busConfiguration = new BusConfiguration();
ConventionsBuilder conventions = busConfiguration.Conventions();
conventions.DefiningCommandsAs(t => t.Namespace != null && t.Namespace == "MyNamespace" && t.Namespace.EndsWith("Commands"));
conventions.DefiningEventsAs(t => t.Namespace != null && t.Namespace == "MyNamespace" && t.Namespace.EndsWith("Events"));
conventions.DefiningMessagesAs(t => t.Namespace != null && t.Namespace == "Messages");
I want to use Nhibernate and I write a this code package console manager
Install-Package NHibernate
and I get this error
Install-Package : Unable to resolve dependency 'Iesi.Collections (≥ 3.2.0.4000)'.
At line:1 char:16
+ Install-Package <<<< NHibernate
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
and then I want to install Iesi.Collections and i try this code
PM> Install-Package Iesi.Collections -Version 3.2.0.4000
Install-Package : Unable to find package 'Iesi.Collections'.
At line:1 char:16
+ Install-Package <<<< Iesi.Collections -Version 3.2.0.4000
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Have any idea to solve this problem? :S
I had exactly this problem this morning.
I'm guessing it was because different projects in my solution referenced different version of the same assemblies which made Nuget freak out.
I got it working after doing this:
Uninstall everything that depends on Iesi.Collections like Nhibernate, FluentNHibernate etc by running Uninstall-Package <name>.
Uninstall Iesi.Collections (Uninstall-Package Iesi.Collections)
(Verify that there isn't any references to different versions of the same assemblies, look in the packages-folder for multiple folders with different version number)
Add your nuget packages again
If you, like me, got quit a few packages and don't remember all of them on top of your head, Run Get-Package and copy output to notepad before you remove anything and you can simply add everything again in a minute.
(Edit: I'm running this version of Nuget http://nuget.codeplex.com/downloads/get/382255 after following some link in this page)