<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/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>Web Services</title><link>https://www.dotnetzone.gr:443/cs/forums/21/ShowForum.aspx</link><description>Συζήτηση περί των web services και WSE, την υλοποίησή τους με το .NET Framework, καθώς και θέματα interoperability με άλλα συστήματα</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73747.aspx</link><pubDate>Fri, 02 Aug 2013 02:45:11 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73747</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73747.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73747</wfw:commentRss><description>&lt;p&gt;Καλησπέρα και πάλι!&lt;/p&gt;&lt;p&gt;&amp;nbsp;έκανα αυτό που προτείνατε και έβαλα τα δύο Proj στο ίδιο solution με multiple startup projects.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Το αποτέλεσμα ήταν να παίξει κανονικά με το webservice να τρέχει τοπικά. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Άρα είναι θέμα του IIS/website κτλ; Επειδή δεν έχω γνώσεις IT και τα site μου τα ετοιμάζουν άλλοι, τι μπορεί να φταίει ώστε να τους κατευθύνω;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Ευχαριστώ&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73710.aspx</link><pubDate>Tue, 30 Jul 2013 00:09:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73710</guid><dc:creator>George J. Capnias</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73710.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73710</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Markos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Γιώργο, με κόβει συνέχεια! Ούτε PM δε μπορώ να στείλω στον Harkon!&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Το ξέρω ότι μπορεί να ακούγεται χαζό, αλλά υπάρχει και limit στο πόσα μηνύματα μπορείς να στείλεις σε συγκεκριμένο χρόνο - και στο κατά πόσο τα μηνύματα που στέλνει κάποιος&amp;nbsp;μοιάζουν μεταξύ τους (Anti-spamming).&lt;/p&gt;&lt;p&gt;Αν και μπορώ να&amp;nbsp;"ξεκομπλάρω" τα μηνύματα&amp;nbsp;των&amp;nbsp;δημοσίων περιοχών, δεν μπορώ να κάνω το ίδιο θα τα προσωπικά μηνύματα.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;George J.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73687.aspx</link><pubDate>Sat, 27 Jul 2013 21:05:35 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73687</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73687.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73687</wfw:commentRss><description>ΟΚ... Αλλά έφαγα ΠΟΛΥΥΥΥΥΥΥΥ πόρτα πρωί - πρωί!&lt;br&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73686.aspx</link><pubDate>Sat, 27 Jul 2013 19:50:37 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73686</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73686.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73686</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Markos:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Γιώργο, με κόβει συνέχεια! Ούτε PM δε μπορώ να στείλω στον Harkon!&lt;br&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Σε ευχαριστώ πολύ για το μήνυμά σου, το απαντώ εδώ:&lt;/p&gt;&lt;p&gt;&amp;nbsp;πρίν από την γραμμή:&amp;nbsp;&lt;span style="font-family:arial, sans-serif;font-size:10pt;"&gt;For Each myDataRow In dSet.Tables(0).Rows&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;έβαλα το εξής στο webservice:&amp;nbsp;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;Return dSet.Tables.Count&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Function&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;και δεν φτάνει καν εκεί, επιστρέφοντας το σφάλμα του θέματος&lt;/p&gt;&lt;p&gt;επιπλέον πριν μου βγάλει το σφάλμα κάποιες φορές (όχι πάντα) βγάζει και το εξής:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://imageshack.us/photo/my-images/404/d8q7.png/" target="_blank" title="http://imageshack.us/photo/my-images/404/d8q7.png/"&gt;&lt;img src="http://img404.imageshack.us/img404/1449/d8q7.png" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;δικτυακό μοιάζει να είναι το πρόβλημα και που θα βρω άκρη..&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;μάλλον θα πρέπει να κάνω κάτι από αυτά που μου πρότεινε το μέλος&amp;nbsp;&lt;/span&gt;George J. Capnias,&lt;span style="font-size:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;http://www.dotnetzone.gr/cs/forums/permalink/73685/73665/ShowThread.aspx#73665&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73685.aspx</link><pubDate>Sat, 27 Jul 2013 18:40:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73685</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73685.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73685</wfw:commentRss><description>Γιώργο, με κόβει συνέχεια! Ούτε PM δε μπορώ να στείλω στον Harkon!&lt;br&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73682.aspx</link><pubDate>Sat, 27 Jul 2013 18:24:34 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73682</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73682.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73682</wfw:commentRss><description>&lt;p&gt;Προτού καλέσεις την insertToDestination, βεβαιώσου ότι το "Tables" collection έχει... tables! Το ότι εξετάζεις αν ολόκληρο το dataset είναι null ή όχι δεν σου εξασφαλίζει ότι θα έχει και tables. Χρησιμοποιείς το collection στη σειρά "&lt;i&gt;For Each myDataRow In dSet.Tables(0).Rows&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;&lt;/i&gt;", χωρίς έλεγχο.&lt;/p&gt;&lt;p&gt;Αυτά, με μια πολύ σύντομη ματιά. Αλλιώς χρειάζεται να κάνεις debugging καθώς τρέχει. Η παράθεση του κώδικα, από μόνη της, δεν είναι αρκετή.&lt;br&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73680.aspx</link><pubDate>Sat, 27 Jul 2013 03:45:16 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73680</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73680.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73680</wfw:commentRss><description>&lt;p&gt;Πωπω δεν είχε κάποτε tag για κώδικα και έκανε και αυτόματη στοίχηση;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;App: Εδώ καλώ την συνάρτηση του webservice&lt;/p&gt;&lt;p&gt;[code]&lt;/p&gt;&lt;p&gt;&amp;nbsp;Me.Cursor = Cursors.WaitCursor&lt;/p&gt;&lt;p&gt;Dim halt As Boolean = False&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim iterNum As Int16 = 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim result As String = ""&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Do Until halt&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Cursor = Cursors.WaitCursor&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim dSet As DataSet = GetSomeData(iterNum)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If dSet Is Nothing Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; halt = True&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Cursor = Cursors.WaitCursor&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim ws As New webtest.Service()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="font-size:10pt;"&gt;&amp;nbsp; result = ws.insertToDestination(dSet, iterNum)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If result &amp;lt;&amp;gt; "" Then&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DoLog(result)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; halt = True&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Cursor = Cursors.Default&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Sub&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iterNum = iterNum + 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Loop&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Me.Cursor = Cursors.Default&lt;/p&gt;&lt;p&gt;[/code]&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;και η συνάρτηση του webservice (την κάνω trim γιατί είναι τεράστια)&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;[code]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Public GET_DSERVER As String, GET_DDBNAME As String, GET_DUSERNAME As String, GET_DPASSWORD As String, GET_DOWNER As String&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Public WithEvents cnDest As SqlConnection&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Public Function getDBConnCreds() As Integer&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GET_DSERVER = ConfigurationManager.AppSettings("DBServer")&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GET_DDBNAME = ConfigurationManager.AppSettings("Catalog")&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GET_DUSERNAME = ConfigurationManager.AppSettings("DBUsername")&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GET_DPASSWORD = ConfigurationManager.AppSettings("DBPassword")&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GET_DOWNER = ConfigurationManager.AppSettings("DBUser")&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;&lt;p&gt;Public Function connectDestination() As Integer&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'connect&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cnDest = New SqlConnection&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cnDest.ConnectionString = _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Data Source=" &amp;amp; GET_DSERVER &amp;amp; ";Initial Catalog=" &amp;amp; GET_DDBNAME &amp;amp; ";User ID=" &amp;amp; GET_DUSERNAME &amp;amp; ";Password=" &amp;amp; GET_DPASSWORD _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; ";MultipleActiveResultSets=True"&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cnDest.Open()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectDestination = 200&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Catch ex As Exception&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectDestination = 0&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;WebMethod()&amp;gt; _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Public Function insertToDestination(ByVal dSet As DataSet, ByVal iteration As Int16) As String&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim status As String&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status = getDBConnCreds()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If status = 0 Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return "insertLawyersToDestination - Settings file error"&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status = connectDestination()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If status = 0 Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return "insertLawyersToDestination - Connection error"&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim cmd As New SqlCommand()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.Connection = cnDest&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.CommandType = CommandType.Text&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim sql As String&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If iteration = 1 Then&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sql = "DELETE FROM CUSTOMER WHERE cast(CODE as bigint) &amp;lt; 50000"&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.CommandText = sql&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cmd.ExecuteNonQuery()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;/p&gt;&lt;p&gt;Dim p1 As New SqlParameter("@ID", SqlDbType.Int, 4)&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p2 As New SqlParameter("@ACCMASK", SqlDbType.VarChar, 25)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p3 As New SqlParameter("@AFM", SqlDbType.VarChar, 15)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p4 As New SqlParameter("@ACCCRDLIMIT", SqlDbType.Float, 8)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p5 As New SqlParameter("@BILLTOCUSID", SqlDbType.Int, 4)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p6 As New SqlParameter("@CARRIER", SqlDbType.VarChar, 30)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p7 As New SqlParameter("@CITY1", SqlDbType.VarChar, 30)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p8 As New SqlParameter("@CITY2", SqlDbType.VarChar, 30)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p9 As New SqlParameter("@CNTID", SqlDbType.Int, 4)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim p10 As New SqlParameter("@CODE", SqlDbType.VarChar, 25)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;	&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;&lt;/span&gt;Dim myDataRow As DataRow&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For Each myDataRow In dSet.Tables(0).Rows&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sql = "INSERT INTO CUSTOMER(ID,ACCMASK,AFM,ACCCRDLIMIT,BILLTOCUSID,CARRIER" _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; ",CITY1,CITY2,CNTID,CODE)" _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; " VALUES(@ID,@ACCMASK,@AFM,@ACCCRDLIMIT,@BILLTOCUSID,@CARRIER" _&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp; ",@CITY1,@CITY2,@CNTID,@CODE)"&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With cmd&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p1.Value = IIf(IsDBNull(myDataRow("ID")), DBNull.Value, myDataRow("ID"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p2.Value = IIf(IsDBNull(myDataRow("ACCMASK")), DBNull.Value, myDataRow("ACCMASK"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p3.Value = IIf(IsDBNull(myDataRow("AFM")), DBNull.Value, myDataRow("AFM"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p4.Value = IIf(IsDBNull(myDataRow("ACCCRDLIMIT")), DBNull.Value, myDataRow("ACCCRDLIMIT"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p5.Value = IIf(IsDBNull(myDataRow("BILLTOCUSID")), DBNull.Value, myDataRow("BILLTOCUSID"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p6.Value = IIf(IsDBNull(myDataRow("CARRIER")), DBNull.Value, myDataRow("CARRIER"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p7.Value = IIf(IsDBNull(myDataRow("CITY1")), DBNull.Value, myDataRow("CITY1"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p8.Value = IIf(IsDBNull(myDataRow("CITY2")), DBNull.Value, myDataRow("CITY2"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p9.Value = IIf(IsDBNull(myDataRow("CNTID")), DBNull.Value, myDataRow("CNTID"))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p10.Value = IIf(IsDBNull(myDataRow("CODE")), DBNull.Value, myDataRow("CODE"))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-tab-span" style="white-space:pre;"&gt;&lt;/span&gt;.Parameters.Add(p1)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p2)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p3)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p4)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p5)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p6)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p7)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p8)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p9)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Add(p10)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;.CommandText = sql&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ExecuteNonQuery()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Parameters.Clear()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return ""&lt;/p&gt;&lt;p&gt;Catch ex As Exception&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return "insertToDestination - " &amp;amp; ex.Message&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit Function&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Finally&lt;span style="font-size:10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cnDest.Close()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cnDest.Dispose()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Try&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; End Function&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;[/code]&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73679.aspx</link><pubDate>Sat, 27 Jul 2013 03:33:24 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73679</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73679.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73679</wfw:commentRss><description>Χε, χε... το βρήκα! Ο Hanselman &lt;a href="http://www.hanselman.com/blog/ReturningDataSetsFromWebServicesIsTheSpawnOfSatanAndRepresentsAllThatIsTrulyEvilInTheWorld.aspx"&gt;κάνει λόγο για bowls&lt;/a&gt; και όχι για "κουβάδες"! Περιττό να σου πως ότι θεωρώ τον παραλληλισμό ακόμα πιο ήπιο...&lt;br&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73678.aspx</link><pubDate>Sat, 27 Jul 2013 03:22:04 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73678</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73678.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73678</wfw:commentRss><description>&lt;p&gt;Για DataSets, εγώ θα έλεγα να ξεκινήσεις από το MSDN (&lt;a href="http://msdn.microsoft.com/en-us/library/vstudio/bb384587.aspx"&gt;Working with datasets in N-Tier Applications&lt;/a&gt;). Υπάρχει και &lt;a href="http://msdn.microsoft.com/en-us/library/cc178916.aspx"&gt;video&lt;/a&gt;. Η συντριπτική πλειοψηφία του forum θα σου πει να προτιμήσεις κάποιο ORM. Γενικά, δεν υπάρχει εύκολη λύση. Και όπως σου γράφει ο Παναγιώτης, μην περνάς ΟΛΟΚΛΗΡΟ DataSet σε WebService. Σε κάποιο άρθρο που είχα διαβάσει παλιά, ο συγγραφέας έγραφε ότι στα web services καλόν είναι να περνάμε τα data και όχι τον "κουβά" (αναφερόμενος στα DataSets). Εγώ διαφωνώ μ' αυτό το statement ως προς τον παραλληλισμό. Το DataSet δεν είναι ο "κουβάς", αλλά το τριαξονικό φορτηγό! Πρέπει να μελετήσεις πολύ καλά το ADO.NET για να γίνεις παραγωγικός και αποτελεσματικός κάνοντας χρήση των datasets...&lt;/p&gt;&lt;p&gt;Τώρα, όσον αφορά στο πρόβλημά σου, αυτό που πιστεύω ότι γίνεται είναι ότι επειδή φαίνεται να περνάς κάποιο dataset ξανά και ξανά, δεν συγχρονίζεις τις αλλαγές που συμβαίνουν στα datatables στον client. Χωρίς κώδικα, βέβαια, όλ' αυτά δεν είναι τίποτα περισσότερο από εικασίες...&lt;br&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73677.aspx</link><pubDate>Sat, 27 Jul 2013 03:07:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73677</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73677.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73677</wfw:commentRss><description>&lt;p&gt;Αυτό που θέλω να κάνω είναι το εξής: Να στείλω τα δεδομένα ενός πίνακα Α σε έναν σέρβερ Χ στον πίνακα Β ενός σέρβερ Υ.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Τα δεδομένα όμως είναι πάρα πολλά και γι αυτό επιλέγω subsets (με subqueries) των δεδομένων και τα στέλνω τμηματικά, γι αυτό και το iteration.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Δυστυχώς το έχω ξανακάνει και παίζει (αν και θέλω πολύ να βρω guidance για κάτι πιο σωστό προγραμματιστικά).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Επίσης, το κάνει στο πρώτο pass οπότε δεν είναι πως κάτι στην 2η επανάληψη δεν έχει "καθαρίσει".&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Ξανατονίζω πως το ίδιο c/p παίζει αν δεν το καλέσω μέσω ws.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Ευχαριστώ πολύ για τον χρόνο σας&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73676.aspx</link><pubDate>Sat, 27 Jul 2013 02:57:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73676</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73676.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73676</wfw:commentRss><description>&lt;p&gt;Γεια χαρά!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Έβαλα και τις παρενθέσεις (μακάρι να ήταν αυτό ειλικρινά...) αλλά τίποτα πάλι..&lt;/p&gt;&lt;p&gt;&amp;nbsp;Πως γίνεται να γυρίσει Null ή γενικά να έχει πρόβλημα η συνάρτηση όταν ακριβώς η ίδια συνάρτηση με τα ίδια δεδομένα παίζει όταν την καλώ από το app project;&lt;/p&gt;&lt;p&gt;Όσο για την παρατήρηση σε ευχαριστώ πολύ που την έκανες, ειλικρινά! &lt;/p&gt;&lt;p&gt;Κάποια στιγμή πήγα να το κάνω με xml serialization άλλα έμπλεξα, υπήρχε πίεση (κλασικά) και τελικά το έφτιαξα με dataset μιας και μου φαινόταν το πιο εύκολο εκείνη τη στιγμή :(&amp;nbsp;&lt;/p&gt;&lt;p&gt;Γενικά ποιος τρόπος προτείνεται για την αποστολή δεδομένων πινάκων MSSQL/mysql etc από έναν server/database/table σε έναν άλλο όταν η μόνη επιτρεπτή συνεργασία τους είναι μέσω web service?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73675.aspx</link><pubDate>Sat, 27 Jul 2013 02:22:46 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73675</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73675.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73675</wfw:commentRss><description>Και DataSet και iterNumber(!!). Το ότι τρέχει χωρίς σφάλματα αν δεν καλέσεις το web service δε λέει τίποτα. Από τις παραμέτρους που περνάς φαίνεται ότι εκτελείς κάτι ξανά και ξανά και πιθανόν κάποια objects να μην "συγχρονίζονται" όταν καλείς το service. Ούτε που μπορώ να φανταστώ τι μπορεί να πηγαίνει λάθος με τα DataTables. Μάλλον πρέπει να δώσεις περισσότερο κώδικα...&lt;br&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73674.aspx</link><pubDate>Sat, 27 Jul 2013 01:50:49 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73674</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73674.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73674</wfw:commentRss><description>&lt;p&gt;Απ' το stack trace φαίνεται ότι σκάει μέσα στην insertToDestination, όταν προσπαθεί να διαβάσει τα αποτελέσματα της κλήσης. Μπορεί πολύ απλά το web service να γύρισε null αντί για κάποιο αποτέλεσμα&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Να παρατηρήσω πάντως ότι το να περνάς dataset σε web service είναι κάπως κακή ιδέα? Ουσιαστικά καταργείς κάθε έννοια schema.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73673.aspx</link><pubDate>Sat, 27 Jul 2013 01:02:15 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73673</guid><dc:creator>Markos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73673.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73673</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.dotnetzone.gr/cs/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Harkon:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Ο κώδικας που καλεί το webservice: &lt;/p&gt;&lt;p&gt;Dim ws As New webtest.Service&lt;/p&gt;&lt;p&gt;result = ws.insertToDestination(dSet, iterNum)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Καλώντας το path του webservice στον browser, εμφανίζεται κανονικά η webmethod.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ως γνωστόν, με τη VB δεν τα πάω καλά. Αλλά όταν κάνω initialization σ' ένα object δεν βάζω παρενθέσεις στο τέλος;&amp;nbsp;&lt;b&gt; Dim ws As New webtest.Service()&lt;/b&gt;. Μήπως το μόνο που είναι null είναι το service σου;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Απ: Server was unable to process request. ---&gt; Object reference not set to an instance of an object</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/73668.aspx</link><pubDate>Fri, 26 Jul 2013 16:55:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:73668</guid><dc:creator>Harkon</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/73668.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=21&amp;PostID=73668</wfw:commentRss><description>&lt;p&gt;Καλημέρα σας κι ευχαριστώ για τις απαντήσεις!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Έγραψα και χθες αλλά πρέπει να έκανα κάτι λάθος και δεν δημοσιεύτηκε.&lt;/p&gt;&lt;p&gt;Ο Κώδικας «σκάει» στην γραμμή κλήσης της webmethod:&amp;nbsp;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:12px;"&gt;result = ws.insertToDestination(dSet, iterNum)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Εκεί δεν βλέπω κάτι null από το VS.&lt;/p&gt;&lt;p&gt;Επίσης, εάν αντι για : &amp;nbsp;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:12px;"&gt;result = ws.insertToDestination(dSet, iterNum)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;βάλω :&amp;nbsp;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:12px;"&gt;result = insertToDestination(dSet, iterNum), δηλαδή καλέσω τη συνάρτηση από την&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;app και όχι από το webservice, τότε δουλεύει κανονικά, άρα φαντάζομαι πως δεν είναι κάποιο θέμα μεταβλητών/συνάρτησης, τι λέτε;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:12px;"&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Stack Trace&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;&lt;/span&gt;System.Web.Services.Protocols.SoapException was unhandled&lt;/p&gt;&lt;p&gt;&amp;nbsp; Actor=""&lt;/p&gt;&lt;p&gt;&amp;nbsp; Lang=""&lt;/p&gt;&lt;p&gt;&amp;nbsp; Message="Server was unable to process request. ---&amp;gt; Object reference not set to an instance of an object."&lt;/p&gt;&lt;p&gt;&amp;nbsp; Node=""&lt;/p&gt;&lt;p&gt;&amp;nbsp; Role=""&lt;/p&gt;&lt;p&gt;&amp;nbsp; Source="System.Web.Services"&lt;/p&gt;&lt;p&gt;&amp;nbsp; StackTrace:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at D_Export.webtest.Service.insertToDestination(DataSet dSet, Int16 iteration) in C:\Documents and Settings\ns\D_Export\Web References\webtest\Reference.vb:line 81&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at D_Export.frmMain.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\ns\D_Export\frmMain.vb:line 511&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp; m)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Button.WndProc(Message&amp;amp; m)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Windows.Forms.Application.Run(ApplicationContext context)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at D_Export.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.Threading.ThreadHelper.ThreadStart()&lt;/p&gt;&lt;p&gt;&amp;nbsp; InnerException:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Θα κοιτάξω πως γίνεται:&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:10pt;"&gt;Αυτό μπορεί να γίνει με απευθείας attach επάνω στο thread του IIS από το Visual Studio, ή αν και τα δύο projects είναι στο ίδιο solution με multiple startup projects&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Tahoma, Arial, Helvetica;font-size:10pt;"&gt;&lt;/span&gt;&lt;span style="font-size:10pt;"&gt;&amp;nbsp;Και θα σας πω νεότερα..&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ευχαριστώ πολύ και πάλι!&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description></item></channel></rss>