1. The small projects in the summer vacation are finally ended.
Just the end of development, the space there, the database problem finally gave it, I also had to pass something, the boss urged me to beautify the page, don't be too monotonous.
I basically didn't pay attention, I care about the problem of BUG and users, these Tianlian network providers's SQL Server service is big, run to the boss N times, just after several phones, finally solved I have previously thought that there was an error in my operation. It turned out that there is a problem with the account password provided there. It is really collapse.
Now SQL Server I have introduced the data of the summer vacation, but a problem is not to directly restore backups. I only use imported data, the last view, and stored procedures can only be imported manually, but it is not too much.
The web page, I was passed when I was over. Now I changed a file that changed the database connection. After I changed it, I tested the webpage. I can't even go to the SQLServer database. I change my webpage to manage better management. The server is finally good (of course the security of this server is too good, or the setting is not complete, I use regsvr32 scrrun.dll to set fso = createObject ("scripting.filesystemObject"), but what should I do? Explain with the people there over Fujian, it is really disgusting ...........
2. I really don't want to use ASP to develop. The Fujian is because the previous part is all this, I will continue, but now this is the problem of space support, I pushed me. On the ASP, I admit that ASP still has his advantages, but for a developer, of course, we should choose the best, so drag and drag, basically there is no progress.
3, the future is the most headache this time
The home page and management system is launched without testing, so the teacher discovers N Bug, of course, there is also a personal habit of using Web, and there is a lot of things to remedy, and the speed problem is One, I just want to go out to generate HTML every minute in every minute. This is also enough, I was forced. I started to develop a Winform plus a console program with a more familiar technology. WinForm is only implemented. A Timer is working, the real logic implementation is a console, is done, but also used, but the console program is executed because I set his execution time limit, if the timeout, throws Abnormal, so there have been several problems, however, however, as long as the runtime is often, there is a problem, maybe because I have a short time space between Timer, only 1 minute.
In fact, the implementation of the function is not a problem. The key in this program starts the problem, according to the above design, copy the two project to the server, only one user logs in to the server and starts that WinForm manually, this design is obviously unreasonable Because I left, or forgot, I actually impossible to log in on the server, once I log out, the winform exits, so the future home is fixed at that moment.
Windows service I have written before, in fact, when I started to solve the speed problem, I thought about writing a Windows service, but I considered the shortcomings that the service installation also had a lot of skin, not dare. It is easy to "experiment" on the server, but now I have to do this, so I wrote a Windows service according to the relevant documents given in 9CBS. When I wrote it, I took care of the problem of setting the installation parameters, because this The service must be automatically running on the computer, but I encode - to install the installation package - install it on the server, and finally add to the management tool - the service, I went to see it a little dumb, status display It is empty, and the start type shows automatic. Although I have encountered this, I have been in accordance with the documents of others, how can I really realize the real automatic startup, I asked two I think more The cattle of the cattle, also asked a MSMVP, finally did not have a result, but they also helped me to answer some questions about it. ...
Until I just discussed with me with my bedroom, I realized that I understood the problem here. In fact, I wrote that the service is correct, I really don't understand these services, restart the computer, open service list The startup should be closely related to the Windows system, that is, when he is made for system service, it is the system must, so the system starts to drive the startup of these services. This is the real automatic Start service, and the service I wrote was also set to automatic, but the problem is that he is not a Windows system, so he will not start automatically after the system is started, you need to manually start, then the user is logged out, he It will continue to run in the background. Of course, the final purpose is not reached, see if there is any way to add this service to the system, don't know if there is this possibility ........... Continue research However, I found that this information is really small. Http://www.kennyandkarin.com/keny/codecorner/tools/iconbrowser/http://community.9cbs.net/Expert/topic/3390/390713 .XML? Temp = .5746271cs whUCsusing system; using system.net; using system.text;
Public class udpmulticastsender {
private static IPAddress GroupAddress = IPAddress.Parse ( "224.168.100.2"); private static int GroupPort = 11000; private static void Send (String message) {UdpClient sender = new UdpClient (); IPEndPoint groupEP = new IPEndPoint (GroupAddress, GroupPort) ;
Try {Console.WriteLine ("Sending DataGram: {0}", Message); Byte [] Bytes = Encoding.ascii.getbytes (Message);
Sender.send (Bytes, Bytes.length, GroupP); Sender.Close ();} catch (exception e) {console.writeline (E.TOString ());}}
Public static int main (String [] args) {send (args [0]);
Return 0;}}}