[Mono-list] have one problem with xsp (vb 7.1 code)

Joe Audette joe_audette@yahoo.com
Wed, 16 Mar 2005 06:08:17 -0800 (PST)


--0-898464678-1110982097=:4371
Content-Type: text/plain; charset=us-ascii

Scripting.FileSystemObject is not part of the .NET framework, you are using com interop which is not needed. Probably this app was originally upgraded from classic asp?
 
You should consider revising the code to use comparible methods and classes in the System.IO namespace which is fully managed code.
 
Hope that helps,
 
Joe Audette

marius popa <mapopa@gmail.com> wrote:
on of my clients is deploying an application developed on .net windows
to a server with apache , xsp.exe ,mono 1.1.3 and we have this error
when this code is runing

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'reference the file system object
Dim oFileSystem As New Scripting.FileSystemObject
Dim sPath As String = Server.MapPath("textFiles/")



System.MissingMethodException: Cannot find the requested method.
in <0x00037> (wrapper managed-to-native)
Scripting.FileSystemObjectClass:.ctor ()
in <0x00059> ourlads.Index:Page_Load (object,System.EventArgs)
in <0x00046> (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x0005c> System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00026> System.Web.UI.Control:LoadRecursive ()
in <0x00137> System.Web.UI.Page:InternalProcessRequest ()
in <0x0009f> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x0026e> ExecuteHandlerState:Execute ()
in <0x0007a> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)

-- 
developer flamerobin.org
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


joe_audette@yahoo.com
http://www.joeaudette.com
http://www.mojoportal.com
--0-898464678-1110982097=:4371
Content-Type: text/html; charset=us-ascii

<DIV>Scripting.FileSystemObject is not part of the .NET framework, you are using com interop which is not needed. Probably this app was originally upgraded from classic asp?</DIV>
<DIV>&nbsp;</DIV>
<DIV>You should consider revising the code to use comparible methods and classes in the System.IO namespace which is fully managed code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope that helps,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Joe Audette<BR><BR><B><I>marius popa &lt;mapopa@gmail.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">on of my clients is deploying an application developed on .net windows<BR>to a server with apache , xsp.exe ,mono 1.1.3 and we have this error<BR>when this code is runing<BR><BR>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As<BR>System.EventArgs) Handles MyBase.Load<BR>'reference the file system object<BR>Dim oFileSystem As New Scripting.FileSystemObject<BR>Dim sPath As String = Server.MapPath("textFiles/")<BR><BR><BR><BR>System.MissingMethodException: Cannot find the requested method.<BR>in &lt;0x00037&gt; (wrapper managed-to-native)<BR>Scripting.FileSystemObjectClass:.ctor ()<BR>in &lt;0x00059&gt; ourlads.Index:Page_Load (object,System.EventArgs)<BR>in &lt;0x00046&gt; (wrapper delegate-invoke)<BR>System.MulticastDelegate:invoke_void_object_EventArgs<BR>(object,System.EventArgs)<BR>in &lt;0x0005c&gt; System.Web.UI.Control:OnLoad (System.EventArgs)<BR>in
 &lt;0x00026&gt; System.Web.UI.Control:LoadRecursive ()<BR>in &lt;0x00137&gt; System.Web.UI.Page:InternalProcessRequest ()<BR>in &lt;0x0009f&gt; System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)<BR>in &lt;0x0026e&gt; ExecuteHandlerState:Execute ()<BR>in &lt;0x0007a&gt; StateMachine:ExecuteState<BR>(System.Web.HttpApplication/IStateHandler,bool&amp;)<BR><BR>-- <BR>developer flamerobin.org<BR>_______________________________________________<BR>Mono-list maillist - Mono-list@lists.ximian.com<BR>http://lists.ximian.com/mailman/listinfo/mono-list<BR></BLOCKQUOTE><BR><BR>joe_audette@yahoo.com<br>http://www.joeaudette.com<br>http://www.mojoportal.com
--0-898464678-1110982097=:4371--