github을 통해 NancyFX 0.23.2 소스를 설치했으며 Windows 7 x64에 VS2013 Pro로 구축 중입니다. 나는 잘 구축 할 수 있습니다,하지만 난 GenericFileRespose를 통해 아무것도을 반환 할 때, 내가 얻을 :낸시 자체 호스팅 HttpListenerException : "매개 변수가 올바르지 않습니다."
A first chance exception of type 'System.Net.HttpListenerException' occurred in System.dll
---
System.Net.HttpListenerException (0x80004005): The parameter is incorrect
at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)
at Nancy.Responses.GenericFileResponse.<>c__DisplayClass1.<GetFileContent>b__0(Stream stream) in h:\home\projects\nancy\0.23.2\Nancy\src\Nancy\Responses\GenericFileResponse.cs:line 82
at Nancy.Hosting.Self.NancyHost.OutputWithDefaultTransferEncoding(Response nancyResponse, HttpListenerResponse response) in h:\home\projects\nancy\0.23.2\Nancy\src\Nancy.Hosting.Self\NancyHost.cs:line 320
at Nancy.Hosting.Self.NancyHost.ConvertNancyResponseToResponse(Response nancyResponse,
...
내가 연결하면, 대신, nuget 통해 검색 낸시 바이너리에, 내 출력은 괜찮지 만, 내가 어떤 디버깅 정보가 없습니다 낸시.
난 낸시 셀프 호스트 데모를 실행했는데 제대로 작동하는 것처럼 보였지만 내 프로젝트에 대해 다른 점이 무엇인지 알 수 있으면 망가졌습니다. 모든 것은 "모든 cpu"를 위해 만들어졌습니다. Nancy는 대상 .net 4.0 클라이언트 프로필로 구축되며, Nancy.Hosting.Self 대상은 .net 4.0으로 가득 차 있으며, 클래스 라이브러리와 NancyHost를 실행하는 콘솔 응용 프로그램도 마찬가지입니다.
어떤 통찰력이라도 대단히 감사하겠습니다.