Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Have you tried the MS bootstrapper sample clicky for including the framework with your installer.
  2. Did you accidently declare your variable as dim FilePath as String() 'or Dim FilePath() as string the top one always catches me out - as it declares an array of strings not a single string.
  3. Just tried it on my PC here and it worked without any problems. Also rather than switching the current directory back and forth (which may be causing a problem) try the following snippet private void DeleteEmpty(string aPath) { string[] directory = Directory.GetDirectories(aPath); string[] file = Directory.GetFiles(aPath); if ((file.Length + directory.Length)==0) { Directory.Delete(aPath); } else if (directory.Length>0) for(int i = 0; i < directory.Length; i++) DeleteEmpty(directory[i]); }
  4. given the following web.config you shouold be able to read it with code similar to Dim FilePath As String = ConfigurationSettings.AppSettings("PathToFile") not tested this as I don't have VS installed on this machine but it should give you the idea.
  5. Couldn't you store the correct path to the file in the web.config - the control could then read this at runtime. When moving from development to production you would just need to update this one file.
  6. We do have an entire forum for intereop issues clicky, the sticky at the top of the thread list here gives a good link for getting the correct declarations.
  7. For something like creating a bitmap you would probably be better of with a normal classlibrary - returning large bitmaps via the internet could be a major performance bottleneck. But basically a web service is just another form of distributed programming - it offers functionality that can be accessed via standard network protocols (HTTP / HTTPS) and transfers data via XML (SOAP). You would probably find this a good starting point.
  8. In general though how often do people come out with such a unique and amazing piece of code that somebody would take the time and trouble to decompile it, just to see how it works? If it really is an algorithm that is so special then you can patent them (don't get me started on my opinions of this though :mad: ) and protect your IP that way. If it's for security reasons then there are plenty of ways to encrypt sensitive data that aren't breakable by seeing the code - in fact I personally wouldn't trust any closed source / algorithm encryption techniques in the slightest.
  9. Looks more like a probblem with Component services than ASP.Net - all the errors are refering to COM+. Have you recently applied any service packs, installed new software etc?
  10. What kind of information does the shared variables contain - depending on their contents it may be easier to just pass this information between the application layers rather than relying on global variables which can often lead to hard to maintain code. Also rather than using a module (which is only available in VB) use a class but declare the variables as shared - then you don't need to instantiate the class to access them.
  11. Have you tried just subtracting the dates dtStart = DateTime.Parse(strOutDate); //from the DB dtEnd = DateTime.Parse(strDateTimeNow); //Now() TimeSpan ts = dtEnd - dtStart; intTimeBetwCurrAndPrev = int.Parse(ts.TotalMinutes.ToString());
  12. Nearly always, if the provided adapter (SqlDataAdapter, OleDbDataAdapter etc.) don't do exactly what you want then it's worth considering implementing your own (not that difficult - inherit from System.Data.Common.DataAdapter and override the required methods). Doing it this way prevents you duplicating the same create connection, command, open connection, run command, loop & add to table, close connection logic in several places - you do it once in the DataAdapter and can call it with a simple .Fill method everywhere else.
  13. Is the folder containing the web application marked as an application under IIS? To check go into administrative tools and run the IIS manager, if you expand the default website look for the AxisFellowship folder and bring up it's properties. On the bottom right there should be a button that says 'Create' (if it says remove then it is already an application) click on the button, hit okay and try to browse the page again.
  14. You could always call the DataTable's .Rows.Add method to load data into the DataTable. If you returned a DataReader from a database you could simply loop through all the returned records and add them manually - although this is pretty much what the DataAdapter does anyway. Is there a particular reason you want to avoid using a DataAdapter?
  15. I personally found the Architecture exam (300) the hardest as although the scenarios suggested were okay they seemed to lack detail and as such often I was choosing an answer as a best guess based on what information they had provided were in real life I would have probably gone back to the customer for clarification or a more complete outline faced with the same problem....
  16. If you go for the MCAD first then most of the exam credits count towards the MCSE as well - you just need to be a bit careful in choosing the exams. As a rule with MS exams they do tend to focus on whats a) new and b) stuff they are really proud of - hence the emphesis on Web Services in the current exams.
  17. Sorry - I misunderstood. There is a good chance that the webservice behind the firewall is running as the local ASPNET user accouint and as such will not have access to network resources. The best way to get round this is create an account on the domain and make sure it can access the file remotely and use impersonation so the webservice uses this account when running.
  18. Depends on what level of certification you are after, from a developer point of view the 2 qualifications are the MCAD and the MCSD this link @ MS gives a good comparison of the two, and you will also find the requirements in terms of exams needed amongst the information.
  19. and we also have the xtremedotnettalk.com domain as well ;)
  20. Not entirely sure how UPX would fare with .Net as the executables aren't normal windows executables - there may be issues with the metadata aspects. I personally would go with encrypting the data using .Net's built in classes - not too difficult and far cheaper than a 3rd party product.
  21. Is the web service reading the file direct from the other server? (i.e. no services running on the server where the file resides that make this easier). If so then you are going to have terrible problems due to the firewall, and although you could allow the relevant ports through the number and types (mainly all the MS ones that the more common exploits take advantage of) will seriously reduce the firewalls effectiveness. You would probably be better either implementing a web servic eon the remote machine or hosting the text file in IIS and making it available through HTTP (suggest moving the port to something other than 80 though).
  22. What length of text are you allowing for the text related fields? If they are set smaller than the data you are passing in then this error will occur.
  23. How are you opening the incoming connections on the server? If you are just using the .Accept method on a socket then you could always just add the returned socket to a collection. If you post the server's code for handling incoming connections then it will be a bit easier to see how you are currently doing things.
  24. You will need to add a reference to the System.Widows.Forms.dll first.
  25. Could you post the code for the application in question as it should work the same under VS 2005 Beta 1.
×
×
  • Create New...