problem starting Cassinihttp://forums.asp.net/t/462255.aspx/1?problem+starting+CassiniThu, 05 Feb 2004 14:35:53 -0500462255462255http://forums.asp.net/p/462255/462255.aspx/1?problem+starting+Cassiniproblem starting Cassini Hi I'm very new to Cassini and ASP.NET. I downloaded Cassini, compiled it and started it like this : Application Directory = c:\cassini\www\ Port = 80 Virtual Root = / I made a default.aspx page in my www directory. When I try to access it with http://localhost/, I have the message below (in french). Where does it come from ? I'm lost, help ! Thanks :) --------------------------------------------------------------------------- Erreur du serveur dans l'application '/'. La référence d'objet n'est pas définie à une instance d'un objet. Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code. Détails de l'exception: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet. Erreur source: Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives à l'origine et l'emplacement de l'exception peuvent être identifiées en utilisant la trace de la pile d'exception ci-dessous. Trace de la pile: [NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.] System.Web.UnsafeNativeMethods.DirMonOpen(String dir, Boolean watchSubtree, UInt32 notifyFilter, NativeFileChangeNotification callback, IntPtr&amp; pCompletion) &#43;0 System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter) &#43;79 System.Web.DirectoryMonitor.StartMonitoring() &#43;42 System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) &#43;154 System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) &#43;274 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) &#43;314 [HttpException (0x80004005): Erreur d'initialisation ASP.NET] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) &#43;924 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) &#43;128 2004-02-02T22:02:34-05:00463200http://forums.asp.net/p/462255/463200.aspx/1?Re+problem+starting+CassiniRe: problem starting Cassini Does the page work if it's served by IIS and not Cassini? What are the contents of your &quot;default.aspx&quot; page? <b><i>This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights. </b></i> 2004-02-03T17:25:17-05:00465249http://forums.asp.net/p/462255/465249.aspx/1?Re+problem+starting+CassiniRe: problem starting Cassini I don't own IIS. But I tried to launch this page with the server included in Web Matrix, and it works fine. Here is the content of my default.aspx (it's just a page I took from there) : ------------------------------ &lt;script runat=&quot;server&quot;&gt; void ValidateBtn_Click(Object Sender, EventArgs E) { if (Page.IsValid == true) { lblOutput.Text = &quot;Page is Valid!&quot;; } else { lblOutput.Text = &quot;Some of the required fields are empty&quot;; } } &lt;/script&gt; <h3><font face="Verdana">Simple RequiredField Validator Sample</font> </h3> <p></p> &lt;form runat=&quot;server&quot;&gt; <table cellpadding="10" bgcolor="#eeeeee"> <tbody> <tr valign="top"> <td colspan="3"><br> </td> </tr> <tr> <td colspan="3"><font face="Verdana" size="2"><b>Credit Card Information</b></font> </td> </tr> <tr> <td align="right"><font face="Verdana" size="2">Card Type:</font> </td> <td>MasterCard Visa </td> <td align="middle" rowspan="1">* </td> </tr> <tr> <td align="right"><font face="Verdana" size="2">Card Number:</font> </td> <td></td> <td>* </td> </tr> <tr> <td align="right"><font face="Verdana" size="2">Expiration Date:</font> </td> <td>06/00 07/00 08/00 09/00 10/00 11/00 01/01 02/01 03/01 04/01 05/01 06/01 07/01 08/01 09/01 10/01 11/01 12/01 </td> <td>* </td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </tbody> </table> &lt;/form&gt; 2004-02-05T12:10:36-05:00465424http://forums.asp.net/p/462255/465424.aspx/1?Re+problem+starting+CassiniRe: problem starting Cassini Strange since the Web Matrix server is the same app as Cassini. Its just one is fired up via Web Matrix and the other you launch from a command prompt. I loaded Cassini outside of Web Matrix and was able to serve your page just fine. Do you get this failure for all pages or just this page? When you first built Cassini using &quot;build.bat&quot;, did it report any errors? <b><i>This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights. </b></i> 2004-02-05T14:19:31-05:00