473,748 Members | 5,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.as px, 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 20213
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*******@sand box.etech.adobe .comwrote in message
news:%2******** ********@TK2MSF TNGP04.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.as px, 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
2082
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 pointer beasties. The following code is excerpted from digitemp, a program that reads 1-wire devices. Digitemp is the work of Brian C. Lane. As I walk through this code, I have a number of questions. I'm hoping someone with experience in...
5
5191
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). To accomplish this I've included some client side script in the page being built in frame A such that whenever it is received by the browser it reloads frame B's page. The problem is that (sometimes) this sequence of events produces a dialog...
1
1263
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 Security=SSPI;UID='sa';PWD=" myConn = New SqlConnection(mystring) myCommand.Connection = myConn myConn.Open()
8
2638
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 Task_UID. SELECT PR.PROJ_NAME AS PRName, PR.PROJ_ID As PRProjID, PR.TASK_UID As PRTaskUID, 'Dev' AS GroupType, Feat.PROJ_ID As FeatProjID, Feat.TASK_UID As FeatTaskUID, Feat.FeatureID AS FeatureID,
17
5819
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 code.But,the compiler sometimes show some strange errors,sometimes can pass through with an unknown trouble when it is running,and no result.So,could anyone give me some help? Thank you very much! Here is my code:...
0
835
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
10395
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 System.Net.NetworkCredential("user","password","domain");
1
1649
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 prime(int num); int main() { int num; cout<<"Enter number: "; cin>>num;
2
1978
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 light on this? Is there any way to validate this proposition? Or is it just a myth... -Thanks, Shree
6
8442
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 = System.Windows.Forms.PictureBoxSizeMode.StretchImage; now in the ProcessImageClick method I check to make sure the Tag propety is not null and cast from type Object to PictureBoxSizeMode
0
8987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9316
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8239
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.