{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1289","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1289/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1289/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1289/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1289","id":171657415,"number":1289,"title":"Application service use stream as parameter error","user":{"login":"Caskia","id":3402605,"avatar_url":"https://avatars.githubusercontent.com/u/3402605?v=3","gravatar_id":"","url":"https://api.github.com/users/Caskia","html_url":"https://github.com/Caskia","followers_url":"https://api.github.com/users/Caskia/followers","following_url":"https://api.github.com/users/Caskia/following{/other_user}","gists_url":"https://api.github.com/users/Caskia/gists{/gist_id}","starred_url":"https://api.github.com/users/Caskia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Caskia/subscriptions","organizations_url":"https://api.github.com/users/Caskia/orgs","repos_url":"https://api.github.com/users/Caskia/repos","events_url":"https://api.github.com/users/Caskia/events{/privacy}","received_events_url":"https://api.github.com/users/Caskia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/labels/problem","name":"problem","color":"eb9460"}],"state":"closed","locked":false,"assignee":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"assignees":[{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/milestones/57","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/milestones/v0.11.0","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/milestones/57/labels","id":1822841,"number":57,"title":"v0.11.0","description":"","creator":{"login":"hikalkan","id":1210527,"avatar_url":"https://avatars.githubusercontent.com/u/1210527?v=3","gravatar_id":"","url":"https://api.github.com/users/hikalkan","html_url":"https://github.com/hikalkan","followers_url":"https://api.github.com/users/hikalkan/followers","following_url":"https://api.github.com/users/hikalkan/following{/other_user}","gists_url":"https://api.github.com/users/hikalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/hikalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hikalkan/subscriptions","organizations_url":"https://api.github.com/users/hikalkan/orgs","repos_url":"https://api.github.com/users/hikalkan/repos","events_url":"https://api.github.com/users/hikalkan/events{/privacy}","received_events_url":"https://api.github.com/users/hikalkan/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":20,"state":"open","created_at":"2016-06-13T07:29:52Z","updated_at":"2016-08-18T14:42:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-17T13:29:48Z","updated_at":"2016-08-18T14:42:12Z","closed_at":"2016-08-18T14:42:12Z","body":"Hi dear hikalkan, \r\n\r\nIn my application layer, i have a dto class with a stream type parameter. I will get the stream does not support writing exception. Right now i use DisableValidation attribute to avoid exception. \r\n\r\nDto\r\n```\r\n    [AutoMapTo(typeof(Storage))]\r\n    public class SaveStorageInput\r\n    {\r\n        public string FileLocalPath { get; set; }\r\n\r\n        public Stream FileStream { get; set; }\r\n\r\n        [Required]\r\n        [StringLength(Storage.MaxNameLength)]\r\n        public string Name { get; set; }\r\n    }\r\n```\r\n\r\nException\r\n```\r\nERROR 2016-08-17 21:17:23,123 [72   ] nHandling.AbpApiExceptionFilterAttribute - Property accessor 'WriteTimeout' on object 'System.Net.Http.StreamContent+ReadOnlyStream' threw the following exception:'The stream does not support writing.'\r\nSystem.Reflection.TargetInvocationException: Property accessor 'WriteTimeout' on object 'System.Net.Http.StreamContent+ReadOnlyStream' threw the following exception:'The stream does not support writing.' ---> System.NotSupportedException: The stream does not support writing.\r\n   at System.Net.Http.StreamContent.ReadOnlyStream.get_WriteTimeout()\r\n   --- End of inner exception stack trace ---\r\n   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)\r\n   at Abp.Runtime.Validation.Interception.MethodInvocationValidator.ValidateObjectRecursively(Object validatingObject) in D:\\Halil\\GitHub\\aspnetboilerplate\\src\\Abp\\Runtime\\Validation\\Interception\\MethodInvocationValidator.cs:line 192\r\n   at Abp.Runtime.Validation.Interception.MethodInvocationValidator.ValidateObjectRecursively(Object validatingObject) in D:\\Halil\\GitHub\\aspnetboilerplate\\src\\Abp\\Runtime\\Validation\\Interception\\MethodInvocationValidator.cs:line 185\r\n   at Abp.Runtime.Validation.Interception.MethodInvocationValidator.Validate() in D:\\Halil\\GitHub\\aspnetboilerplate\\src\\Abp\\Runtime\\Validation\\Interception\\MethodInvocationValidator.cs:line 85\r\n   at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation) in D:\\Halil\\GitHub\\aspnetboilerplate\\src\\Abp\\Runtime\\Validation\\Interception\\ValidationInterceptor.cs:line 31\r\n   at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n   at Castle.Proxies.StorageAppServiceProxy.SaveAsync(SaveStorageInput input)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"hikalkan"}}