473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
1 20186
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Mark Richards | last post by:
I've been programming for many years, but have only recently taken a deep "C" dive (bad pun, i know) and need a lot of explanation from an expert. My questions center around those mysterious...
5
by: Bill Cohagan | last post by:
I'm constructing an ASP app with a frameset on the home html page. From frame A I need to referesh the page in frame B when a button click occurs on a button in Frame A (server side event handler)....
1
by: lloyd | last post by:
i am trying to connect to my Sqlserver on my machine. i tried using the following connection strings 1) mystring= "Initial Catalog=;Data Source=localhost;Integrated...
8
by: Xu, Wei | last post by:
Hi, I have wrote the following sql sentence.Do you have comments to improve the performance.I have created all the indexed. But it's still very slow.Thanks The primary key is proj_ID and...
17
by: Yuri CHUANG | last post by:
Hi, I'm the beginner of the CPL.I write a program about the problem of Ring of Josephus,using DoubleLinkList data structure. I'm very confused that I think there is really no error in my...
0
by: Fabio | last post by:
"The program is in a invalid format, and cannot be run. It may be damaged" when I try to run it on Win98". I'm using VC 2003 with MFC. Thank's Fabio
7
by: Aga | last post by:
Hi, I'm quite new in WebServices. I work in VS2003, C#. My code is : MyWebReference.ClassX x1=new MyWebReference.ClassX(); x1.Url="address to wsdl"; System.Net.NetworkCredential nc=new...
1
by: ALi Shaikh | last post by:
This works and shows the factors or tells if the number is a prime number but doesn't show ODD factors please help!! I need to turn this tomorrow #include <iostream> using namespace std; int...
2
by: Shree | last post by:
I am having this confusion going on in my head for sometime now. The question is whether setting the object reference to null (nothing) help the GC in collection in anyway? Can anyone shed some...
6
by: GiJeet | last post by:
Problem using AS operator to cast Tag property Hello, I’m using the Tag property of a menu item to hold an enum value of a PictureBoxSizeMode. Eg: this.menuImageStretch.Tag =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.