Hi there!
Unfortunately we can't debug customer's applications unless we are reasonably certain it's a bug in our system. In this case, we are pretty sure Cassini is behaving properly. We have created following example to test it:
Global.asax:
Quote:public class Global : System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
Application["Started"] = DateTime.Now;
Application["Context"] = HttpContext.Current != null && HttpContext.Current.Request != null ? HttpContext.Current.Request.Url.ToString() : "[No request]";
}
}
Default.aspx
Quote:public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
this.TestStartApplicationGlobalAsax();
}
private void TestStartApplicationGlobalAsax()
{
object startedRaw = Application["Started"];
Label1.Text = "Started: " + (startedRaw == null ? "[NULL]" : ((DateTime)startedRaw).ToString());
Label1.Text += "<br/>Context: " + Application["Context"];
}
}
Default.aspx rendred under UltiDev Cassini:
Quote:Started: 7/7/2011 9:47:00 AM
Context: http://localhost:51594/Default.aspx
We suggest attaching Visual Studio debugger to UltiDev Cassini process and debug to see what's going on.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.