Author: andrews
Date: 2006-11-29 07:35:59 -0500 (Wed, 29 Nov 2006)
New Revision: 68663

Added:
   trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax
   trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax.cs
   trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/My.ashx
Modified:
   
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.vmwcsproj
Log:
add My.ashx and Global.asax to grasshopper test webapp; use project reference 
to NunitWeb

Added: trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax       
2006-11-29 12:35:10 UTC (rev 68662)
+++ trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax       
2006-11-29 12:35:59 UTC (rev 68663)
@@ -0,0 +1 @@
+<%@ Application Language="C#" Inherits="MonoWebApplication20.Global" 
CodeBehind="Global.asax.cs" %>

Added: trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax.cs    
2006-11-29 12:35:10 UTC (rev 68662)
+++ trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/Global.asax.cs    
2006-11-29 12:35:59 UTC (rev 68663)
@@ -0,0 +1,15 @@
+using System;
+
+namespace MainsoftWebApp20
+{
+       public class Global : System.Web.HttpApplication
+       {
+               void Application_Error (object sender, EventArgs e)
+               {
+                       // Code that runs when an unhandled error occurs
+                       Exception objErr = Server.GetLastError 
().GetBaseException ();
+                       MonoTests.SystemWeb.Framework.WebTest.RegisterException 
(objErr);
+                       Server.ClearError ();
+               }
+       }
+}

Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.vmwcsproj
===================================================================
--- 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.vmwcsproj
        2006-11-29 12:35:10 UTC (rev 68662)
+++ 
trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/MainsoftWebApp20.vmwcsproj
        2006-11-29 12:35:59 UTC (rev 68663)
@@ -1,4 +1,4 @@
-<Project DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+<Project DefaultTargets="Build" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 
'Debug_Java20|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <OutputPath>bin\Debug_Java20\</OutputPath>
@@ -102,11 +102,6 @@
       
<HintPath>..\NunitWeb\NunitWeb\bin\Debug_Java20\nunit.framework.dll</HintPath>
       <Private>True</Private>
     </Reference>
-    <Reference Include="NunitWeb, Version=0.0.0.0, Culture=neutral, 
processorArchitecture=MSIL">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\NunitWeb\NunitWeb\bin\Debug_Java20\NunitWeb.dll</HintPath>
-      <Private>True</Private>
-    </Reference>
     <Reference Include="rt, Version=0.0.0.0, Culture=neutral">
       <Private>False</Private>
     </Reference>
@@ -128,6 +123,9 @@
     <Content Include="XMLDataSourceTest4.aspx" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Global.asax.cs">
+      <DependentUpon>Global.asax</DependentUpon>
+    </Compile>
     <Compile Include="MyPage.aspx.cs">
       <DependentUpon>MyPage.aspx</DependentUpon>
       <SubType>ASPXCodeBehind</SubType>
@@ -148,14 +146,22 @@
   <ItemGroup>
     <Content Include="App_Themes\Theme1\Theme1.skin" />
     <Content Include="App_Themes\Theme1\WizardTest.skin" />
+    <Content Include="Global.asax" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\..\TestMonoWeb20.vmwcsproj">
       <Project>{7180B7A7-D0AB-4397-AC0A-CDB1A9DE6417}</Project>
       <Name>TestMonoWeb20</Name>
     </ProjectReference>
+    <ProjectReference Include="..\NunitWeb\NunitWeb\NunitWeb20.vmwcsproj">
+      <Project>{DC2320EB-CC91-4648-AF2B-8937F6794A14}</Project>
+      <Name>NunitWeb20</Name>
+    </ProjectReference>
   </ItemGroup>
   <ItemGroup>
+    <Content Include="My.ashx" />
+  </ItemGroup>
+  <ItemGroup>
     <Folder Include="Properties\" />
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.csharp.targets" />

Added: trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/My.ashx
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/My.ashx   
2006-11-29 12:35:10 UTC (rev 68662)
+++ trunk/mcs/class/System.Web/Test/mainsoft/MainsoftWebApp20/My.ashx   
2006-11-29 12:35:59 UTC (rev 68663)
@@ -0,0 +1 @@
+<%@ WebHandler Class="MonoTests.SystemWeb.Framework.MyHandler" Language="C#" %>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to