Hi.
I've been struggling with this issue for a few hours and now have it working, so I thought I'd share.
I have a SharePoint List Source in my SSIS 2008R2 package that suddenly decided to start failing with:
Started: 8:00:01 AM
Error: 2012-04-11 08:00:16.95
Code: 0xC0047062
Source: <SharePoint List Source Component Name> [1]
Description: System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (407) Proxy Access Denied. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListAndView(GetListAndViewRequest request)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListAndView(GetListAndViewRequest request)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListAndView(String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointFields(String listName, String viewId)
at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetFields(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.GetAccessibleSharePointColumns(String sharepointUrl, String listName, String viewName)
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.ValidateSharePointColumns()
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.Validate()
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostValidate(IDTSManagedComponentWrapper100 wrapper)
End Error
Error: 2012-04-11 08:00:17.02
Code: 0xC0047017
Source: <SharePoint List Source Component Name> SSIS.Pipeline
Description: component "<SharePoint List Source Component Name>" (1) failed validation and returned error code 0x80131501.
End Error
Error: 2012-04-11 08:00:17.02
Code: 0xC004700C
Source: <SharePoint List Source Component Name> SSIS.Pipeline
Description: One or more component failed validation.
End Error
Error: 2012-04-11 08:00:17.02
Code: 0xC0024107
Source: <SharePoint List Source Component Name>
Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 8:00:01 AM
Finished: 8:00:17 AM
Elapsed: 15.257 seconds
After trying a number of things, the following was how I resolved it:
I added:
<system.net><defaultProxy enabled="true"><proxy bypassonlocal="true" proxyaddress="http://<proxy address>:<proxy port>/" /></defaultProxy></system.net>
to the <configuration> tag in the:
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTExec.exe.config
file and the problem was resolved.
Hooray!
Adam