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& pCompletion) +0 System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter) +79 System.Web.DirectoryMonitor.StartMonitoring() +42 System.Web.DirectoryMonitor.StartMonitoringFile(String
file, FileChangeEventHandler callback, String alias) +154 System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +274 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +314 [HttpException
(0x80004005): Erreur d'initialisation ASP.NET] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +924 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
Does the page work if it's served by IIS and not Cassini? What are the contents of your "default.aspx" page?
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks,
Mark
This posting is provided "AS IS" with no warranties, and confers no rights.
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) : ------------------------------ <script runat="server"> void ValidateBtn_Click(Object
Sender, EventArgs E) { if (Page.IsValid == true) { lblOutput.Text = "Page is Valid!"; } else { lblOutput.Text = "Some of the required fields are empty"; } } </script>
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 "build.bat", did it report any errors?
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks,
Mark
This posting is provided "AS IS" with no warranties, and confers no rights.
Harkonnen
Member
10 Points
2 Posts
problem starting Cassini
Feb 02, 2004 10:02 PM|LINK
markberr
Participant
1148 Points
239 Posts
Microsoft
Re: problem starting Cassini
Feb 03, 2004 05:25 PM|LINK
Mark
This posting is provided "AS IS" with no warranties, and confers no rights.
Harkonnen
Member
10 Points
2 Posts
Re: problem starting Cassini
Feb 05, 2004 12:10 PM|LINK
Simple RequiredField Validator Sample
<form runat="server">markberr
Participant
1148 Points
239 Posts
Microsoft
Re: problem starting Cassini
Feb 05, 2004 02:19 PM|LINK
Mark
This posting is provided "AS IS" with no warranties, and confers no rights.