Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. You will need to grant the ASPNET account permissions to the database, asp.net web applications run under this account by default.
  2. Not been able to find much on the SmtpClass that gives any information about dealing with SMTP / ESMTP servers.... Easiest way to check if the server supports ESMTP is to telnet into it on Port 25 and type EHLO - if it responds with an OK then it is ESMTP, if it errors but responds when you do HELO then it only supports SMTP.
  3. It looks as though the SMTP class in .Net is actually using ESMTP (basically extensions to SMTP and a very common format these days) but the server in question doesn't support it. What version / make is the SMTP server in question?
  4. Something like Microsoft's Data Application Block may be a starting point for this kind of design. Also this is mentioned in passing in the thread over at http://www.xtremedotnettalk.com/showthread.php?t=96168
  5. Could you not load them into a hashtable like you suggested? i.e. On load loop through all .rpt files, for each one found add it to the hashtable using the FileName as the Key and the ReportDocument as the data. (Or use a generic collection if running under .Net 2). This way you could always refer to an entry in the list by it's filename anyway.
  6. If you are using windows integrated security and the IIS folder is on a NTFS drive you could assign permissions to the files themselves directly (or even better put them in a sub-folder and secure that). Also under .Net you can configure access rules via the web.config to only allow access to certain files or areas to specific users. If you search the forums you should find some samples or failing that just ask again for more specifics.
  7. Can't you just load a report with code like ReportDocument rpt = new ReportDocument(); rpt.Load(@"
  8. Did the dependency exist before the upgrade? If so was it a valid dependency before or an already existing error? You might also want to try some of the DBCC commands and see if that can identify / repair the problem. (Backup recommended first...)
  9. Definately by Page_Load or if you are inheriting from a page then any of the other events that occur after Init like LoadViewState. The link you gave pretty much lists the events and explains what is happening at each step of the way.
  10. After the init event has completed the controls etc have been created and can be safely accessed.
  11. There probably is no reliable way to do this as the format of the data is very dependant on the application that created it. It may help if you say why you are needing to do this as there may be an alternate solution to the problem.
  12. If this is for 'real' use rather than a learning exercise then http://www.peterprovost.org/archive/2006/01/11/10763.aspx points to the upcomming Monad from MS...
  13. private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { //do whatever should happen when it is checked } else { //do whatever should happen when it is not checked } }
  14. IIS is multithreaded and will take advantage of multiple cpus / cores. Not entirely sure what you mean by though - could you give a little more detal about what you are trying to do?
  15. If you search the forums then this question has been asked and answered before. In summary you would need to read each line from the old file into a new file and just don't write out the lines you wish to remove. You would then replace the old file with the new one.
  16. If the control is bound then you need to add the row to it's data source ratherthan the grid directly.
  17. The XmlSerializer class needs to know about the class' data structures to be able to serialze it - interfaces do not have any data fields and therefore it cannot use them to determine storage requirements. If you are looking at implementing ISerializable yourself then this MSDN article is a good starting point.
  18. Have you included the CR support in your installer? If not search these forums as it's a topic that has cropped up several times before.
  19. Does the target machine have the .net framework installed?
  20. When you create an array of reference types (classes) you do not get the elements themselves created - every element is nothing until you store something in it.
  21. You can certainly pass information to another page - look under the tutor's corner for an example of how to do this.
  22. The port a process 'listens' on is how a client will make it's initial connection, i.e. a web server listens (by default anyway) on port 80. When a client needs to communicate with the server it will make it's initial connection to the server on this port. As part of the connection handshake the client and server will negotiate another set of port numbers to communicate on and these are the ports used for the remainder of the conversation. These 'negotiated' port numbers are not however treated as new connections as they are part of the existing connection that happened to start on port 80 - therefore they are not blocked by your firewall etc. as they are not 'incoming requests'. The scenario I suggested above of using seperate threads for each connection will work but this can cause scalability issues if the number of connections gets large as you will end up with a large number of threads, a lot of which will be idle for large portions of the time. In this scenario rather than a 'one client = one thread' model you would find using async sockets more scalable as you would only need to allocate resources as and when data arrives.
  23. Not sure if it's the best way but the .Net SDK includes a tool called certmgr.exe - this would allow you to install a certificate via it's command line switches.
  24. IIRC you can no longer licence passport from MS. https://www.netservicesmanager.com/wizard/default.aspx does mention Passport 4.0 but no downloads are available...
  25. Does it make a difference if you set the data source to the table rather than the table's default view?
×
×
  • Create New...