CS1647: An expression is too long or complex to compile

I ran into this ASP.NET error. 

After a long process of trials and errors to determine the affected HTML codes area, then I insert a simple comment.  I guess the insertion of a comment break some “expression”, making it easier to compile.

<%
   1: -- Just a comment--

%>

This post is more for reference since I am neither sure of the cause nor the workaround.

Advertisements

2 thoughts on “CS1647: An expression is too long or complex to compile

  1. ok when I read this I thought “how silly, why would someone actually post that”….I stand corrected. This actually worked! If I didn’t see it for myself I wouldn’t believe it. Thanks for the post. This should actually be submitted to Microsoft Connect and stackoverflow as it was the only real tangible solution out there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s