<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>XML Web Services</title><link>http://forums.asp.net/28.aspx</link><description>All about building XML Web Services with ASP.NET - SOAP, WSDL, WCF, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=66&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Passing List&lt;&gt; from webservice (works on local machine but not on production)</title><link>http://forums.asp.net/thread/3273434.aspx</link><pubDate>Fri, 03 Jul 2009 11:51:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273434</guid><dc:creator>robertdondo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273434.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=28&amp;PostID=3273434</wfw:commentRss><description>&lt;p&gt;thanks a lot, fixed it, i was using a wrong connection string in that particular method. Everything is now in order, appreciate your help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Passing List&lt;&gt; from webservice (works on local machine but not on production)</title><link>http://forums.asp.net/thread/3273342.aspx</link><pubDate>Fri, 03 Jul 2009 10:54:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273342</guid><dc:creator>qwe123kids</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273342.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=28&amp;PostID=3273342</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Real Error is mention below...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;System.Data.SqlClient.SqlException: An error
has occurred while establishing a connection to the server. &amp;nbsp;When
connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Have Checked Connection string username,Password,Databasename,and Ipaddress&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Passing List&lt;&gt; from webservice (works on local machine but not on production)</title><link>http://forums.asp.net/thread/3273192.aspx</link><pubDate>Fri, 03 Jul 2009 09:42:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273192</guid><dc:creator>robertdondo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273192.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=28&amp;PostID=3273192</wfw:commentRss><description>&lt;p&gt;Hi all, &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am calling a webservice to return a List&amp;lt;&amp;gt;, with the following code:&lt;/p&gt;&lt;p&gt;[WebMethod()]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public List&amp;lt;JobCategory&amp;gt; GetJobCategories()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return FieldLookup.GetJobCategories();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This method calls another static method (fieldlookup) from the mid-tier and passes on the List&amp;lt;JobCategory&amp;gt;.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;When I run it on my testing server, everything works 100%. When I deploy to production, however, I get the following error (for this web method only, other methods are working):&lt;/p&gt;&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;
            &lt;b&gt; Exception Details: &lt;/b&gt;System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---&amp;gt; System.Data.SqlClient.SqlException: An error
has occurred while establishing a connection to the server. &amp;nbsp;When
connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo,
SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout,
Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean
integratedSecurity, SqlConnection owningObject)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo
serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64
timerExpire, SqlConnection owningObject)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String
host, String newPassword, Boolean redirectedUserInstance, SqlConnection
owningObject, SqlConnectionString connectionOptions, Int64 timerStart)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;at
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection
owningObject, SqlConnectionString connectionOptions, String
newPassword, Boolean redirectedUserInstance)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity
identity, SqlConnectionString connectionOptions, Object providerInfo,
String newPassword, SqlConnection owningObject, Boolean
redirectedUserInstance)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningConnection)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection
owningConnection, DbConnectionPool pool, DbConnectionOptions options)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.SqlClient.SqlConnection.Open()&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe()&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable&amp;lt;T&amp;gt;.GetEnumerator()&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)&lt;br /&gt; &amp;nbsp;&amp;nbsp;at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;at
Nestle.CommunityPassport.MidTier.Helpers.FieldLookup.GetEmploymentTypes()
in C:\Documents and Settings\Administrator\My Documents\Visual Studio
2008\Projects\Nestle.CommunityPassport\Nestle.CommunityPassport\Nestle.CommunityPassport.MidTier\Helpers\Lookup.cs:line
16&lt;br /&gt; &amp;nbsp;&amp;nbsp;at
Nestle.CommunityPassport.WebService.NcpService.GetEmploymentTypes() in
C:\Documents and Settings\Administrator\My Documents\Visual Studio
2008\Projects\Nestle.CommunityPassport\Nestle.CommunityPassport\Nestle.CommunityPassport.WebService\Ncp.asmx.cs:line
476&lt;br /&gt; &amp;nbsp;&amp;nbsp;--- End of inner exception stack trace ---&lt;/font&gt;&lt;/p&gt;&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;</description></item></channel></rss>