Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Does the PC hosting the web site have a valid, fixed IP address that can be reached from the internet?
  2. Re: Encryption Where is the information contained in the files coming from? If you are reading it from some other source (i.e. Database or website) then you could just read the values into a string directly and assign that to the relevant label.
  3. Have you tried creating a XmlNamespaceManager and adding the relevant prefix to namespace mappings to it? Then use the overloaded version of .SelectSingleNode that takes this class as it's second parameter.
  4. You could always use the System.Enum.Parse method to convert the string back to the Enum and then get it's underlying value.
  5. If the FTP server is under your control you could always create a simple application that uses the FileSystemWatcher class to detect the creation of a new file and then copy it. Out of interest is there a reason why you need two copies of the file on the same ftp server?
  6. Re: Encryption Out of interest what are the files being used for? If there is no real reason to store the contents on disk then simply keeping them in memory is going to be the easiest solution.
  7. What does the actual code for the public override string ToString() {...} method look like?
  8. Rather than concatenating strings use a parameterized query - that way you don't need to worry about different systems trying to interpret the strings correctly.
  9. What do you get if you tru [highlight=sql] Dim sql as string = "SELECT * FROM vwAllMatrixVehicles WHERE created >= '2007/9/8'" [/highlight]
  10. It's probably down to the date format being interpreted differently between ASP.Net and SQL Management studio. Try putting the month as a full string (i.e. either August or September depending) and see if that alters the results. Also how is the string being generated in the ASP.Net page?
  11. http://support.microsoft.com/Default.aspx?kbid=938979 might be worth a look as amongst the problems listed it has
  12. Could you attach the actual project and if possible the sample files you are using?
  13. Without seeing the code you have so far it is hard to say exactly what changes you should be making ;) Just out of interest are the files encrypted and then converted to Base64 as Base64 itself isn't a form of encryption - it is just a means of encoding binary files in an ASCII form.
  14. Access can be used by multiple people at once but it can suffer in terms of performance and stability as the number of concurrent users grows. Access can also be problematic in terms of back up strategies as if users have left a connection open the .mdb will be locked and most file based backup solutions will fail to work correctly. Ideally I would opt for SQL over Access every time (even SQLExpress is a lot better that Access).
  15. Out of interest how long is it actually taking for the call to complete?
  16. Odd indeed. If you actually add the new form by selecting 'Inherited Form' from the list of items and picking the correct base class it seems to work fine though.
  17. It does - it uses the pickup folder specified under the IIS Admin tool for the SMTP service.
  18. The master page itself doesn't have a culture - it uses the culture of the content page instead. Also an identifier of fr-FR will only work for French French i.e. will fail for Canadian French, Belgium French etc. You are probably better just declaring it as fr as this will cover all french regions. Same goes for the German resources - just use de and it should work better.
  19. Personally I put maintainability at the top of my list, this includes coding style, commenting style and having appropriate unit tests. In terms of optimising for performance I would never deliberately do something a slow way if the fast way meets the above criteria however I would always prefer a more maintainable version over a faster version unless the performance is a real issue. (by real I mean falling outside of acceptable behaviour). I do use Try ... Catch early on in development but follow the guidelines of only trapping errors I can deal with where I can deal with them and never catching just Exception (or Object :confused: either), that way I can test that the correct errors are being raised and unexpected errors get noticed.
  20. The appropriate RFC is SMTP, however these days there is a high possibility that you will need to emulate a server running ESMTP which is more complicated. Would it not be possible to do this the other way - have the original mail server handle all inbound e-mails and simply route any destined for the @sms.mydomain.com to your service? This way you will only need to implement the bare minimum that you need and not all the required functionality the real server implements. In fact if the existing server has the concept of a pick up folder you could get it to drop your mails into a folder as simple text files, this wouldn't require any smtp knowledge on your part at all.
  21. Not a clue if this will help but you are creating a response object for each call of the sendMessage method that you are never using - if you try either calling response.Close() before exiting the method or just not creating the response does that fix the problem?
  22. What version of SQL / Service pack have you got / had installed? It might be worth re-installing the latest service pack and see if that fixes the problem.
  23. Have you added an app.config to the project - if so that is what will end up as the tool.exe.config. In a nutshell the .exe.config file is simply a configuration file for the associated application, if it isn't present then any configuration it contains will not be available to the exe. Out of interest what does the .config file contain?
  24. Try adding a panel to the page positioned where the control should appear, then add the user control to the panel's controls collection rather than the page's control collection.
  25. You could wrap the slower parts of the screen updating code between a SuspendLayout() and a ResumeLayout() - that should give a bit of a performance boost. private void AddFiles(ListView listView, DirectoryInfo directory) { listView.Items.Clear(); FileInfo[] Files = directory.GetFiles(); try { SuspendLayout(); foreach (FileInfo file in Files) { Icon i = ShellIcon.GetSmallIcon(file.FullName); SmallIconimageList.Images.Add(file.FullName, i); i = ShellIcon.GetLargeIcon(file.FullName); LargeIconimageList.Images.Add(file.FullName, i); listView.Items.Add(file.Name, file.FullName); } } finally { ResumeLayout(); } } Other than that you could do similar to explorer - load the file names and a dummy icon and then load the icons in a background thread.
×
×
  • Create New...