when I used ServiceStackVS 1.0.24 and ServiceStack 4.0.56. Add ServiceStack Reference, It works fine.
But After I update the ServiceStackVS 1.0.25 and ServiceStack 4.0.58. It gets something wrong.
First Time.
Error occured while Processing Request: Could not find Markdown page 'ErrorResponse'
2016-06-11 19:11:47.9616 【ERROR】【ServiceStackHost】 ServiceStack.ServiceStackHost.OnLogError ServiceBase::Service Exception 值不能为 null。
参数名: source System.ArgumentNullException ArgumentNullException System.ArgumentNullException: 值不能为 null。
参数名: source
在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 ServiceStack.NativeTypes.MetadataExtensions.GetIncludeList(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypes(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypesForNet(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.CSharp.CSharpGenerator.GetCode(MetadataTypes metadata, IRequest request)
在 ServiceStack.NativeTypes.NativeTypesService.Any(TypesCSharp request)
在 lambda_method(Closure , Object , Object )
在 ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto) System.Collections.Generic.IEnumerable`1[TSource] Where[TSource](System.Collections.Generic.IEnumerable`1[TSource], System.Func`2[TSource,System.Boolean]) 在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 ServiceStack.NativeTypes.MetadataExtensions.GetIncludeList(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypes(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypesForNet(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.CSharp.CSharpGenerator.GetCode(MetadataTypes metadata, IRequest request)
在 ServiceStack.NativeTypes.NativeTypesService.Any(TypesCSharp request)
在 lambda_method(Closure , Object , Object )
在 ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
2016-06-11 19:11:47.9616 【ERROR】【ServiceStackHost】 ServiceStack.ServiceStackHost.OnLogError Error occured while Processing Request: Could not find Markdown page 'ErrorResponse' Could not find Markdown page 'ErrorResponse' System.IO.InvalidDataException InvalidDataException System.IO.InvalidDataException: Could not find Markdown page 'ErrorResponse'
在 ServiceStack.Formats.MarkdownFormat.SerializeToStream(IRequest request, Object response, Stream stream)
在 ServiceStack.Host.ContentTypes.<>c__DisplayClass3.b__2(IRequest httpReq, Object dto, IResponse httpRes)
在 ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse(IResponse httpRes, IRequest httpReq, String contentType, String operationName, String errorMessage, Exception ex, Int32 statusCode)
在 ServiceStack.ServiceStackHost.HandleUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
在 ServiceStack.HostContext.RaiseAndHandleUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
在 ServiceStack.HttpResponseExtensionsInternal.HandleResponseWriteException(Exception originalEx, IRequest request, IResponse response, String defaultContentType)
在 ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequest request, Byte[] bodyPrefix, Byte[] bodySuffix)
在 ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result, Byte[] bodyPrefix, Byte[] bodySuffix)
在 ServiceStack.Host.RestHandler.<>c__DisplayClass5.b__0(Object response)
在 ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse(Object response, Func`2 callback, Func`2 errorCallback) Void SerializeToStream(ServiceStack.Web.IRequest, System.Object, System.IO.Stream) 在 ServiceStack.Formats.MarkdownFormat.SerializeToStream(IRequest request, Object response, Stream stream)
在 ServiceStack.Host.ContentTypes.<>c__DisplayClass3.b__2(IRequest httpReq, Object dto, IResponse httpRes)
在 ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse(IResponse httpRes, IRequest httpReq, String contentType, String operationName, String errorMessage, Exception ex, Int32 statusCode)
在 ServiceStack.ServiceStackHost.HandleUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
在 ServiceStack.HostContext.RaiseAndHandleUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex)
在 ServiceStack.HttpResponseExtensionsInternal.HandleResponseWriteException(Exception originalEx, IRequest request, IResponse response, String defaultContentType)
在 ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequest request, Byte[] bodyPrefix, Byte[] bodySuffix)
在 ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result, Byte[] bodyPrefix, Byte[] bodySuffix)
在 ServiceStack.Host.RestHandler.<>c__DisplayClass5.b__0(Object response)
在 ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse(Object response, Func`2 callback, Func`2 errorCallback)
============================================
So I Added a file ErrorResponse.md in views folder.
then It get a Error
2016-06-11 19:14:17.9362 【ERROR】【ServiceStackHost】 ServiceStack.ServiceStackHost.OnLogError ServiceBase::Service Exception 值不能为 null。
参数名: source System.ArgumentNullException ArgumentNullException System.ArgumentNullException: 值不能为 null。
参数名: source
在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 ServiceStack.NativeTypes.MetadataExtensions.GetIncludeList(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypes(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypesForNet(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.CSharp.CSharpGenerator.GetCode(MetadataTypes metadata, IRequest request)
在 ServiceStack.NativeTypes.NativeTypesService.Any(TypesCSharp request)
在 lambda_method(Closure , Object , Object )
在 ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto) System.Collections.Generic.IEnumerable`1[TSource] Where[TSource](System.Collections.Generic.IEnumerable`1[TSource], System.Func`2[TSource,System.Boolean]) 在 System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
在 ServiceStack.NativeTypes.MetadataExtensions.GetIncludeList(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypes(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.MetadataExtensions.RemoveIgnoredTypesForNet(MetadataTypes metadata, MetadataTypesConfig config)
在 ServiceStack.NativeTypes.CSharp.CSharpGenerator.GetCode(MetadataTypes metadata, IRequest request)
在 ServiceStack.NativeTypes.NativeTypesService.Any(TypesCSharp request)
在 lambda_method(Closure , Object , Object )
在 ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
============================================