Share via


The server block is not well formed

Question

Sunday, March 25, 2007 9:54 PM

I get this error server error on my webpage. There is no problem on local server. all my pages use the same  masterpage and there is no problem with those. Debugging on local OK

Thamks 

 

Server Error in '/' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The server block is not well formed.

Source Error:

Line 1:  <%@ PAGE  codefile="~/BookingForm.aspx.vb"enablesessionstate="True" title="Booking Module"
Line 2:  ਍    椀渀栀攀爀椀琀猀㴀∀䈀漀漀欀椀渀最䘀漀爀洀∀ 氀愀渀最甀愀最攀㴀∀嘀䈀∀ 洀愀猀琀攀爀瀀愀最攀昀椀氀攀㴀∀縀⼀䴀愀猀琀攀爀倀愀最攀⸀洀愀猀琀攀爀∀  䴀愀椀渀琀愀椀渀匀挀爀漀氀氀倀漀猀椀琀椀漀渀伀渀倀漀猀琀戀愀挀欀㴀∀琀爀甀攀∀ ─㸀ഀഀ
Line 3:  <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"  EnableViewState="true" Runat="Server">

Source File: /BookingForm.aspx **   Line:** 1


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

This is the Source Code 

<%@ PAGE codefile="~/BookingForm.aspx.vb"enablesessionstate="True" title="Booking Module"

inherits="BookingForm" language="VB" masterpagefile="~/MasterPage.master" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" EnableViewState="true" Runat="Server">

All replies (2)

Monday, March 26, 2007 5:09 PM ✅Answered

Thank you. My ftp settings got changed some how and transfered as text instead of binary. Cheers


Monday, March 26, 2007 3:46 AM

Well, It is confirmly not well formed, try to open the same master page from your FTP in notepad and check if line 2 really contain the things which is displayed by IIS. try to remove the file and then again upload it with any FTP client.

cheers