Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. In that case you would probably be best going for a simple model with HQ being a publisher (and probably distributor) while each of the remote office are subscribers. Each remote office could be scheduled to retreive the data every 15 - 30 minutes (probably testing will give more accurate times). Going for a transactional replication model would probably be easiest as this would only send changes out to the subscribers rather than the entire DB - although initially you would need to sync the remote offices with the HQ server (this can be taken care of within the replication system itself though)
  2. Really depends - where do updates need to be made and where will these updates need to be propagated to? how much of a lag is acceptable between changes in one server and them being replicated to remote servers?
  3. On the top of the solution explorer there is a yellow-ish button (tooltip is 'Show all files'), click this and the excluded file (something.vb) will appear but be greyed out. right click it and select include in project (or something similar).
  4. What version of visual studio are you using? The above syntax only works with Vs 2003 - try the following change and see if that helps Dim files() As String files = System.IO.Directory.GetFiles("C:\windows", "*.bmp") Dim file as string For Each file In files System.IO.File.Copy(file, "c:\destination\" & System.IO.Path.GetFileName(file)) Next
  5. IIRC you will need to configure the SMTP service (via Internet Information Services Manager) to relay mail to other domains.
  6. In the IIS manager console you should have an entry for 'Internet Information Services' under that there should be an entry for the computer itself and under that an entry called 'Default Web Site' What version of windows are you running?
  7. Unfortunately ther is probably going to be no magic solution that will make the performance improve. Splitting the data over several SQL servers can definately offload traffic from the network and improve response times by getting users to connect to their office's local install rather than a central server. SQL server does include support for replication as part of the standard product install, however this could involve a lot of work and possibly a redesign of parts of your application. Implemented properly however replication could be a major performance improvement and also can have benefits (replicate to devices like CE or notebooks that are not permanently connected etc). You may find these links a bit more informative http://www.microsoft.com/sql/evaluation/features/replication.asp http://vyaskn.tripod.com/repl_ques.htm http://www.windowsitlibrary.com/Documents/Book.cfm?DocumentID=77
  8. Could you post the code inquestion (both the setting and the retreival / checking of the value)?
  9. You need to make sure the folder you unzipped into (c:\inetpub\wwwroot\pagetopagedata) is properly configured under IIS. If you run the IIS Manager tool and find the folder under default web site and bring up it's property page there should be an option to create an application (near the bottom of the dialog). Hit create and then ok.
  10. some quick code that will find and copy all .bmp files from the windows folder - should give you the idea of what you need. you would just have to call this code passing in differrent wildcards for all the file types. (could probably turn it into a sub of it's own) Dim files() As String files = System.IO.Directory.GetFiles("C:\windows", "*.bmp") For Each file As String In files System.IO.File.Copy(file, "c:\destination\" & System.IO.Path.GetFileName(file)) Next End Sub
  11. http://www.xtremedotnettalk.com/showthread.php?t=78434
  12. Public Interface IManagedInterface Function PrintHi(ByVal Name As String) As Integer End Interface Public Class InterfaceImplementation Implements IManagedInterface Public Function PrintHi(ByVal name As String) As Integer Implements IManagedInterface.PrintHi Console.WriteLine("Hello, {0}!", name) Return 33 End Function End Class
  13. In visual studio if you open the client application you can select the web reference in solution explorer and set the url behaviour (i think) to dynamic - this moves the url into the web.config file. If you deploy this version to a production server (after testing etc) you can edit the web.config and git it to point to the new url of the web service.
  14. What does the timestamp data look like?
  15. Imports system.Math wouldn't cause this to be added. A finalize method is use by the garbage collector to make sure non-managed resources get properly released when the object is no longer available. If the base class wraps any OS resource (file handle, window handle, memory mapped file etc.) then these resources are outside of .Net's control and cannot be garbage collected like a managed .Net object. If your class implements the Finalize method then the garbage collector knows that the class needs special handling and will call the Finalize method a part of the garbage collection process - you would provide clean-up code for your non-managed resources there. If the base class requires this then I would most definitely leave the auto generated code alone - deleting it could cause resource leaks and lead to general instability of the application.
  16. Depends on what the res of your code is. Was this code a form, control etc? what class is it inheriting from? All it does is call the base class' clean up methods when the class is ready to be garbage collected - so it depends on what the class is / base class is.
  17. I found the VB6 version of this product pretty good. Not tried the .Net version but there is an evaluation verson....
  18. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp may contain some useful info if you read down the page.
  19. Why would you want to use a managed language to access DirextX in an unmanaged way? Wouldn't it be easier to either write unmanaged C++ code or managed .Net code - after all MS have written a managed wrapper for DirextX so you may as well use it.
  20. did you use the command prompt from the visual studio tools part of the visual studio program group?
  21. Does the server have the .Net framework installed? If not install it, if it does then it probably needs re-registering with IIs. Go to a command propmt (best to use the one under the Visual Studio program group) and type aspnet_regiis /i
  22. What language is it? What does *Nothing mean? When you say it blows up - what exception (if any) do you get and on what line in your code.
  23. Or else only evaluates both operands if the first is false - otherwise it knows if the first is true it doesn't matter what the second operand equates to.
  24. ListBox1.Items.Add(Date.Now.ToString())
  25. IIRC that is a limitation of windows itself - so the short answer is probably nothing can be done short of renaming the foles/folders to a shorter name or not nesting to quite that degree.
×
×
  • Create New...