Jump to content
Xtreme .Net Talk

klepto

Members
  • Posts

    7
  • Joined

  • Last visited

1 Follower

Personal Information

  • Visual Studio .NET Version
    .Net Enterprise Architect
  • .NET Preferred Language
    c#

klepto's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I know it's already solved but have you used the Misrosoft.ApplicationBlocks.Data classes. This assembly provided by Microsoft can be used to access data via a set of utility classes I have found it very useful.:cool:
  2. Thanks for your help! :rolleyes: , once I found the solution it is verry simple. Just add the following to your web.config or mod the settings in the machine.config. <system.web> <httpRuntime maxRequestLength="XXXXXX" /> </system.web> where XXXXXX is the max size in byte for http file posts.
  3. I have has a simmilar problem when using threads within services, if your using threads you should explicitly stop them with the service stop method.
  4. Create an endless loop, then use Thread.Sleep(miliseconds) to pause the service for a specified time. This is not completly accurate because the processing time of your code will be added to the sleep time. You could also create a timer System.Timers.Timer and have this raise an event which calls your code , then you set off a new thread and reset the timer for the next interval. This should be more accurate.
  5. If you want to keep the client from reloading the active page but want to retrieve data from a server, I have done it like this in the past. If the site is framed, have one frame which is of zero (0) size so it does not display. Have you custom validator call a page which retrieves your data as javascript variables or arrays into this frame. You can use this frame to store quite a bit of data and it is easily reloadable and accessable. If the site is not framed use the same process but open a new browser window off screen so the user cannot see it. In this case you should close the window as soon as your done as it is a bad look to leave these windows open when your application is finished with it. The only problem with this method is timing, you may need to have the page loading in the frame or new window call a method in the primary window when it is done. Or you can poll the frame or window for an expected variable and when it appears you know all the real data is available. It's a messy way of doing it but it makes for a clean user interface and it look realy professional. :-\ :-\
  6. More on this problem from klepto: the error I get within the Request.InputStream is [error: an exception of type: {System.Web.HttpException} occurred]. if the file is under 3.8 mb then this contains the incoming data stram handle. It feels like a transmition problem or at least a problem prior to the script being given the request data.
  7. I have written a component which posts binary data to a web page usinig HttpWebRequest, this works fine with any file types up to about 3.8mb. At that point the web page recieving the file refuses to read the data. I have also tried this using a standard web page to post a file with a multipart/ form data and using the Request.Files collection to retrieve the data from the post, this also fails with file larger than about 3.8mb. I have seen information relating to max http post size on unix based web servers, but can find no information on a limitation within IIS. If anyone has any information relating to this 3.8mb limit I would be most greatfull. :confused:
×
×
  • Create New...