Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw Error: "hexadecimal value 0x00, is an invalid character." #1650

Closed
maartenba opened this issue Oct 28, 2015 · 2 comments
Closed

Throw Error: "hexadecimal value 0x00, is an invalid character." #1650

maartenba opened this issue Oct 28, 2015 · 2 comments
Labels
Resolution:Duplicate This issue appears to be a Duplicate of another issue

Comments

@maartenba
Copy link
Contributor

From @Cuiqs76 on October 28, 2015 13:25

VS2015 & Windows 10 environment Nuget the Prism.Unity throw Error "hexadecimal value 0x00, is an invalid character."

When nugeting, the computer power off. restart computer and reload the program. the package file show messy code. and delete the package file. try to re-nuget , the error throw.

Attempting to gather dependencies information for package 'Prism.Unity.6.1.1' with respect to project 'MonitorDemo', targeting '.NETFramework,Version=v4.6'
Attempting to resolve dependencies for package 'Prism.Unity.6.1.1' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Prism.Unity.6.1.1'
Resolved actions to install package 'Prism.Unity.6.1.1'
Install failed. Rolling back...
Package 'Prism.Unity 6.1.1' does not exist in project 'MonitorDemo'
Package 'Prism.Unity 6.1.1' does not exist in folder 'E:\MonitorDemo\packages'
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream)
at NuGet.Packaging.Core.NuspecCoreReaderBase..ctor(Stream stream)
at NuGet.Packaging.NuspecReader..ctor(Stream stream, IFrameworkNameProvider frameworkProvider)
at NuGet.Packaging.NuspecReader..ctor(Stream stream)
at NuGet.Packaging.PackageReaderBase.get_Nuspec()
at NuGet.Packaging.PackageReaderBase.get_NuspecCore()
at NuGet.Packaging.Core.PackageReaderCoreBase.GetIdentity()
at NuGet.PackageManagement.NuGetPackageManager.d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.PackageManagement.NuGetPackageManager.d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.UI.UIActionEngine.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.UI.UIActionEngine.d__3.MoveNext()

Copied from original issue: NuGet/NuGetGallery#2751

@yishaigalatzer
Copy link

Duplicate of #1550

Looks like one of your app.config or web.config files is corrupt.

@yishaigalatzer yishaigalatzer added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label Oct 28, 2015
@mortezabarzkar
Copy link

Then you can run the following commands::

nuget.exe locals -clear global-packages
nuget.exe locals -clear packages-cache
nuget.exe locals -clear http-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution:Duplicate This issue appears to be a Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants