summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-06-02 20:10:35 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-06-02 20:10:35 -0700
commita49e0e1b990d4c9721134b002f47cb95a496b7e4 (patch)
tree50720a7acc95b36486f458a76551c3f96438d378 /src
parentab4c94730e911e9d3433a3de0c1b383b85ba17ca (diff)
downloadDotNetOpenAuth-a49e0e1b990d4c9721134b002f47cb95a496b7e4.zip
DotNetOpenAuth-a49e0e1b990d4c9721134b002f47cb95a496b7e4.tar.gz
DotNetOpenAuth-a49e0e1b990d4c9721134b002f47cb95a496b7e4.tar.bz2
Removes tests based on hosting ASP.NET on a project-less web site.
Hosting ASP.NET has always been a fragile effort. And project-less web sites are born with constant issues. It's easier to just remove it. OWIN and Katana are likely to make this code obsolete anyway.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj4
-rw-r--r--src/DotNetOpenAuth.Test/Hosting/AspNetHost.cs87
-rw-r--r--src/DotNetOpenAuth.Test/Hosting/HostingTests.cs46
-rw-r--r--src/DotNetOpenAuth.Test/Hosting/HttpHost.cs111
-rw-r--r--src/DotNetOpenAuth.Test/Hosting/TestingWorkerRequest.cs123
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs19
-rw-r--r--src/DotNetOpenAuth.TestWeb/Default.aspx24
-rw-r--r--src/DotNetOpenAuth.TestWeb/OpenIdProviderEndpoint.ashx67
-rw-r--r--src/DotNetOpenAuth.TestWeb/Web.config68
-rw-r--r--src/DotNetOpenAuth.TestWeb/packages.config8
-rw-r--r--src/DotNetOpenAuth.sln30
11 files changed, 0 insertions, 587 deletions
diff --git a/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj b/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj
index ab90935..1ab1d20 100644
--- a/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj
+++ b/src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj
@@ -106,10 +106,6 @@
<ItemGroup>
<Compile Include="AutoRedirectHandler.cs" />
<Compile Include="Configuration\SectionTests.cs" />
- <Compile Include="Hosting\AspNetHost.cs" />
- <Compile Include="Hosting\HostingTests.cs" />
- <Compile Include="Hosting\HttpHost.cs" />
- <Compile Include="Hosting\TestingWorkerRequest.cs" />
<Compile Include="LocalizationTests.cs" />
<Compile Include="Messaging\CollectionAssert.cs" />
<Compile Include="Messaging\EnumerableCacheTests.cs" />
diff --git a/src/DotNetOpenAuth.Test/Hosting/AspNetHost.cs b/src/DotNetOpenAuth.Test/Hosting/AspNetHost.cs
deleted file mode 100644
index 5c9ed41..0000000
--- a/src/DotNetOpenAuth.Test/Hosting/AspNetHost.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="AspNetHost.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOpenAuth.Test.Hosting {
- using System;
- using System.IO;
- using System.Net;
- using System.Threading;
- using System.Web;
- using System.Web.Hosting;
- using DotNetOpenAuth.Messaging;
- using DotNetOpenAuth.Test.OpenId;
-
- /// <summary>
- /// Hosts an ASP.NET web site for placing ASP.NET controls and services on
- /// for more complete end-to-end testing.
- /// </summary>
- internal class AspNetHost : MarshalByRefObject, IDisposable {
- private HttpHost httpHost;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="AspNetHost"/> class.
- /// </summary>
- /// <remarks>
- /// DO NOT CALL DIRECTLY. This is only here for ASP.NET to call.
- /// Call the static <see cref="AspNetHost.CreateHost"/> method instead.
- /// </remarks>
- [Obsolete("Use the CreateHost static method instead.")]
- public AspNetHost() {
- this.httpHost = HttpHost.CreateHost(this);
- }
-
- public Uri BaseUri {
- get { return this.httpHost.BaseUri; }
- }
-
- public static AspNetHost CreateHost(string webDirectory) {
- AspNetHost host = (AspNetHost)ApplicationHost.CreateApplicationHost(typeof(AspNetHost), "/", webDirectory);
- return host;
- }
-
- public string ProcessRequest(string url) {
- return this.httpHost.ProcessRequest(url);
- }
-
- public string ProcessRequest(string url, string body) {
- return this.httpHost.ProcessRequest(url, body);
- }
-
- public void BeginProcessRequest(HttpListenerContext context) {
- ThreadPool.QueueUserWorkItem(state => { ProcessRequest(context); });
- }
-
- public void ProcessRequest(HttpListenerContext context) {
- try {
- using (TextWriter tw = new StreamWriter(context.Response.OutputStream)) {
- HttpRuntime.ProcessRequest(new TestingWorkerRequest(context, tw));
- }
- } catch (Exception ex) {
- Logger.Http.Error("Exception in AspNetHost", ex);
- throw;
- }
- }
-
- public void CloseHttp() {
- this.httpHost.Dispose();
- }
-
- #region IDisposable Members
-
- public void Dispose() {
- this.Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected void Dispose(bool disposing) {
- if (disposing) {
- this.CloseHttp();
- }
- }
-
- #endregion
- }
-}
diff --git a/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs b/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs
deleted file mode 100644
index 0f3f6e9..0000000
--- a/src/DotNetOpenAuth.Test/Hosting/HostingTests.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="HostingTests.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOpenAuth.Test.Hosting {
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Text;
- using DotNetOpenAuth.Test.OpenId;
- using NUnit.Framework;
-
- [TestFixture, Category("HostASPNET")]
- public class HostingTests : TestBase {
- [Test]
- public void AspHostBasicTest() {
- try {
- using (AspNetHost host = AspNetHost.CreateHost(TestWebDirectory)) {
- HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host.BaseUri);
- using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) {
- Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
- using (StreamReader sr = new StreamReader(response.GetResponseStream())) {
- string content = sr.ReadToEnd();
- StringAssert.Contains("Test home page", content);
- }
- }
- }
- } catch (FileNotFoundException ex) {
- Assert.Inconclusive(
- "Unable to execute hosted ASP.NET tests because {0} could not be found. {1}", ex.FileName, ex.FusionLog);
- } catch (WebException ex) {
- if (ex.Response != null) {
- using (var responseStream = new StreamReader(ex.Response.GetResponseStream())) {
- Console.WriteLine(responseStream.ReadToEnd());
- }
- }
-
- throw;
- }
- }
- }
-}
diff --git a/src/DotNetOpenAuth.Test/Hosting/HttpHost.cs b/src/DotNetOpenAuth.Test/Hosting/HttpHost.cs
deleted file mode 100644
index ee3cb6c..0000000
--- a/src/DotNetOpenAuth.Test/Hosting/HttpHost.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="HttpHost.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOpenAuth.Test.Hosting {
- using System;
- using System.Globalization;
- using System.IO;
- using System.Net;
- using System.Threading;
-
- internal class HttpHost : IDisposable {
- private readonly HttpListener listener;
- private Thread listenerThread;
- private AspNetHost aspNetHost;
-
- private HttpHost(AspNetHost aspNetHost) {
- this.aspNetHost = aspNetHost;
-
- this.Port = 59687;
- Random r = new Random();
- tryAgain:
- try {
- this.listener = new HttpListener();
- this.listener.Prefixes.Add(string.Format(CultureInfo.InvariantCulture, "http://localhost:{0}/", this.Port));
- this.listener.Start();
- } catch (HttpListenerException ex) {
- if (ex.Message.Contains("conflicts")) {
- this.Port += r.Next(1, 20);
- goto tryAgain;
- }
- throw;
- }
- this.listenerThread = new Thread(this.ProcessRequests);
- this.listenerThread.Start();
- }
-
- public int Port { get; private set; }
-
- public Uri BaseUri {
- get { return new Uri("http://localhost:" + this.Port.ToString() + "/"); }
- }
-
- public static HttpHost CreateHost(AspNetHost aspNetHost) {
- return new HttpHost(aspNetHost);
- }
-
- public static HttpHost CreateHost(string webDirectory) {
- return new HttpHost(AspNetHost.CreateHost(webDirectory));
- }
-
- public string ProcessRequest(string url) {
- return this.ProcessRequest(url, null);
- }
-
- public string ProcessRequest(string url, string body) {
- WebRequest request = WebRequest.Create(new Uri(this.BaseUri, url));
- if (body != null) {
- request.Method = "POST";
- request.ContentLength = body.Length;
- using (StreamWriter sw = new StreamWriter(request.GetRequestStream())) {
- sw.Write(body);
- }
- }
- try {
- using (WebResponse response = request.GetResponse()) {
- using (StreamReader sr = new StreamReader(response.GetResponseStream())) {
- return sr.ReadToEnd();
- }
- }
- } catch (WebException ex) {
- Logger.Http.Error("Exception in HttpHost", ex);
- using (StreamReader sr = new StreamReader(ex.Response.GetResponseStream())) {
- string streamContent = sr.ReadToEnd();
- Logger.Http.ErrorFormat("Error content stream follows: {0}", streamContent);
- }
- throw;
- }
- }
-
- #region IDisposable Members
-
- public void Dispose() {
- this.Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected virtual void Dispose(bool disposing) {
- if (disposing) {
- this.listener.Close();
- this.listenerThread.Join(1000);
- this.listenerThread.Abort();
- }
- }
-
- #endregion
-
- private void ProcessRequests() {
- try {
- while (true) {
- var context = this.listener.GetContext();
- this.aspNetHost.BeginProcessRequest(context);
- }
- } catch (HttpListenerException) {
- // the listener is probably being shut down
- }
- }
- }
-}
diff --git a/src/DotNetOpenAuth.Test/Hosting/TestingWorkerRequest.cs b/src/DotNetOpenAuth.Test/Hosting/TestingWorkerRequest.cs
deleted file mode 100644
index f6c54e6..0000000
--- a/src/DotNetOpenAuth.Test/Hosting/TestingWorkerRequest.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-//-----------------------------------------------------------------------
-// <copyright file="TestingWorkerRequest.cs" company="Outercurve Foundation">
-// Copyright (c) Outercurve Foundation. All rights reserved.
-// </copyright>
-//-----------------------------------------------------------------------
-
-namespace DotNetOpenAuth.Test.Hosting {
- using System;
- using System.IO;
- using System.Net;
- using System.Web.Hosting;
-
- /// <summary>
- /// Processes individual incoming ASP.NET requests.
- /// </summary>
- internal class TestingWorkerRequest : SimpleWorkerRequest {
- private Stream entityStream;
-
- private HttpListenerContext context;
-
- private TextWriter writer;
-
- public TestingWorkerRequest(string page, string query, Stream entityStream, TextWriter writer)
- : base(page, query, writer) {
- this.entityStream = entityStream;
- this.writer = writer;
- }
-
- public TestingWorkerRequest(HttpListenerContext context, TextWriter output)
- : base(context.Request.Url.LocalPath.TrimStart('/'), context.Request.Url.Query, output) {
- this.entityStream = context.Request.InputStream;
- this.context = context;
- this.writer = output;
- }
-
- public override string GetFilePath() {
- string filePath = this.context.Request.Url.LocalPath.Replace("/", "\\");
- if (filePath.EndsWith("\\", StringComparison.Ordinal)) {
- filePath += "default.aspx";
- }
- return filePath;
- }
-
- public override int GetLocalPort() {
- return this.context.Request.Url.Port;
- }
-
- public override string GetServerName() {
- return this.context.Request.Url.Host;
- }
-
- public override string GetQueryString() {
- return this.context.Request.Url.Query.TrimStart('?');
- }
-
- public override string GetHttpVerbName() {
- return this.context.Request.HttpMethod;
- }
-
- public override string GetLocalAddress() {
- return this.context.Request.LocalEndPoint.Address.ToString();
- }
-
- public override string GetHttpVersion() {
- return "HTTP/1.1";
- }
-
- public override string GetProtocol() {
- return this.context.Request.Url.Scheme;
- }
-
- public override string GetRawUrl() {
- return this.context.Request.RawUrl;
- }
-
- public override int GetTotalEntityBodyLength() {
- return (int)this.context.Request.ContentLength64;
- }
-
- public override string GetKnownRequestHeader(int index) {
- return this.context.Request.Headers[GetKnownRequestHeaderName(index)];
- }
-
- public override string GetUnknownRequestHeader(string name) {
- return this.context.Request.Headers[name];
- }
-
- public override bool IsEntireEntityBodyIsPreloaded() {
- return false;
- }
-
- public override int ReadEntityBody(byte[] buffer, int size) {
- return this.entityStream.Read(buffer, 0, size);
- }
-
- public override int ReadEntityBody(byte[] buffer, int offset, int size) {
- return this.entityStream.Read(buffer, offset, size);
- }
-
- public override void SendCalculatedContentLength(int contentLength) {
- this.context.Response.ContentLength64 = contentLength;
- }
-
- public override void SendStatus(int statusCode, string statusDescription) {
- if (this.context != null) {
- this.context.Response.StatusCode = statusCode;
- this.context.Response.StatusDescription = statusDescription;
- }
- }
-
- public override void SendKnownResponseHeader(int index, string value) {
- if (this.context != null) {
- this.context.Response.Headers[(HttpResponseHeader)index] = value;
- }
- }
-
- public override void SendUnknownResponseHeader(string name, string value) {
- if (this.context != null) {
- this.context.Response.Headers[name] = value;
- }
- }
- }
-}
diff --git a/src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs b/src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs
index 4780e37..ae07d71 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs
@@ -17,7 +17,6 @@ namespace DotNetOpenAuth.Test.OpenId.Provider {
using DotNetOpenAuth.OpenId.Messages;
using DotNetOpenAuth.OpenId.Provider;
using DotNetOpenAuth.OpenId.RelyingParty;
- using DotNetOpenAuth.Test.Hosting;
using NUnit.Framework;
[TestFixture]
@@ -123,23 +122,5 @@ namespace DotNetOpenAuth.Test.OpenId.Provider {
Assert.IsNotNull(response.ErrorMessage);
Assert.AreEqual(Protocol.Default.Version, response.Version);
}
-
- [Test, Category("HostASPNET")]
- public async Task BadRequestsGenerateValidErrorResponsesHosted() {
- try {
- using (AspNetHost host = AspNetHost.CreateHost(TestWebDirectory)) {
- Uri opEndpoint = new Uri(host.BaseUri, "/OpenIdProviderEndpoint.ashx");
- var rp = new OpenIdRelyingParty(null);
- var nonOpenIdMessage = new Mocks.TestDirectedMessage();
- nonOpenIdMessage.Recipient = opEndpoint;
- nonOpenIdMessage.HttpMethods = HttpDeliveryMethods.PostRequest;
- MessagingTestBase.GetStandardTestMessage(MessagingTestBase.FieldFill.AllRequired, nonOpenIdMessage);
- var response = await rp.Channel.RequestAsync<DirectErrorResponse>(nonOpenIdMessage, CancellationToken.None);
- Assert.IsNotNull(response.ErrorMessage);
- }
- } catch (FileNotFoundException ex) {
- Assert.Inconclusive("Unable to execute hosted ASP.NET tests because {0} could not be found. {1}", ex.FileName, ex.FusionLog);
- }
- }
}
}
diff --git a/src/DotNetOpenAuth.TestWeb/Default.aspx b/src/DotNetOpenAuth.TestWeb/Default.aspx
deleted file mode 100644
index 4716939..0000000
--- a/src/DotNetOpenAuth.TestWeb/Default.aspx
+++ /dev/null
@@ -1,24 +0,0 @@
-<%@ Page Language="C#" %>
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<script runat="server">
-
-</script>
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head runat="server">
- <title></title>
-</head>
-<body>
- <form id="form1" runat="server">
- <div>
- <!-- this next string is assembled deliberately so that a test can string search
- for the generated result and determine that ASP.NET is setup correctly. -->
- <p>
- <%="Test" + " home page" %>
- </p>
- </div>
- </form>
-</body>
-</html>
diff --git a/src/DotNetOpenAuth.TestWeb/OpenIdProviderEndpoint.ashx b/src/DotNetOpenAuth.TestWeb/OpenIdProviderEndpoint.ashx
deleted file mode 100644
index 70dc9af..0000000
--- a/src/DotNetOpenAuth.TestWeb/OpenIdProviderEndpoint.ashx
+++ /dev/null
@@ -1,67 +0,0 @@
-<%@ WebHandler Language="C#" Class="OpenIdProviderEndpoint" %>
-using System;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Web;
-using DotNetOpenAuth.OpenId.Provider;
-
-using DotNetOpenAuth.Messaging;
-
-public class OpenIdProviderEndpoint : IHttpAsyncHandler {
- public bool IsReusable {
- get { return true; }
- }
-
- public IAsyncResult BeginProcessRequest(HttpContext context, System.AsyncCallback cb, object extraData) {
- return ToApm(this.ProcessRequestAsync(context), cb, extraData);
- }
-
- public void EndProcessRequest(IAsyncResult result) {
- ((Task)result).Wait(); // rethrows exceptions
- }
-
- public void ProcessRequest(HttpContext context) {
- this.ProcessRequestAsync(context).GetAwaiter().GetResult();
- }
-
- private static Task ToApm(Task task, AsyncCallback callback, object state) {
- if (task == null) {
- throw new ArgumentNullException("task");
- }
-
- var tcs = new TaskCompletionSource<object>(state);
- task.ContinueWith(
- t => {
- if (t.IsFaulted) {
- tcs.TrySetException(t.Exception.InnerExceptions);
- } else if (t.IsCanceled) {
- tcs.TrySetCanceled();
- } else {
- tcs.TrySetResult(null);
- }
-
- if (callback != null) {
- callback(tcs.Task);
- }
- },
- CancellationToken.None,
- TaskContinuationOptions.None,
- TaskScheduler.Default);
-
- return tcs.Task;
- }
-
- private async Task ProcessRequestAsync(HttpContext context) {
- OpenIdProvider provider = new OpenIdProvider();
- IRequest request = await provider.GetRequestAsync(new HttpRequestWrapper(context.Request), context.Response.ClientDisconnectedToken);
- if (request != null) {
- if (!request.IsResponseReady) {
- IAuthenticationRequest authRequest = (IAuthenticationRequest)request;
- authRequest.IsAuthenticated = true;
- }
-
- var response = await provider.PrepareResponseAsync(request, context.Response.ClientDisconnectedToken);
- await response.SendAsync(new HttpContextWrapper(context), context.Response.ClientDisconnectedToken);
- }
- }
-} \ No newline at end of file
diff --git a/src/DotNetOpenAuth.TestWeb/Web.config b/src/DotNetOpenAuth.TestWeb/Web.config
deleted file mode 100644
index 0a8b44c..0000000
--- a/src/DotNetOpenAuth.TestWeb/Web.config
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Note: As an alternative to hand editing this file you can use the
- web admin tool to configure settings for your application. Use
- the Website->Asp.Net Configuration option in Visual Studio.
- A full list of settings and comments can be found in
- machine.config.comments usually located in
- \Windows\Microsoft.Net\Framework\v2.x\Config
--->
-<configuration>
- <appSettings/>
- <connectionStrings/>
- <!--
- For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
-
- The following attributes can be set on the <httpRuntime> tag.
- <system.Web>
- <httpRuntime targetFramework="4.5" />
- </system.Web>
- -->
- <system.web>
- <!--
- Set compilation debug="true" to insert debugging
- symbols into the compiled page. Because this
- affects performance, set this value to true only
- during development.
- -->
- <compilation debug="true" targetFramework="4.5">
- <assemblies>
- <add assembly="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
- <add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
- <add assembly="System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
- </assemblies>
- </compilation>
- <!--
- The <authentication> section enables configuration
- of the security authentication mode used by
- ASP.NET to identify an incoming user.
- -->
- <authentication mode="Forms"/>
- <!--
- The <customErrors> section enables configuration
- of what to do if/when an unhandled error occurs
- during the execution of a request. Specifically,
- it enables developers to configure html error pages
- to be displayed in place of a error stack trace.
-
- <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
- <error statusCode="403" redirect="NoAccess.htm" />
- <error statusCode="404" redirect="FileNotFound.htm" />
- </customErrors>
- -->
- <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
- </system.web>
- <!--
- The system.webServer section is required for running ASP.NET AJAX under Internet
- Information Services 7.0. It is not necessary for previous version of IIS.
- -->
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true"/>
- </system.webServer>
-</configuration> \ No newline at end of file
diff --git a/src/DotNetOpenAuth.TestWeb/packages.config b/src/DotNetOpenAuth.TestWeb/packages.config
deleted file mode 100644
index c527bd3..0000000
--- a/src/DotNetOpenAuth.TestWeb/packages.config
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net45" />
- <package id="Microsoft.AspNet.Razor" version="2.0.20715.0" targetFramework="net45" />
- <package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net45" />
- <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net45" />
- <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
-</packages> \ No newline at end of file
diff --git a/src/DotNetOpenAuth.sln b/src/DotNetOpenAuth.sln
index 049f544..e63e1b2 100644
--- a/src/DotNetOpenAuth.sln
+++ b/src/DotNetOpenAuth.sln
@@ -58,37 +58,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetOpenAuth.Test", "DotN
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetOpenAuth.ApplicationBlock", "..\samples\DotNetOpenAuth.ApplicationBlock\DotNetOpenAuth.ApplicationBlock.csproj", "{AA78D112-D889-414B-A7D4-467B34C7B663}"
EndProject
-Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "DotNetOpenAuth.TestWeb", "DotNetOpenAuth.TestWeb\", "{47A84EF7-68C3-4D47-926A-9CCEA6518531}"
- ProjectSection(WebsiteProperties) = preProject
- TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
- TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
- ProjectReferences = "{f8284738-3b5d-4733-a511-38c23f4a763f}|DotNetOpenAuth.OpenId.Provider.dll;{60426312-6AE5-4835-8667-37EDEA670222}|DotNetOpenAuth.Core.dll;{3896A32A-E876-4C23-B9B8-78E17D134CD3}|DotNetOpenAuth.OpenId.dll;{26DC877F-5987-48DD-9DDB-E62F2DE0E150}|Org.Mentalis.Security.Cryptography.dll;{F4CD3C04-6037-4946-B7A5-34BFC96A75D2}|Mono.Math.dll;"
- Debug.AspNetCompiler.VirtualPath = "/DotNetOpenAuth.TestWeb"
- Debug.AspNetCompiler.PhysicalPath = "DotNetOpenAuth.TestWeb\"
- Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\DotNetOpenAuth.TestWeb\"
- Debug.AspNetCompiler.Updateable = "false"
- Debug.AspNetCompiler.ForceOverwrite = "true"
- Debug.AspNetCompiler.FixedNames = "false"
- Debug.AspNetCompiler.Debug = "True"
- Release.AspNetCompiler.VirtualPath = "/DotNetOpenAuth.TestWeb"
- Release.AspNetCompiler.PhysicalPath = "DotNetOpenAuth.TestWeb\"
- Release.AspNetCompiler.TargetPath = "PrecompiledWeb\DotNetOpenAuth.TestWeb\"
- Release.AspNetCompiler.Updateable = "false"
- Release.AspNetCompiler.ForceOverwrite = "true"
- Release.AspNetCompiler.FixedNames = "false"
- Release.AspNetCompiler.Debug = "False"
- VWDPort = "5073"
- DefaultWebSiteLanguage = "Visual C#"
- StartServerOnDebug = "false"
- EndProjectSection
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIdProviderWebForms", "..\samples\OpenIdProviderWebForms\OpenIdProviderWebForms.csproj", "{2A59DE0A-B76A-4B42-9A33-04D34548353D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenIdProviderMvc", "..\samples\OpenIdProviderMvc\OpenIdProviderMvc.csproj", "{AEA29D4D-396F-47F6-BC81-B58D4B855245}"
EndProject
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "InfoCardRelyingParty", "..\samples\InfoCardRelyingParty\", "{6EB90284-BD15-461C-BBF2-131CF55F7C8B}"
ProjectSection(WebsiteProperties) = preProject
- TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
ProjectReferences = "{60426312-6ae5-4835-8667-37edea670222}|DotNetOpenAuth.Core.dll;{173e7b8d-e751-46e2-a133-f72297c0d2f4}|DotNetOpenAuth.Core.UI.dll;{408d10b8-34ba-4cbd-b7aa-feb1907aba4c}|DotNetOpenAuth.InfoCard.dll;{e040eb58-b4d2-457b-a023-ae6ef3bd34de}|DotNetOpenAuth.InfoCard.UI.dll;"
Debug.AspNetCompiler.VirtualPath = "/InfoCardRelyingParty"
@@ -242,11 +217,6 @@ Global
{AA78D112-D889-414B-A7D4-467B34C7B663}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA78D112-D889-414B-A7D4-467B34C7B663}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA78D112-D889-414B-A7D4-467B34C7B663}.Release|Any CPU.Build.0 = Release|Any CPU
- {47A84EF7-68C3-4D47-926A-9CCEA6518531}.CodeAnalysis|Any CPU.ActiveCfg = Debug|Any CPU
- {47A84EF7-68C3-4D47-926A-9CCEA6518531}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {47A84EF7-68C3-4D47-926A-9CCEA6518531}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {47A84EF7-68C3-4D47-926A-9CCEA6518531}.Release|Any CPU.ActiveCfg = Debug|Any CPU
- {47A84EF7-68C3-4D47-926A-9CCEA6518531}.Release|Any CPU.Build.0 = Debug|Any CPU
{2A59DE0A-B76A-4B42-9A33-04D34548353D}.CodeAnalysis|Any CPU.ActiveCfg = CodeAnalysis|Any CPU
{2A59DE0A-B76A-4B42-9A33-04D34548353D}.CodeAnalysis|Any CPU.Build.0 = CodeAnalysis|Any CPU
{2A59DE0A-B76A-4B42-9A33-04D34548353D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU