Changeset 23728 for platform/silverlight

Show
Ignore:
Timestamp:
11/15/08 01:12:25 (5 years ago)
Author:
coma2n
Message:

platform/silverlight/Swit/trunk: Silverlight2 RTMに対応

Location:
platform/silverlight/Swit/trunk
Files:
2 added
1 removed
15 modified

Legend:

Unmodified
Added
Removed
  • platform/silverlight/Swit/trunk/src

    • Property svn:ignore set to
      Swit.suo
  • platform/silverlight/Swit/trunk/src/Swit/Page.xaml

    r10491 r23728  
    3838                                <TextBlock Text="{Binding User}" FontSize="12" TextDecorations="Underline" /> 
    3939                             
    40                             <TextBlock Text="{Binding DateString}" FontSize="12" Margin="0,0,8,0" HorizontalAlignment="Right" /> 
    41                         </Grid> 
    42  
     40                                                                <TextBlock Text="{Binding DateString}" FontSize="12" Margin="0,0,8,0" HorizontalAlignment="Right" /> 
     41                                                        </Grid> 
    4342                            <TextBlock Text="{Binding Message}" FontSize="16" TextWrapping="Wrap" /> 
    44                     </StackPanel> 
     43                                                </StackPanel> 
    4544                    </DataTemplate> 
    4645                </ListBox.ItemTemplate> 
     
    5554                <TextBox x:Name="msgInput" FontSize="14" Margin="0,0,5,0" KeyDown="msgInput_KeyDown" /> 
    5655 
    57                 <Button x:Name="sendButton" Grid.Column="1" Content="送信" Cursor="Hand" 
    58                     Click="sendButton_Click" MouseMove="sendButton_MouseMove" MouseLeave="sendButton_MouseLeave"> 
     56                <Button x:Name="sendButton" Grid.Column="1" Content="送信" Cursor="Hand" Foreground="White" 
     57                                                Click="sendButton_Click" MouseMove="sendButton_MouseMove" MouseLeave="sendButton_MouseLeave"> 
    5958                    <Button.Background> 
    6059                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> 
     
    6867                        <ControlTemplate TargetType="Button"> 
    6968                            <Border Background="{TemplateBinding Background}" CornerRadius="6" 
    70                                 BorderBrush="Black" BorderThickness="1"> 
    71                                 <ContentPresenter Content="{TemplateBinding Content}" Foreground="White" 
     69                                                                        BorderBrush="Black" BorderThickness="1"> 
     70                                <ContentPresenter Content="{TemplateBinding Content}" 
    7271                                              HorizontalAlignment="Center" VerticalAlignment="Center" /> 
    7372                            </Border> 
  • platform/silverlight/Swit/trunk/src/Swit/Page.xaml.cs

    r10491 r23728  
    2929using System.Text; 
    3030using System.Windows; 
    31 using System.Windows.Media.Animation; 
    3231using System.Windows.Input; 
    3332using System.Windows.Browser; 
     
    101100                /// <param name="message">メッセージ</param> 
    102101                /// <param name="callback">送信が完了した時に呼び出されるコールバック</param> 
    103                 private void SendMessage(string message, Action callback) { 
     102                void SendMessage(string message, Action callback) { 
    104103                        var webReq = (HttpWebRequest)HttpWebRequest.Create(new Uri(AppBase + "Swit/Send.aspx")); 
    105104                        webReq.Post(new Dictionary<string, object>() { 
     
    107106 
    108107                        }, webRes => { 
    109                                 if(callback != null) callback(); 
     108                if(callback != null) this.Dispatcher.BeginInvoke(callback); 
    110109                        }); 
    111110                } 
     
    115114                /// </summary> 
    116115                /// <param name="callback">取得が完了した時に呼び出されるコールバック</param> 
    117                 private void GetLog(Action callback) { 
     116                void GetLog(Action callback) { 
    118117                        lock(this) { 
    119118                                if(downloading) return; 
     
    157156        /// </summary> 
    158157        /// <param name="callback">取得が完了した時に呼び出されるコールバック</param> 
    159         private void GetLoginUsers(Action callback) { 
     158        void GetLoginUsers(Action callback) { 
    160159            var webClient = new WebClient(); 
    161160            webClient.DownloadStringCompleted += (s, e) => { 
     
    177176                /// </summary> 
    178177                /// <param name="message">メッセージ</param> 
    179                 private void PrintMessage(string message) { 
     178        [DebuggerStepThrough] 
     179                void PrintMessage(string message) { 
    180180                        statusText.Text = message; 
    181181 
     
    212212                private void msgInput_KeyDown(object sender, KeyEventArgs e) { 
    213213                        if(e.Key == Key.Enter) { 
    214                                 sendButton_Click(sendButton, new RoutedEventArgs { Source = sendButton }); 
     214                                sendButton_Click(sendButton, new RoutedEventArgs()); 
    215215                        } 
    216216                } 
  • platform/silverlight/Swit/trunk/src/Swit/Swit.csproj

    r10215 r23728  
    33    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    44    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    5     <ProductVersion>9.0.21022</ProductVersion> 
     5    <ProductVersion>9.0.30729</ProductVersion> 
    66    <SchemaVersion>2.0</SchemaVersion> 
    77    <ProjectGuid>{2009A19A-9237-43D8-A985-E39FFD8231E4}</ProjectGuid> 
     
    2020    <TestPageFileName>TestPage.html</TestPageFileName> 
    2121    <CreateTestPage>true</CreateTestPage> 
     22    <ValidateXaml>true</ValidateXaml> 
     23    <ThrowErrorsInValidation>false</ThrowErrorsInValidation> 
    2224  </PropertyGroup> 
    2325  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    4850    <Reference Include="system" /> 
    4951    <Reference Include="System.Core" /> 
     52    <Reference Include="System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> 
    5053    <Reference Include="System.Xml" /> 
    5154    <Reference Include="System.Windows.Browser" /> 
    52     <Reference Include="System.Windows.Controls"> 
    53       <Private>True</Private> 
    54     </Reference> 
    55     <Reference Include="System.Windows.Controls.Extended"> 
    56       <Private>True</Private> 
    57     </Reference> 
    5855    <Reference Include="System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> 
    5956  </ItemGroup> 
     
    6966  </ItemGroup> 
    7067  <ItemGroup> 
    71     <SilverlightPage Include="App.xaml"> 
    72       <Generator>MSBuild:CompileXaml</Generator> 
    73     </SilverlightPage> 
    74     <SilverlightPage Include="Page.xaml"> 
    75       <Generator>MSBuild:CompileXaml</Generator> 
    76     </SilverlightPage> 
     68    <ApplicationDefinition Include="App.xaml"> 
     69      <Generator>MSBuild:MarkupCompilePass1</Generator> 
     70    </ApplicationDefinition> 
     71    <Page Include="Page.xaml"> 
     72      <Generator>MSBuild:MarkupCompilePass1</Generator> 
     73    </Page> 
    7774  </ItemGroup> 
    7875  <ItemGroup> 
  • platform/silverlight/Swit/trunk/src/Swit/Swit.csproj.user

    r10215 r23728  
    1818          <StartWorkingDirectory> 
    1919          </StartWorkingDirectory> 
    20           <EnableENC>False</EnableENC> 
    2120          <ShowWebRefOnDebugPrompt>True</ShowWebRefOnDebugPrompt> 
    2221        </SilverlightProjectProperties> 
  • platform/silverlight/Swit/trunk/src/Swit_Web/App_Data/msgLog.xml

    r10491 r23728  
    11<?xml version="1.0" encoding="utf-8"?> 
    2 <logs> 
    3   <log> 
    4     <user>coma2n</user> 
    5     <message>hoge</message> 
    6     <date>2008-04-25T16:42:05.3437</date> 
    7   </log> 
    8   <log> 
    9     <user>coma2n</user> 
    10     <message>&gt;coma2n hello</message> 
    11     <date>2008-04-25T16:44:07.1875</date> 
    12   </log> 
    13 </logs> 
     2<logs /> 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Controllers/SwitController.cs

    r10491 r23728  
    2727using System.Web.Mvc; 
    2828using System.Xml.Linq; 
    29 using System.Text; 
    3029using System.Linq; 
    3130using System.Collections.Generic; 
    32 using System.Diagnostics; 
    3331 
    3432#endregion 
     
    3937 
    4038        /// <summary> 
    41         /// ...のクラス 
     39        /// Switのクラス 
    4240        /// </summary> 
    43         public class SwitController : Controller { 
     41        public sealed class SwitController : Controller { 
    4442 
    4543                #region const 
    4644 
    4745                /// <summary> 
    48                 ///  
     46                /// メッセージログファイルの場所 
    4947                /// </summary> 
    5048                private const string DATA_FILE_PATH = "~/App_Data/msgLog.xml"; 
     
    8684                /// </summary> 
    8785                /// <param name="message">メッセージ</param> 
    88                 public void Send(string message) { 
     86        /// <returns></returns> 
     87                public ActionResult Send(string message) { 
    8988                        var user = this.User != null ? this.User.Identity.Name : "名無しさん"; 
    9089                        var date = DateTime.Now; 
     
    10099                        xml.Save(fileName); 
    101100 
    102                         OutputValue(0); 
     101            return Content("0", "text/plain"); 
    103102                } 
    104103 
     
    106105                /// 指定した日付以降に追加されたメッセージを取得します。 
    107106                /// </summary> 
    108                 public void Get() { 
     107        /// <returns></returns> 
     108                public ActionResult Get() { 
    109109                        var fileName = Request.MapPath(DATA_FILE_PATH); 
    110110                        var lwDate = File.GetLastWriteTime(fileName); 
    111111 
    112                         if(lwDate > LastWriteTime) { 
    113                                 var xml = XDocument.Load(fileName); 
     112            string content = "0", mimeType = "text/plain"; 
     113 
     114            if(lwDate > LastWriteTime) { 
     115                var xml = XDocument.Load(fileName); 
    114116 
    115117                var result = from log in xml.Descendants("log") 
     
    121123                outXml.Add(new XElement("logs", result)); 
    122124 
    123                 OutputValue(outXml, "text/xml"); 
     125                content = outXml.ToString(); 
     126                mimeType = "text/xml"; 
     127            } 
     128            LastWriteTime = lwDate; 
    124129 
    125                         } else OutputValue(0); 
    126  
    127                         LastWriteTime = lwDate; 
     130            return Content(content, mimeType); 
    128131                } 
    129132 
     
    131134        /// 現在ログインしているユーザの一覧を取得します。 
    132135        /// </summary> 
    133         public void Users() { 
     136        /// <returns></returns> 
     137        public ActionResult Users() { 
    134138            var loginUsers = (List<string>)HttpContext.Application["loginUsers"]; 
    135139 
     
    141145                    loginUsers.Select(name => new XElement("user", name)) 
    142146                )); 
    143                 OutputValue(outXml.ToString(), "text/xml"); 
     147                return Content(outXml.ToString(), "text/xml"); 
    144148            } 
     149            return Content("0"); 
    145150        } 
    146  
    147                 #region private 
    148  
    149                 /// <summary> 
    150                 /// 指定した値をレスポンスとして出力します。 
    151                 /// </summary> 
    152                 /// <param name="value">値</param> 
    153                 /// <param name="contentType">種類</param> 
    154                 private void OutputValue(object value, string contentType) { 
    155                         Response.ContentType = contentType; 
    156                         Response.ContentEncoding = Encoding.UTF8; 
    157                         Response.Output.Write(value); 
    158                         //Response.End(); 
    159                 } 
    160                 /// <summary> 
    161                 /// 指定した値をレスポンスとして出力します。 
    162                 /// </summary> 
    163                 /// <param name="value">値</param> 
    164                 private void OutputValue(object value) { OutputValue(value, "text/plain"); } 
    165  
    166                 #endregion 
    167151 
    168152                #endregion 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Default.aspx

    r10215 r23728  
    1 <!-- Please do not delete this file.  It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --> 
     1<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Swit_Web._Default" %> 
     2 
     3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     4<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;"> 
     5<head runat="server"> 
     6    <title>Swit</title> 
     7    <script type="text/javascript"> 
     8        window.onload = function() { 
     9            var sl = document.getElementById("Xaml1"); 
     10            sl.focus(); 
     11        } 
     12    </script> 
     13</head> 
     14<body style="height: 100%; margin: 0px;"> 
     15    <form id="form1" runat="server" style="height: 100%;"> 
     16        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
     17 
     18        <div style="margin: 4px; margin-bottom: 0px; width: 350px; font-size: small;"> 
     19            <asp:LoginName ID="LoginName1" runat="server" FormatString="ようこそ {0} さん" Style="float: left;" /> 
     20 
     21            <div style="float: right; display: inline;"> 
     22                <asp:LinkButton ID="logoutButton" runat="server" Text="ログアウト"  
     23                    onclick="logoutButton_Click" /> 
     24            </div> 
     25 
     26        </div> 
     27 
     28        <div style="height: 400px;"> 
     29            <asp:Silverlight ID="Xaml1" runat="server" Height="100%" Width="100%" Source="~/ClientBin/Swit.xap" 
     30                MinimumVersion="2.0.31005.0" /> 
     31        </div> 
     32 
     33    </form> 
     34</body> 
     35</html> 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Global.asax.cs

    r10491 r23728  
    2323#region namespaces 
    2424 
    25 using System; 
    2625using System.Web.Mvc; 
    2726using System.Web.Routing; 
     
    3029 
    3130namespace Swit.Web { 
    32         public class Global : System.Web.HttpApplication { 
     31    /// <summary> 
     32    ///  
     33    /// </summary> 
     34    public class Global : System.Web.HttpApplication { 
     35        protected void Application_Start() { 
     36            RegisterRoutes(RouteTable.Routes); 
     37        } 
    3338 
    34                 protected void Application_Start(object sender, EventArgs e) { 
    35                         RouteTable.Routes.Add(new Route("Default.aspx", new MvcRouteHandler()) { 
    36                                 Defaults = new RouteValueDictionary( 
    37                                         new { controller="Home", action="Index" } 
    38                                 ) 
    39                         }); 
    40             RouteTable.Routes.Add(new Route("{controller}/{action}.aspx", new MvcRouteHandler())); 
    41                 } 
     39        /// <summary> 
     40        ///  
     41        /// </summary> 
     42        /// <param name="routes"></param> 
     43        static void RegisterRoutes(RouteCollection routes) { 
     44            routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 
    4245 
    43         } 
     46            routes.MapRoute( 
     47                "Default", 
     48                "{controller}/{action}.aspx" 
     49            ); 
     50        } 
     51    } 
    4452} 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Swit_Web.csproj

    r10215 r23728  
    33    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    44    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    5     <ProductVersion>9.0.21022</ProductVersion> 
     5    <ProductVersion>9.0.30729</ProductVersion> 
    66    <SchemaVersion>2.0</SchemaVersion> 
    77    <ProjectGuid>{CD3AB488-5D3B-411B-8BAC-FA0322EA1CCC}</ProjectGuid> 
     
    1212    <AssemblyName>Switt_Web</AssemblyName> 
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     14    <SilverlightApplicationList>{2009A19A-9237-43D8-A985-E39FFD8231E4}|..\Swit\Swit.csproj|ClientBin|False</SilverlightApplicationList> 
    1415  </PropertyGroup> 
    1516  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    4041      <SpecificVersion>False</SpecificVersion> 
    4142      <HintPath>..\..\lib\net-3.5\System.Web.Abstractions.dll</HintPath> 
     43      <Private>True</Private> 
    4244    </Reference> 
    4345    <Reference Include="System.Web.Extensions"> 
     
    4749      <SpecificVersion>False</SpecificVersion> 
    4850      <HintPath>..\..\lib\net-3.5\System.Web.Mvc.dll</HintPath> 
     51      <Private>True</Private> 
    4952    </Reference> 
    5053    <Reference Include="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> 
    5154      <SpecificVersion>False</SpecificVersion> 
    5255      <HintPath>..\..\lib\net-3.5\System.Web.Routing.dll</HintPath> 
     56      <Private>True</Private> 
    5357    </Reference> 
    5458    <Reference Include="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> 
     
    7579    </Compile> 
    7680    <Compile Include="Properties\AssemblyInfo.cs" /> 
    77     <Compile Include="Controllers\HomeController.cs" /> 
    78     <Compile Include="Views\Home\Index.aspx.cs"> 
    79       <DependentUpon>Index.aspx</DependentUpon> 
     81    <Compile Include="Default.aspx.cs"> 
     82      <DependentUpon>Default.aspx</DependentUpon> 
    8083      <SubType>ASPXCodeBehind</SubType> 
    8184    </Compile> 
    82     <Compile Include="Views\Home\Index.aspx.designer.cs"> 
    83       <DependentUpon>Index.aspx</DependentUpon> 
     85    <Compile Include="Default.aspx.designer.cs"> 
     86      <DependentUpon>Default.aspx</DependentUpon> 
    8487    </Compile> 
    8588  </ItemGroup> 
     
    8790    <Content Include="App_Data\msgLog.xml" /> 
    8891    <Content Include="ClientBin\Swit.xap" /> 
    89     <Content Include="Default.aspx" /> 
    9092    <Content Include="Global.asax" /> 
    9193    <Content Include="Login.aspx" /> 
    92     <Content Include="Views\Home\Index.aspx" /> 
    93     <Content Include="Views\Web.config" /> 
     94    <Content Include="Default.aspx" /> 
    9495  </ItemGroup> 
    9596  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
     
    106107      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> 
    107108        <WebProjectProperties> 
    108           <UseIIS>False</UseIIS> 
     109          <UseIIS>True</UseIIS> 
    109110          <AutoAssignPort>False</AutoAssignPort> 
    110111          <DevelopmentServerPort>1100</DevelopmentServerPort> 
    111112          <DevelopmentServerVPath>/</DevelopmentServerVPath> 
    112           <IISUrl> 
    113           </IISUrl> 
     113          <IISUrl>http://localhost/Swit_Web</IISUrl> 
    114114          <NTLMAuthentication>False</NTLMAuthentication> 
     115          <UseCustomServer>False</UseCustomServer> 
     116          <CustomServerUrl> 
     117          </CustomServerUrl> 
    115118          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 
    116           <ProjectOutputReferences> 
    117             <Ref Project="{2009A19A-9237-43D8-A985-E39FFD8231E4}" Folder="" /> 
    118           </ProjectOutputReferences> 
    119119        </WebProjectProperties> 
    120120      </FlavorProperties> 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Swit_Web.csproj.user

    r10491 r23728  
    2424          <EnableENC>False</EnableENC> 
    2525          <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug> 
     26          <EnableWcfTestClientForSVC>False</EnableWcfTestClientForSVC> 
    2627          <ProjectOutputReferences> 
    27             <Ref Project="{2009A19A-9237-43D8-A985-E39FFD8231E4}" Folder="">ClientBin\Swit.xap</Ref> 
     28            <Ref Project="{2009A19A-9237-43D8-A985-E39FFD8231E4}" Folder="ClientBin">Swit.xap</Ref> 
    2829          </ProjectOutputReferences> 
    2930        </WebProjectProperties> 
  • platform/silverlight/Swit/trunk/src/Swit_Web/Web.config

    r10215 r23728  
    22<configuration> 
    33 
    4         <system.web> 
    5                 <compilation debug="true"> 
    6                         <assemblies> 
    7                                 <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    8                                 <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
    9                         </assemblies> 
    10                 </compilation> 
    11                  
    12                 <customErrors mode="RemoteOnly"> 
    13                 </customErrors> 
    14                  
    15                 <pages> 
    16                         <controls> 
    17                                 <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
    18                                 <add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
    19                         </controls> 
    20                 </pages> 
    21                  
    22                 <httpHandlers> 
    23                         <remove verb="*" path="*.asmx"/> 
    24                         <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    25                         <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    26                         <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
    27                 </httpHandlers> 
    28                  
    29                 <httpModules> 
    30                         <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
    31                         <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
    32                 </httpModules> 
    33                  
    34                 <sessionState mode="InProc" timeout="60" /> 
    35                  
    36                 <authentication mode="Forms"> 
    37                     <forms loginUrl="~/Login.aspx" /> 
    38                 </authentication> 
    39                  
    40                 <authorization> 
    41                     <deny users="?" /> 
    42                 </authorization> 
    43         </system.web> 
     4    <system.web> 
     5        <compilation debug="true"> 
     6            <assemblies> 
     7                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     8                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
     9            </assemblies> 
     10        </compilation> 
    4411 
    45         <system.codedom> 
    46                 <compilers> 
    47                         <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    48                                 <providerOption name="CompilerVersion" value="v3.5"/> 
    49                                 <providerOption name="WarnAsError" value="false"/> 
    50                         </compiler> 
    51                 </compilers> 
    52         </system.codedom> 
     12        <customErrors mode="RemoteOnly"> 
     13        </customErrors> 
     14 
     15        <pages> 
     16            <controls> 
     17                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
     18                <add tagPrefix="asp" namespace="System.Web.UI.SilverlightControls" assembly="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
     19            </controls> 
     20        </pages> 
     21 
     22        <httpHandlers> 
     23            <remove verb="*" path="*.asmx"/> 
     24            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     25            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     26            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
     27            <add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     28        </httpHandlers> 
     29 
     30        <httpModules> 
     31            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     32            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> 
     33        </httpModules> 
     34 
     35        <sessionState mode="InProc" timeout="60" /> 
     36 
     37        <authentication mode="Forms"> 
     38            <forms loginUrl="~/Login.aspx" /> 
     39        </authentication> 
     40 
     41        <authorization> 
     42            <deny users="?" /> 
     43        </authorization> 
     44    </system.web> 
     45 
     46    <system.codedom> 
     47        <compilers> 
     48            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
     49                <providerOption name="CompilerVersion" value="v3.5"/> 
     50                <providerOption name="WarnAsError" value="false"/> 
     51            </compiler> 
     52        </compilers> 
     53    </system.codedom> 
     54 
     55    <runtime> 
     56        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
     57            <dependentAssembly> 
     58                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
     59                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
     60            </dependentAssembly> 
     61            <dependentAssembly> 
     62                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
     63                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
     64            </dependentAssembly> 
     65        </assemblyBinding> 
     66    </runtime> 
    5367</configuration>