Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/06/2008, 01:20
portillo18
 
Fecha de Ingreso: abril-2008
Mensajes: 51
Antigüedad: 16 años, 10 meses
Puntos: 1
Respuesta: XML: mal formado

retomando el tema!!

estoy haciendo una migración de iis5 a iis6, y me da un error de xml mal formado en la siguiente página .aspx

Cita:
<%@ Page Explicit="True" Language="VB" Debug="True" %>
<%@ Import Namespace="system.drawing" %>
<%@ Import Namespace="system.drawing.imaging" %>
<%@ Import Namespace="system.drawing.drawing2d" %>
<%@ Import Namespace="system.io" %>
<script runat="server">

dim Filename as String
dim Ancho, Alto, Width, Height, shadowSize as Integer
dim Bitmap as system.drawing.bitmap
dim ImgFormat as ImageFormat
dim Img as System.Drawing.Image
Dim baseMap as Bitmap
dim middle, left as Integer
sub CreateGraphic()
Dim letterBrush as SolidBrush = new SolidBrush(Color.FromArgb(50, 255, 255, 255))
Dim shadowBrush as SolidBrush = new SolidBrush(Color.FromArgb(50, 0, 0, 0))
Dim fontTitle as Font = new Font("Georgia", 13, FontStyle.Bold)
Filename = Request.QueryString("filename")
Ancho = Request.QueryString("ancho")
Alto = Request.QueryString("alto")
Filename = server.mappath(Filename)
ImgFormat = ImageFormat.jpeg : response.contenttype="image/jpeg" ' Default=jpeg '
Img = system.drawing.image.FromFile(Filename)
Width = Ancho
Height = Alto
baseMap = new Bitmap(Width,Height)
Dim myGraphic as Graphics = Graphics.FromImage(baseMap)
with myGraphic
.DrawImage(Img, 0,0, Width,Height)
.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias
.DrawString("WWW.LEGIO-VII.COM©", fontTitle, shadowBrush, Width-240, Height-30)
.DrawString("WWW.LEGIO-VII.COM©", fontTitle, letterBrush, Width-242, Height-32)
end with
Img.dispose()

end sub
</script>
<%
CreateGraphic
baseMap.Save(Response.OutputStream, ImageFormat.JPEG)
baseMap.dispose()
Img = Nothing
response.end
%>
</script>

Este es el error que me da:


Error de lectura XML: mal formado
Ubicación: http://192.168.1.203/lugares/waterma...o=640&alto=480
Número de línea 1, columna 2:<%@ Page Explicit="True" Language="VBSCRIPT" Debug="True" %>
-^


gracias!!es urgente!
__________________
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Publicado por: portillo18
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-