March 2, 2012 at 7:16 am
I got this error a couple of days ago and have tried some basic things to correct it, system restore, updating to new Service pack neither of which has worked. I've posted this problem on several other forums and I am not getting any feedback. I am using MS Sql server 2008 express edition with asp.net/visual web developer 2008 express edition. The website which is on a stand alone computer has been working just fine until this came up and now I'm stuck. Any help would be greatly appreciated. I am very new to this so I don't understand a lot of the below.
Server Error in '/WebSite2' Application.
________________________________________
Unable to translate Unicode character \uD8FF at index 0 to specified code page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Text.EncoderFallbackException: Unable to translate Unicode character \uD8FF at index 0 to specified code page.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[EncoderFallbackException: Unable to translate Unicode character \uD8FF at index 0 to specified code page.]
System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown, Int32 index) +155
System.Text.EncoderFallbackBuffer.InternalFallback(Char ch, Char*& chars) +275
System.Text.UTF8Encoding.GetByteCount(Char* chars, Int32 count, EncoderNLS baseEncoder) +7680574
System.Text.UTF8Encoding.GetByteCount(String chars) +43
System.IO.BinaryWriter.Write(String value) +38
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +1281
[ArgumentException: Error serializing value '�က䙊䙉Āā怀怀硅晩䥉*Ď
ĖďĢĐ
ĨĒ ĚĴěļĨ ıńIJŖȓ 蝩 Ųꐁ ꐂ ꐃ ꐄŪꐅ Fꐆ ꐇ ꐈ ꐉ ꐊ ꐌ ۀ†††††需䥎佋N佃䱏䥐⁘ㅌ退ĬĬ佃䱏䥐⁘ㅌ†ㅖ㌮頀〲〱ㄺ㨱㘰〠㨳㈱㔺8d芚ʌ芝ʔ蠢 ԅ蠧 2ԅ退 ㈰〲逃ʜ逄ʰ鄁 ȁ 鄂˄鈄
ˌ鈅˔鈇 鈈 鈉 Y鈊˜鉼͜ˤ銆ـꀀ 〰ꀁ Ćꀂ ꀃ ࡀꌀḃ⻳ꌁࠁ
Dž#
〲〱ㄺ㨱㘰〠㨳㈱㔺8〲〱ㄺ㨱㘰〠㨳㈱㔺8
s
楎潫n䥉* Ȁ ņ Ō
ŔŢŪŲ
źƂ ̜(ƊƲ
ǀ ǎǖ ਁЀǞǮĀǴ ˴
̈佃佌R低䵒䱁啁佔††††啁佔†䙁䌭†䕒ⵄ奅EᰳϨ啁佔†††††††††† ††††††††† 啁佔†††† 䙏⁆††††dd佐呒䅒呉††† 䙏⁆〰䅆䕃倭䥒剏呉⁙䙁† ă ĚͶě;Ĩ ȁ ††††††††††††††††††††††††††††††††††††††††††††††††††††††††††† ă ĚěܖĨ ȁ ܞȂ აĬĬ��萀ᄀഌഏᄋฏᐏᄓᨕᴬᨘ✶ 䀬䐹㽃㸹䜽材䝗慌㵍夾婺橡獭獴噅蝾災枆獱Ůᐓᨔᨗᴴ㐝䥮䤾湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮湮샿ᄀxΠ℁Ȁđᄃ!DŽ¢ĀąāāĀ̂...' of type 'System.String.']
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +3319
System.Web.UI.ObjectStateFormatter.Serialize(Stream outputStream, Object stateGraph) +110
System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +57
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object state) +4
System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter, Object stateGraph) +37
System.Web.UI.HiddenFieldPageStatePersister.Save() +79
System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state) +105
System.Web.UI.Page.SaveAllState() +236
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099
March 7, 2012 at 8:22 am
I have found the problem and solved it. The error came when I was attempting to write some code that would store an image path that should have looked like this: ~/Images/nameofimage.bmp using a data type of nvarchar(max). Instead it created a bunch of rectangles and foreign characters (??????? Aa) that the unicode could not translate hence causing the error.
So the entire problem was based in the database table due to some improper code on my part that caused/allowed some odd characters to be stored in the table where the Unicode character could not be translated. I deleted the row in the table and everything is working correctly again now.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply