Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Any chance you could post some code? A null reference means you are failing to initialize a variable before trying to use it.
  2. Could you not modify the function so that it accepts a form as a parameter and then pass the variable Form1 in?
  3. Is this failing at the point where you have to specify how the ReportServer service connects to the database? If so could you not just create a valid login for the service account and give it permissions?
  4. If you made the file into a DLL then you could share the single binary amongst several projects, otherwise just add the Conn.vb file to the current project and it will be usable.
  5. Sorry - i was being thick and not understanding your question. As far as I'm aware you could restore a single file or filegroup but this is really only intended for when you have suffered a physical loss of the data. If you want to restore to a particular update you want to investigate RESTORE LOG and the STOPAT option (or even the STOPATMARK / STOPBEFOREMARK)
  6. Are you trying to download a specific file or just the ability to download any file from the internet?
  7. Rather than using the Leave event you could use the Validating event - then if you set the Cancel button's CausesValidation property to false things should work.
  8. The flush method simply forces any buffered data to be written out to the underlying file.
  9. If you look under System.Collections there are several interfaces to choose from - depending on your requirements. IEnumerable, ICollection, IDictionary or IList are all possible candidates.
  10. Does the server have mixed mode authentication enabled? If not then sa will not be enabled. If you normally use windows authentication can you not also use windows authentication for this part of the install?
  11. that looks more like a security problem - does the SQL server have sql authentication enabled? If so could you try using windows authentication to see if that makes a difference.
  12. .Net dlls cannot be registered with regsvr32 - that is for registering COM dlls. .Net dlls do not need to be registered the same as VB6 / COM files. If you want your .Net dll to appear to be a COM dll then there is a bit more work involved - if you search these forums you should find some information on how to do that.
  13. Ran the scripts, created the DB, inserted the data. Ran the backup scripts (both files + log), inserted new data, backed up log with no_truncate. Restored two main files + first log with RECOVERY and data contained the initial 6 rows, nothing else. Again restored two main files + 1st log all norecovery, then final log with RECOVERY and all 8 rows were present. Seems to work as I would expect.
  14. How did you delete them then?
  15. When you run the setup does it not give you the option of installing the designer / server portions?
  16. If you open IIS Manager from your admin tools you should be able to delete it from there.
  17. Is there a reason why you need to do this as often a function shouldn't need to know who called it - they are normally designed to be re-usable without having these extra complications. If you do require this feature then you should look at the StackTrace and StackFrame classes in MSDN - or if you look here there is a little code sample that uses them as part of it's error reporting.
  18. Are you using any 3rd party components in your application? Specifically are you trying to deploy Crystal Reports? If so after you have addded the crystal merger module go to the property window and expand the entry called MergeModuleProperties and you will see an entry for your license key - you need to enter your valid license here.
  19. Is anything else using the .mdb file at the same time? I've seen this error code occur when a file is already in use.
  20. What do you mean by items being sent to a listbox? What is sending them? If you are just responding to user input and adding them to the list then you could just set the textbox at the same time, if this ischecking a database just set the textbox to the item as you add it to the list box. Perhap if you gave a bit more detail and indicated if this is web or windows app people may be able to offer more help.
  21. You may find the System.Collections.BitArray class an easy way to work with booleans - the constructor just accepts the number of bits you need and it provides array like access to each bit.
  22. You need to specify RECOVERY for the last file restored - until you do it will be 'waiting' for another backup to be restored. If it doesn't work reply and I'll have a try tomorrow - will have access to SQL that can be abused then ;)
  23. If you don't want the final update don't restore the last log backup - only restore the 1st log and specify recovery as an option.
  24. I tend to use .Parse when converting from strings as it can give you more control over what format the input can be in - it will cope with currency, decimals, thousands seperators, hex, whitespace etc. If users are typing in these values you never know if they will try to be a bit clever and put these things in.
  25. You will probably need to convert the string to a numeric format first - then format it up as a currency string. Dim s As String = "120000" Dim d As Decimal = Decimal.Parse(s) MessageBox.Show(d.ToString("C"))
×
×
  • Create New...