Exception:Corrupt .resources file. Unable to read resources from this file because of invalid header information. Try regenerating the .resources file.无法在流的结尾之外进行读取。

报错信息

BadImageFormatException: Corrupt .resources file. Unable to read resources from this file because of invalid header information. Try regenerating the .resources file.
--Message: Corrupt .resources file. Unable to read resources from this file because of invalid header information. Try regenerating the .resources file.
StackTrace:
   在 System.Resources.ResourceReader.ReadResources()
   在 System.Resources.RuntimeResourceSet..ctor(Stream stream)
   在 System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream store, Assembly assembly)
   在 System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
   在 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
   在 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   在 System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
   在 System.Net.ConnectStream.FatalResponseNotify()
   在 System.Net.HttpWebRequest.ErrorStatusCodeNotify(Connection connection, Boolean isKeepAlive, Boolean fatal)
   在 System.Net.Connection.ReadComplete(Int32 , WebExceptionStatus )
   在 System.Net.LazyAsyncResult.Complete(IntPtr )
   在 System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object , IntPtr )
   在 System.Net.Security._SslStream.ProcessReadErrorCode(SecurityStatus errorCode, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest, Byte[] extraBuffer)
   在 System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   在 System.Net.Security._SslStream.ReadFrameCallback(AsyncProtocolRequest asyncRequest)
   在 System.Net.AsyncProtocolRequest.CompleteRequest(Int32 )
   在 System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 )
   在 System.Net.FixedSizeReader.ReadCallback(IAsyncResult )
   在 System.Net.LazyAsyncResult.Complete(IntPtr )
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Net.ContextAwareResult.Complete(IntPtr )
   在 System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object , IntPtr )
   在 System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

EndOfStreamException: 无法在流的结尾之外进行读取。
StackTrace:
   在 System.IO.__Error.EndOfFile()
   在 System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   在 System.IO.BinaryReader.ReadInt32()
   在 System.Resources.ResourceReader._ReadResources()
   在 System.Resources.ResourceReader.ReadResources()

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-02-28 10:44
Quicker版本
版本 反馈次数