如何在转到爸爸服务器上运行.NET类库? [英] How to run a .NET Class Library on a Go Daddy server?

查看:118
本文介绍了如何在转到爸爸服务器上运行.NET类库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢真棒人们,回答我的<一个href="http://stackoverflow.com/questions/1830401/how-to-deploy-c-$c$c-to-a-server-how-to-run-an-exe-on-a-server">$p$pvious帖子,我能够做一个.NET类库,并在网页上运行一个按钮库。

Thanks to the awesome people that answered my previous post, I was able to make a .NET Class Library and run the library from a button on my webpage.

该计划的目的是不断地在服务器上运行。它检查数据库,看看是否有任何挂起的操作,然后睡10分钟。当我点击我的网页上的按钮来运行应用程序,它运行正常......直到我关闭浏览器或离开页面。此外,当我点击按钮,浏览器图标表示该页面加载。这听起来像我的浏览器会话连接到服务器上运行程序的此实例。

The program is designed to run on the server constantly. It checks the database to see if there are any pending actions, then sleeps for 10 minutes. When I click the button on my webpage to run the app, it runs as expected... until I close the browser or leave the page. Also, after I click the button, the browser icon indicates that the page is loading. This sounds like my browser session is connected to this instance of the program running on the server.

我想是一个按钮,启动应用程序,独立于浏览器中,以便它继续我离开的页面,即使运行。有任何想法吗?我想我在寻找的行话一些技巧,以及如何人们可能实现这一点。

What I would like is a button to start the app, independent of the browser, so that it continues to run even after I leave the page. Any ideas? I guess I am looking for some tips on the jargon and how one might implement this.

谢谢!

推荐答案

链接应该帮助你。您需要启动工作在一个线程中,并保持这种工作线程应用程序中的一个全球性的地方。

This link should help you out. You need to start the work in a thread and keep this worker thread in a global place in your application.

这篇关于如何在转到爸爸服务器上运行.NET类库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆