Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Did you install IIS after the framework? If so it won't have registered properly. If that's the case try this: Open a new command prompt Change to the drive windows is installed in (e.g. c:\) cd Windows\microsoft.net\framework depending on the version of the frame work you have you will have to cd into either v1.0.3705 or v1.1.4322 - if both folders are present go for the v1.1.4322 one then type aspnet_regiis /i and let it do it's stuff. when it finishes - try to run the web app again and see what happens.
  2. MS Samples MS How to MS article
  3. Not being received where? When I step through your code I can see the response being written to the ReceivedCommand variable
  4. Just stepping through your code and the FTP server returns a "command not understood" error after you issue "SendCommand("LS www")" - is that the problem you mean?
  5. My bad - should have tested my code properly under C#. I hate it when they make C# and VB.Net behave differently but in subtle ways. In C# the new keyword doesn't hide the original method signature, however in VB.Net the Shadows keyword does completely hide the original method!!! Will have a look to see if there is anything else that could be done.... as a quickie have you considered // Overload ObjectCollection.Add, which is declared as: // public int Add(object item) public int Add(MyItem item) { return base.Add(item); } public new int Add(object item) { if (item.GetType() != typeof(MyItem)) throw new ArgumentException("Can only accept MyItem", "item"); return 0; }
  6. Have a look at the classes under System.Security.Cryptography
  7. The autogenerated code is playing it safe - it will only delete the record if none of the fields have been changed on the DB since the data was loaded in the DataSet - if you right click on the DataAdapter there is an option to configure the DataAdapter - under there there is an opton for 'Optimistic locking' select that and see the difference.
  8. try 'code that times out catch ex as timeoutexception messagebox.show ("Your message here") end try for future reference could you please not post the same request across multiple forums, if you post it to the correct forum people will reply - there is no need to post the same question to both the VB and C# forums.
  9. http://msdn.microsoft.com/msdnmag/issues/02/04/Valid/ contains some useful information on selectively using validation controls.
  10. If System.IO.File.Exists("c:\config.sys") Then 'yes it did Else 'no it didn't End If
  11. They are probably using user controls and placeholders to acheive this. A better way though can be found on Robby's web site which involve templates. http://www.bassicsoftware.com/popup.aspx?b_id=157
  12. Sorry - didn't realise you were using C#, if you shadow (new in this case) a method then it effectively hides the base classes implementation. i.e. public class ItemCollection : ComboBox.ObjectCollection { // Stuff // Hide ObjectCollection.Add, which is declared as: // public int Add(object item) public new int Add(yourObject item) //try this { // Test type of object here and throw an exception // if object is not of type MyItem. If it is of type // MyItem, then proceed return base.Add(item); } // more stuff }
  13. Does the XML file have a valid schema associated with it?
  14. for question 1 have a look at the BeginRead method of the stream class. This will allow you to handle the reads asyncronously (sp?) and prevent blocking in your UI. as for question 2 something along the lines of system.Threading.Thread.CurrentThread.Priority=Threading.ThreadPriority.BelowNormal should do it.
  15. Is the underlying DB using a string for the orderNo field?
  16. really not tested this at all but something like the following may be a starting point. Public Class test 'whatever End Class Public Class MyComboBoxCollection Inherits ComboBox.ObjectCollection Sub New(ByVal cb As MyCombobox) MyBase.New(cb) End Sub End Class Public Class MyComboBox Inherits ComboBox Private objects As MyComboBoxCollection Public Shadows ReadOnly Property Items() As MyComboBoxCollection Get Return objects End Get End Property End Class you should be able to shadow the MyComboBox collection's add / remove etc methods.
  17. Have a look under System.Security.Cryptography classes like TripleDES or RSA should be more than adequate for your needs.
  18. When you do set { Type = value; } you are assigning the value to the property which calls the property set recursively (calls itself). You are probably better of with a private variable to store the real value. class Message : KeyType { public Message() { msgXML.Type = "MESSAGE"; } private string _Type; internal override String Type { get { return _Type; } set { _Type = value; } } }
  19. Security on it's own could be too vague as a forum in it's own right. Would you mean Database security, ASP.Net security, Windows Forms based security or dealing with the (horrible) security APIs? Most of those would be better served under the existing forums I would of thought....
  20. Always the simple things that catch us out ;)
  21. It really depends on what you are trying to do, if you are calling the windows API you will need to continue using the same techniques as always to get status / error codes back. If you want to use the SendMessage API you will need to use DllImport to be able to call it. However if you gave more details about what you are trying to acheive there may be a .Net way to do it.
  22. The result of what operation? Wrap which Win32 API?
  23. What database are you using and what tool are you using to display the date from the database? Have you considered a format of strDateRec = d.ToString("dd/mmm/yyyy")
  24. You need to provide the account name as either DOMAIN\UserName or COMPUTERNAME\UserName
  25. If you are using a setup project from within the Visual Studio IDE you can just include it as one of the items to deploy.
×
×
  • Create New...