Skip to content

Commit c9ff826

Browse files
committed
PITA
1 parent 19c0217 commit c9ff826

File tree

2 files changed

+10
-37
lines changed

2 files changed

+10
-37
lines changed

src/ServiceStack.MovieRest/Web/Global.asax.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using ServiceStack.Common.Utils;
77
using ServiceStack.OrmLite;
88
using ServiceStack.OrmLite.Sqlite;
9+
using ServiceStack.ServiceHost;
910
using ServiceStack.ServiceInterface.Cors;
1011
using ServiceStack.WebHost.Endpoints;
1112

@@ -42,6 +43,7 @@ public override void Configure(Container container)
4243
SetConfig(new EndpointHostConfig
4344
{
4445
DebugMode = true, //Show StackTraces for easier debugging (default auto inferred by Debug/Release builds)
46+
MetadataVisibility = EndpointAttributes.Any
4547
});
4648
}
4749
}

src/ServiceStack.MovieRest/Web/Web.config

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<add key="MonoServerDefaultIndexFiles" value="default.htm" />
1919
</appSettings>
2020
<connectionStrings />
21+
2122
<system.web>
2223
<!--
2324
Set compilation debug="true" to insert debugging
@@ -51,24 +52,10 @@
5152
<error statusCode="404" redirect="FileNotFound.htm" />
5253
</customErrors>
5354
-->
54-
<pages>
55-
<controls>
56-
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
57-
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
58-
</controls>
59-
</pages>
6055
<httpHandlers>
61-
<remove verb="*" path="*.asmx" />
62-
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
63-
<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" />
64-
<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" />
65-
6656
<!-- ServiceStack: Handler mapping for IIS 6.0, MONO or VS.NET dev web server -->
67-
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" />
57+
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
6858
</httpHandlers>
69-
<httpModules>
70-
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
71-
</httpModules>
7259
</system.web>
7360
<system.codedom>
7461
<compilers>
@@ -83,22 +70,10 @@
8370
Information Services 7.0. It is not necessary for previous version of IIS.
8471
-->
8572
<system.webServer>
73+
<modules runAllManagedModulesForAllRequests="true"/>
8674
<validation validateIntegratedModeConfiguration="false" />
87-
<modules>
88-
<remove name="ScriptModule" />
89-
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
90-
</modules>
9175
<handlers>
92-
<remove name="WebServiceHandlerFactory-Integrated" />
93-
<remove name="ScriptHandlerFactory" />
94-
<remove name="ScriptHandlerFactoryAppServices" />
95-
<remove name="ScriptResource" />
96-
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
97-
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
98-
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
99-
100-
<!-- ServiceStack: Handler mapping for IIS 7+ -->
101-
<add name="ServiceStack.Factory" path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
76+
<add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
10277
</handlers>
10378
</system.webServer>
10479
<runtime>
@@ -111,14 +86,10 @@
11186
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
11287
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
11388
</dependentAssembly>
114-
<dependentAssembly>
115-
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
116-
<bindingRedirect oldVersion="0.0.0.0-1.0.88.0" newVersion="1.0.88.0" />
117-
</dependentAssembly>
89+
<dependentAssembly>
90+
<assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
91+
<bindingRedirect oldVersion="0.0.0.0-1.0.88.0" newVersion="1.0.88.0" />
92+
</dependentAssembly>
11893
</assemblyBinding>
11994
</runtime>
120-
<system.serviceModel>
121-
<bindings />
122-
<client />
123-
</system.serviceModel>
12495
</configuration>

0 commit comments

Comments
 (0)