Compiler error message: CS1056: Handling of unexpected characters
error generated:
An “unexpected character” error occurred in C# code while compiling an ASP. NET 4.0 website using VS2010.
error generated:
An “unexpected character” error occurred in C# code while compiling an ASP. NET 4.0 website using VS2010.
does not use UTF-8 format for display and save, the compiler can not correctly recognize such characters, resulting in compilation error.
:
set the file open mode of VS 2010, make it in view of the error file using utf-8 format to open. The specific operation is as follows:
1) In Solution Explorer, select the file you want to open
2) Right mouse button pops up the menu, select “Open mode”, and use “Charp editor with encoding function” to open it. As shown in the figure below:
Instead, select the following in the code:
then rebuild the solution, error elimination.
Read More:
- Compiler error message: cs1056: unexpected character handling
- Failed to write output file ‘C:’ windows\ Microsoft.NET \Framework64\v4.0.30319\Temporary ASP.NET Files\root\106f9ae8\cc0e1
- Solving syntax error: unexpected character after line continuation character
- Syntax error: unexpected character after line continuation character
- Generate template asp.net Cs1010: newline in constant
- ASP.NET AJAX client-side framework failed to load
- ASP.NET Parser Error Message: Could not load type ‘Web.Global’.
- register ASP.NET An error has occurred: 0x8007b799
- modelsim Error: (vlog-13067) Syntax error, unexpected non-printable character.
- How to deal with the error reported by live mail
- PHP:Fatal error: Class ‘COM’ not found in … How to deal with the problem
- asp.net HTTP error 500.24 – internal server error
- IIS 7.5, ASP.NET MVC. HTTP error 500 (internal server error), but debugging does not enter the background, the browser only reports 500 errors
- How to deal with NullPointerException error in row.getlong in spark – sparksql
- Front end project construction error unexpected character ‘@’ solution
- Idea has no code prompt solution when writing YML file
- error: unclosed character literal (How to Fix)
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- JSON data format net.sf.json .JSONException: A JSONObject text must begin with ‘{‘ at character 1 of Error:(f…
- Solution: DevTools failed to load SourceMap:… net::ERR_HTTP_RESPONSE_CODE_FAILURE problem