Jump to content
Xtreme .Net Talk

Sandallic

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by Sandallic

  1. Hello, I am having troubles find out if InvokeRequired is true or false. My Console application does not like the following code. If Me.InvokeRequired Then Me.Invoke(New _DisplayMessage(AddressOf DisplayMessage)) Else DisplayMessage() End If "Me" is not valid within a module. What can I do instead? Thanks. Simon
  2. hi there, As you say it´s pretty simple. Use the servervariables. for e.g. Request.ServerVariables("REMOTE_HOST") There are plenty of ServerVariables that you are able to use. Read more about it here: http://www.quepublishing.com/articles/article.asp?p=28493&seqNum=4&rl=1 Good luck
  3. ASP.NET Webservice, simple question.. Hello, this just crossed my mind, if I decide to build an webservice, will I be able to communicate with this service with for e.g. php? Thanks
  4. Smart device application, storage. Hi! I am about to build an smart device application for pocket pc. This application is going to work as an phonebook.. But I have a small issue.. I want you to help me find out the absolutly best way to store the contacts, so that the application will be as fast as possible.. Should I use an access database that comes with the program ? Thx in advance..
  5. Hi, I have made an windowsservice, and added an ServiceInstaller to the project. Now I want my Installer to first remove the previous application before the new installation begins. I have been checking out the "RemovePrevious", what, to the description should remove the previous application that has been installed, but it doesnt, the only thing that happens is that an message box pops up and tells me that "Another version of this application is already installed.." and aborts the installtion. Anyone out there who can help me out? Thanks, Simon
  6. Hi, I have just made an deployment project, where I install some applications. That works perfectly well, just that Im a little confused. When I started my Installation project, (from exe file) I experienced that the defualt location for the program goes something like this "C:\Program\Manufactor\SoftwareName\" I want to have another defualt path, like, "C:\Softwarename\" Is this possible ? Can I somewhere within VS.Net change this ? and one other thing, there is a option between who may use this application that is about to be installed. "Everyone" or "Just me". The defualt value is "Just me" Can I somehow change this to? You got any Idea?? Thx, Sandallic
  7. Hi, I wonder if anyone knows how to make an setup deployment project, that will install an windows service properly. Anyone ? Thx, Sandallic
  8. Hello, here comes another question. Isnt there any easy way to disable my application to start twice? I cant accept that there are running two instances of my application at the same time.. I think there is a way withing VS.net where you can turn this off.. Any1 knows ? Thx, Sandallic
  9. Re: You got this line, Dim f as new Form1 Application.Run(f) That makes a new instance of my Form, Do I have to do that ? Or is it enough with: Public Shared Sub Main() 'setup global error handler AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf AllErrorsCaughtHere End Sub Private Shared Sub AllErrorsCaughtHere(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs) 'deal with errors here End Sub
  10. Hello I got this little problem, Im working with an windowsapplication. Whenever an error occures the program must close and no errors are allowed to stop this program. I have been putting "try...catch" within all my procedures, but it seems like it wants to be error messageboxes anyway. Is there anyway I can have one sub that only runs when error occures ? Like my page_load sub, that "handles mybase.Load"? Thx, Sandallic
  11. Hi, I have been working with a pretty big project for a while. I started to build this solution using regulare windows project. Today I got the orders to make this into a windows service. anyway, I have been trying to make this work for a several of hours, but I cant figure out the problem. I managed to install the service, but it doesnt seem to response at all. This is one part of my code Protected Overrides Sub OnStart(ByVal args() As String) '**************************************************** '* Making sure the logfile is there. '**************************************************** If Not File.Exists("updates.txt") Then Dim sr As StreamWriter = File.CreateText("updates.txt") sr.Close() End If LastMinute = Now() End Sub Not even this small part works. It doesnt create this file when I start my service, even thou it doesnt exists. Anyone knows anything about installing and building an windows service that I have missed? Need all help I can get. Thx, Sandallic
×
×
  • Create New...