[Mono-bugs] [Bug 66305][Wis] New - XSP don't found the path in src="" aspx web

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Sep 2004 07:30:03 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by llpamies@tinet.org.

http://bugzilla.ximian.com/show_bug.cgi?id=66305

--- shadow/66305	2004-09-20 07:30:03.000000000 -0400
+++ shadow/66305.tmp.1554	2004-09-20 07:30:03.000000000 -0400
@@ -0,0 +1,110 @@
+Bug#: 66305
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: llpamies@tinet.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XSP don't found the path in src="" aspx web
+
+Bug for gonzalo ...
+
+====darrere.cs=====
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace MyStuff
+{
+    public class MyClass : Page
+    {
+        protected System.Web.UI.WebControls.Label MyLabel;
+        protected System.Web.UI.WebControls.Button MyButton;
+        protected System.Web.UI.WebControls.TextBox MyTextBox;
+
+        public void MyButton_Click(Object sender, EventArgs e)
+        {
+            MyLabel.Text = MyTextBox.Text.ToString();
+        }
+    }
+}
+============
+
+
+=====index.aspx=======
+<%@ Language="C#" Inherits="MyStuff.MyClass" src="darrere.cs" %>
+<HTML>
+    <body>
+        <form id="MyForm" runat="server">
+        <asp:textbox id="MyTextBox" text="Hello World"
+runat="server"></asp:textbox>
+        <asp:button id="MyButton" text="Echo Input"
+Onclick="MyButton_Click" runat="server"></asp:button>
+        <asp:label id="MyLabel" runat="server" />
+        </form>
+    </body>
+</HTML>
+======================
+
+The two files are in /home/llpamies/proves and in the same folder I run xsp.
+It give me this error when I try access index.aspx:
+System.ArgumentException: The path is not of a legal form
+Parameter name: path
+in <0x000a1> System.IO.Path:GetFullPath (string)
+in <0x00044> System.Web.Caching.CacheDependency:CreateWatcher (string)
+in <0x003c7> System.Web.Caching.CacheDependency:.ctor
+(string[],string[],System.Web.Caching.CacheDependency,System.DateTime)
+in <0x0002b> System.Web.Caching.CacheDependency:.ctor (string[])
+in <0x00276> System.Web.Compilation.CachingCompiler:Compile
+(string,string,string,System.Collections.ArrayList)
+in <0x000c9> System.Web.UI.TemplateParser:GetAssemblyFromSource (string)
+in <0x00118> System.Web.UI.TemplateParser:ProcessMainAttributes
+(System.Collections.Hashtable)
+in <0x000d2> System.Web.UI.TemplateControlParser:ProcessMainAttributes
+(System.Collections.Hashtable)
+in <0x00c03> System.Web.UI.PageParser:ProcessMainAttributes
+(System.Collections.Hashtable)
+in <0x000c4> System.Web.UI.TemplateParser:AddDirective
+(string,System.Collections.Hashtable)
+in <0x006d4> System.Web.UI.TemplateControlParser:AddDirective
+(string,System.Collections.Hashtable)
+in <0x00159> System.Web.Compilation.AspGenerator:TagParsed
+(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x00085> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes
+(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x00037> System.Web.Compilation.AspParser:OnTagParsed
+(System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x0020f> System.Web.Compilation.AspParser:Parse ()
+in <0x00021> System.Web.Compilation.AspGenerator:DoParse ()
+in <0x00103> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
+in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance
+(string,string,System.Web.HttpContext)
+in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler
+(System.Web.HttpContext,string,string,string)
+in <0x0034e> System.Web.HttpApplication:CreateHttpHandler
+(System.Web.HttpContext,string,string,string)
+in <0x0011f> CreateHandlerState:Execute ()
+in <0x00084> StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+
+But If i compile de cs file in a dllin /bin/ subfolder and deletes
+src="darrere.cs" from index.aspx it runs fine.
+
+I'm using xsp.exe 1.0.1.0
+And Mono JIT compiler version 1.0.1.
+
+Thanks for all.