Forum  Commercial Foru...  Commercial Foru...  Long Running Process - Asynchronous With Timer
Previous Previous
 
Next Next
New Post 2/6/2012 11:49 AM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Long Running Process - Asynchronous With Timer 

OK, I added Gizmox.WebGUI.Forms.Themes, and changed all properties for all Gizmox references to "Copy Local = True" and "Specific Version = False' - and it worked.

Do both those flags need to be set that way?

 
New Post 2/6/2012 3:49 PM
  palli
11824 posts
1st Level Poster




Re: Long Running Process - Asynchronous With Timer 

Hi Derek,

Copy Local must be set to True, but Specific Vesion is False in all my test apps.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/7/2012 7:02 AM
  Ewans
497 posts
2nd Level Poster




Re: Long Running Process - Asynchronous With Timer 

Hi Derek

There is a way to do this by getting the SQL stored procedure to send regular warnings as it runs. Your application can intercept these by running the stored procedure aysynchronously.

Please see this link

http://www.visualwebgui.com/Developers/KB/tabid/654/article/update_progress_bar_using_sql_server/Default.aspx?category=Code8.Code.Code2

Regards Ewan

 
New Post 2/8/2012 11:04 AM
  palli
11824 posts
1st Level Poster




Re: Long Running Process - Asynchronous With Timer 

Hi Ewan,

Thanks for the input,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/14/2012 1:40 PM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Long Running Process - Asynchronous With Timer 
Modified By derekmhart@yahoo.com  on 2/14/2012 5:56:19 PM)

OK, I have been trying the wiki demo, and just not getting results.

In the demo, the code specifically passes an htmlbox as a parameter, and then updates the UI. My process has to update multiple controls on the screen when done. So I am not sure if it is necessary to pass the objects around. I call a long running web service, about 10 seconds, and want responsiveness from the UI. I have attempted to put the code from the demo in, but it recycles the site. I know the question is a bit general right now, but how exactly does the system know when the web service is done? Here is one attempt at this code. On my production server it recycles and shuts the web site down. On the development machine, it actually retrieves the files from the web service and updates the UI, but VaultFileSearchTaskCompleted is never hit, and when I exit the browser the asp.net server errors completely. Just not quite getting the code.

   Public Delegate Sub VaultFileSearch_Delegate(ByVal AppSettingsDevelopment As String, ByVal VaultSearchTest As String)

    Public Sub VaultFileSearchTaskCompleted(ByVal R As IAsyncResult)
        Me.Update()
    End Sub

    Public Sub VaultFileSearch(ByVal AppSettingsDevelopment As String, ByVal VaultSearchTest As String)
            Dim ds As New DataSet
            Dim OS As New OneSpotService.WS
            ' Long running task on this line.
            ds = OS.SharepointGetFiles(GetSessionVariables.UserID, VaultSearchTest)

            If ds Is Nothing Then
                MessageBox.Show("No search results were returned.", _
                                "No Files Available", _
                                MessageBoxButtons.OK, MessageBoxIcon.Information)
            Else
                SyncLoadSyncFilesIntoList(ds.Tables(0))
            End If
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    End Sub

    Private Sub btnVaultSearchFiles_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVaultSearchFiles.Click
            Timer1.Start()
            Dim d As VaultFileSearch_Delegate
            Dim h1 As IAsyncResult
            d = New VaultFileSearch_Delegate(AddressOf VaultFileSearch)
            h1 = d.BeginInvoke(AppSettings("Development"), txtVaultSearch.Text, New AsyncCallback(AddressOf VaultFileSearchTaskCompleted), Nothing)
    End Sub
 

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Long Running Process - Asynchronous With Timer
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS