422,754 Members | 2,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,754 IT Pros & Developers. It's quick & easy.

Help! I'm getting the error: "The server block is not well formed."

P: n/a
Hi,

I've got a longstanding project that's been working fine for about a year.
I was working on one of the pages, a simple download page. After making a
little tweak on the page, I tried to re-run the project and got the error:

The server block is not well formed. Page: FileDownload.aspx, line 23935.

Now, there are only about 50 lines on this page, so something's off. I've
tried rebooting. I've tried Rebuild Solution. I've deleted the page from
the entire project, rebooted, and tried Rebuild Solution. I've rebuilt the
project from VSS. I still get the same error.

Please help if you can!

Thanks, Jim
Feb 4 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Server block typically refers to one of the registrations on a page such as
the Page directive
<%@ Page %>

Usually this error occurs when you enter a <%@ to denote a server directive,
but on the wrong type of code. For example, a Response.Write

<%@ Response.Write("hi"); %>

That would throw a server block error because the <%@ is incorrect in this
case, it should just be <% instead

Look at your .aspx page for such an error.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"LiveCycle" <li*******@sandbox.etech.adobe.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,

I've got a longstanding project that's been working fine for about a year.
I was working on one of the pages, a simple download page. After making a
little tweak on the page, I tried to re-run the project and got the error:

The server block is not well formed. Page: FileDownload.aspx, line 23935.

Now, there are only about 50 lines on this page, so something's off. I've
tried rebooting. I've tried Rebuild Solution. I've deleted the page from
the entire project, rebooted, and tried Rebuild Solution. I've rebuilt
the project from VSS. I still get the same error.

Please help if you can!

Thanks, Jim
Feb 4 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.