Tuesday, 15 January 2013

c# - UNC FileShare Authentication for WCF Web Service? -



c# - UNC FileShare Authentication for WCF Web Service? -

we have wcf service upload , download documents , fileshare respectively.

the client application pass filesharelocation , filename inthe request. getting exception, , not able response.

filesharepath sample : \\serverip\sharedfolder

note: service working fine when don't utilize network file share.

'. ---> system.net.webexception: remote server returned error: (500) internal server error. @ system.net.httpwebrequest.getresponse() @ system.servicemodel.channels.httpchannelfactory.httprequestchannel.httpchannelrequest.waitforreply(timespan timeout) --- end of inner exception stack trace --- server stack trace: @ system.servicemodel.channels.httpchannelutilities.validaterequestreplyresponse(httpwebrequest request, httpwebresponse response, httpchannelfactory factory, webexception responseexception, channelbinding channelbinding) @ system.servicemodel.channels.httpchannelfactory.httprequestchannel.httpchannelrequest.waitforreply(timespan timeout) @ system.servicemodel.channels.requestchannel.request(message message, timespan timeout) @ system.servicemodel.dispatcher.requestchannelbinder.request(message message, timespan timeout) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs, timespan timeout) @ system.servicemodel.channels.servicechannel.call(string action, boolean oneway, proxyoperationruntime operation, object[] ins, object[] outs) @ system.servicemodel.channels.servicechannelproxy.invokeservice(imethodcallmessage methodcall, proxyoperationruntime operation) @ system.servicemodel.channels.servicechannelproxy.invoke(imessage message) exception rethrown @ [0]: @ system.runtime.remoting.proxies.realproxy.handlereturnmessage(imessage reqmsg, imessage retmsg) @ system.runtime.remoting.proxies.realproxy.privateinvoke(messagedata& msgdata, int32 type) @ wcfservicetest.wcfservice.icommonservice.uploaddocument(uploaddocumentrequest request) @ wcfservicetest.wcfservice.commonserviceclient.wcfservicetest.wcfservice.icommonservice.uploaddocument(uploaddocumentrequest request) in d:\test\cms\wcfservicetest\wcfservicetest\service references\wcfservice\reference.cs:line 2309 @ wcfservicetest.wcfservice.commonserviceclient.uploaddocument(requestheader uploaddocumentreqhdr, byte[]& uploaddocumentcontent) in d:\test\cms\wcfservicetest\wcfservicetest\service references\wcfservice\reference.cs:line 2316 @ wcfservicetest.frmmain.documentupload_click(object sender, eventargs e) in d:\test\cms\wcfservicetest\wcfservicetest\frmmain.cs:line 105

resolved myself.

create new application pool in iis change identity of apppool user has access fileshare change wcf service application pool new application pool

c# wcf authentication .net-3.5

No comments:

Post a Comment