Asp.net - Website Hangs For A Long Time Then Displays Nothing

Mar 10, 2009

Occasionally, my website will stop functioning and anytime an ASP page is accessed, the browser will hang for many minutes before bringing up a correctly formatted HTML page with nothing in the tag. It seems to happen whenever more than one person attempts to access an ASP page, but I'm not positive it's isolated to those conditions.

Let me emphasize that the issue does not arise when accessing directories/HTML pages/other files. Only ASP pages are the problem. I am using lunarpages as a host.

View 1 Replies


ADVERTISEMENT

WebSite Monitoring App Hangs?

Mar 11, 2010

I am writing a fairly simple web site monitoring app. It uses a timer to call a class that requests a web page and measures the response. Problem is that the third time the class is called the app hangs. looking at the locals box I see that the properties of the httpURL object are 'Property Evaluation Failed' .

Imports System.Net
Imports System.Net.Sockets
Public Class Form1

[Code]......

View 2 Replies

SqlDependency Hangs When Setting Up Second Time?

Nov 8, 2010

What I am trying to do is allow for my objects to know when their data has changed on the database (so they are able to raise an event to let the user of the object know about the change).After following several tutorials on how to get SqlDependency working, I have finally managed to get it to let me know when something changes (although it also appears to let me know when I make the initial connection to it too, but that isn't a problem as I can work around that).The function that I have which sets up the SqlDependency is;

Public Function getMembers() As List(Of User)
Dim conn As New SqlConnection(_connectionString)
Dim sql As String = "SELECT UserGroupUserID, UserID, GroupID FROM dbo.xtblUserGroupUsers

[code].....

View 9 Replies

Serial Program Hangs After Short Time

Sep 9, 2011

I'm writing a simple program to retrieve data via the Serial Port. I have a piece of hardware that returns its 14 byte status every time vbCr is written to it. The program works fine except after a few hundred requests the program begins to hang, off and on. Some times for a second some times for longer. I need to update every 25 milliseconds so the hanging sets in quickly. This faster the interval the quicker the problem sets in but no mater how long the interval the problem eventually starts.[code]...

View 8 Replies

Date-Time Searching Displays No Result?

Jul 8, 2011

I have a problem with search form. I use date-time picker for user to pickup their prefer date. And when I tried to set any date, it produces no result. Bellow is my code:

Try
myDataSet.Clear()
myCommand = New SqlCommand("SELECT * FROM tblVisitor WHERE EnterDate LIKE @EnterDate",

[code].....

View 1 Replies

C# :: Long Time Running Applications?

Jul 5, 2010

I'm going to design an Application (C# or VB.NET) which use .NET Framework to run for very long time. It may be restarted every year or even more...Is there anything (using special design patterns or so) which I must care about in designing "Long time running applications in .NET"?

View 3 Replies

FileOpen, And FilePut For A Long Time In .NET?

Apr 1, 2010

I've been using things like FileOpen, and FilePut for a long time in VB.NET, and it's never presented any problems. However in my latest project I'm using CodeDom to compile at runtime, as you know FileOpen, and things like that are the old VB6 methods, such as MsgBox("Msg"), and these don't work. So I need to know how to do this using only the newer VB.NET code.

[Code]...

View 1 Replies

Get The Current Time In Milliseconds (long)?

Dec 8, 2010

I'm looking for the equivalent to a Java System.currentTimeMilli(), in VB.NET.What is the method to call? I know about Datetime.Now, but not about the actual conversion to long milliseconds.More details about my specific need: I need to manage a login expiration. So most likely when I log in, I will set a "expiration_time_milli", equal to the current time + the timeout value. Then later, if I want to check if my login is valid, I will check is "expiration_time_milli" is still superior to current time.

View 4 Replies

Run Time Error During Long Loop?

Dec 7, 2011

I wrote a program which loops through a very long CSV file (50 meg) and parses the data as it goes.Sometimes, the program aborts and I get the following message:The CLR has been unable to transition from COM context 0x37a090 to COM context 0x37a200 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

I know its going to take a while. There are several hundred thousand lines of text in the file that this program is reading. I am not sure exacly waht the message means, but my program seems to work fine other than the message. odd thing is sometimes the message doesnt always pop up..

View 1 Replies

.net - Very Long Build Time In Visual Studio?

Oct 28, 2009

I've a solution with 15 projects (14 class libraries and one web application). Each class library has corresponding test project (i.e. if I have MyApp.Services project there exists MyApp.Services.Tests -- using NUnit). Everything is written in VB.NET. The problem is that when VS tries to compile any of *.Tests project it stops responding (the bigger the project the longer the period without reposnse). I don't know where to start looking for an issue. I'll add that I've R# 4.5 installed.

UPDATE 1:Is there any way to benchmark a build in visual studio? To get build times for every project?

UPDATE 2:It seems that there is no difference after disabling R#.

View 4 Replies

DB/Reporting :: Long Time To Run A VB Program And Get An Error

Apr 5, 2009

I have a problem with my (aspx.vb, aspx) program. Since my vb program require more than a day to make some data analysis. however, the page always run a long period(one hours exactly) will be downed and become cant display the page. i am wondering is it related to dns error?

View 3 Replies

Sql - Function Takes Long Time For Execution?

Jun 13, 2012

Actually, I am trying to find out whether the partno is existing in the database table or not and it takes long time in count = checkCommand.ExecuteReader statement

Public Function CheckProductNo(ByVal Partno As String) As Boolean
Dim count As SqlDataReader
Dim valid As Boolean = False
Using connection As New SqlConnection

[code]....

View 4 Replies

VS 2008 - Anyway To Time How Long It Takes A Message Box To Pop Up?

Sep 9, 2009

I'm trying to time how long an operation takes in Visual Basic (VS 2008) but its not working. the code I have is as follows:


[code]...

this is in an OnClick event, so what happens is that the user can click a menu item, and it goes and sends any changes it has to a database, and pulls down any new changes to a local data cache. This operation takes time, depending on how many changes are on the server and how many are cached locally. I've thought about making this a background task, so it doesn't draw away from the main app while it's running, but before doing that, I'd like to get an idea how long the operation takes. Since I can't exactly do a progress bar, I figured using the stopwatch would tell me how many ticks/milliseconds would occur between click, and when the "total synced" message comes up, but every time i run it and do an update the message always shows 0 ticks/ms. I don't think it's accounting for the delay, just from start to finish. Is there any way to make it so it detects a message popping up and times off that?

View 6 Replies

Show Msgbox It Goes Back To Previous Subroutine At Else Statement And Runs Again But This Time It Displays

Nov 6, 2010

I have a routine that has an if else statement at the else part it calls another routine. Within that routine it has a msgbox script. At the part that is actually is suppose to show the msgbox it goes back to the previous subroutine at the else statement and runs again but this time it displays. I have never seen this before.

THe code is posted below.

1 Else
2 Me.lblTurnsLeft.Text = Me.lblTurnsLeft.Text - 1
3 If Me.lbltimer.Text = "0" Then

[CODE]...

View 1 Replies

Count Time Of Typical SQL Request And Cut Connection If Too Long

Oct 11, 2011

I need to find the best solution to count how long it takes to make a request to database like connect, do a select and receive the answer. And if that take more than 300 milliseconds I must cut the connection.
Public Function FindLastCt() As Decimal
FindLastCt= 0
Dim strrequete As String = "SELECT MAX(CM_Codigo) FROM CAJITAS WHERE CM_Date >= '" & Format(DateTime.Now, "dd/MM/yyyy") & " 00:00:00.000' AND CM_Date <=
'" & Format(DateTime.Now, "dd/MM/yyyy") & " 23:59:59.999'"
Using connection As DbConnection = factory.CreateConnection()
[Code] .....

View 12 Replies

Front End - Record Updation Taking Long Time

Jul 6, 2009

I have a backend database in MS access, which is updated using excel as front end. Due to network issues the record updation takes lot of time. Would it be faster if i use VB.net as the front end.

View 1 Replies

Inline Aray Initialization Is Taking To Long Time?

Jul 6, 2009

I am on one asignment of convering C# to VB.net and stuck up with this problem.C# application has one class having inline two dimensional array initialized with size 168X168. I converted same class to Vb.net. Now whenever I create instance of my this VB.net class, It take almost 3 minute.

To figure out problem, I put break point on sub new() (first line of my constructor), and behaviour is realy strange because it takes 3 minutes to reach at first point of my constructor.Whenever I comment out my large size array initialization code, It works perfect. Now please note that same code is working fine in C#. It is not taking even few millisecond to initialize that class.

View 5 Replies

Macro For Game - Long Spells In Short Time

Apr 19, 2011

I'm trying to make a macro for a game, so I use long spells in a shorter amount of time. I'm having trouble with a lot of things. For starters I get the when I start the programs timer: "A call to PInvoke function". (I'm calling it a hack, but it's not a hack because it doesn't hook into memory addresses, only sends keys when the correct combo are pressed)

Option Strict On
Public Class Form1
Private Property hEnabled As Boolean
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As IntegerPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If (hEnabled = False) Then
[Code] .....

View 5 Replies

VS 2008 Get Administrator Members Takes A Long Time

Apr 18, 2011

I am using the below code to get the local Administrator members, but this code takes about 6-7 seconds to execute. More precisely the "GetObject" takes that long.Is there another way to get the same information but faster?Also, where can I find what other properties the objects holds ? (To see what other useful information I can get)[code]

View 1 Replies

VS 2008 Published App Takes A Long Time To Load?

Feb 10, 2010

Whenever I publish my app, or when I run the exe from teh debug folder it takes a couple of seconds before the splash screen shows.However, when I run it from within VB (by pressing the "play" button) the splash screen shows immediately.

What could be the cause of this?

View 2 Replies

AXWindowsMediaPlayer Taking A Long Time To Release File On Close

Aug 29, 2011

I am writing an application for managing mp3 files. I use AXWindowsMediaPlayer1 for playing files and UltraID3 for reading and writing ID3 tags. Every time the user selects to switch to next song, the ID3 tags of the current file need to be updated. My problem is with Media Player taking a long time to release a file for access after doing a "close". Currently I need to add a 6 seconds delay between the "Close" method of the media player and the ID3 tag "Write", otherwise I get the error saying that the file is currently in use. Anything less than 6 seconds does not work...

I attached a short version of my application which focuses on the issue.

View 1 Replies

Keeping Browser From Timing Out In Mvc3 App During Long Processing Time

Mar 14, 2012

MVC3 vb.net. In my app I have a point where 500+ emails with attachments are sent out using a for each loop to accomplish this.. Nothing is returned to the browser the entire time this is running so eventually the browser think it has timed out... I tried just having it redirect to another actionresult function after every email and that function just passes it back to the email function. This is not working and I feel the reason is that nothing is actually being sent to the browser window its self.. Is there a way to fix this issue??

[Code]...

View 3 Replies

Takes Long Time To Generate Excel File Using OPEN XML SDK Tool?

Aug 1, 2011

i have developed an application using OPEN XML SDK Tool 2.0 which generates Excel file. I have Data table of 100000 row and 30 columns and i want to generate excel file with these 100000 rows and 30 columns but it takes about 2 minutes of time to generate excel file. What can i do to reduce this time.

View 3 Replies

VS 2008 Way Of Coding In Stead Of Writting Long Long Paragraphs

Sep 18, 2011

Is there a easer way of coding in stead of wrighting long long paragraphs like this in one line [code]All of this is on one line and i got lots of info to put down.."The game will begin on your 16th birthday with your mother waking you up. Today you are to go to the castle for the first time. Leave your bed and open your dresser for a Strength Seed. "

View 2 Replies

How To Read Clock (Official Time) From Website

Sep 1, 2009

Is it possible to make program with VB to read the clock from websites? The official U.S. time - clock. How can I do that? And trigger actions based on the clock time.

View 3 Replies

File I/O And Registry :: File Founder - Taking Long Time?

Apr 26, 2010

I'm writing a program to search files.The result is saved in a text file.Everything it's working fine, but when I say to look for files/folders in C:* the process takes long time and in task manager it's displayed as "Not Responding", this is not true because I see that CPU and RAM are working with this process.I've disabled in DEBUG OPTIONS the line "ContextSwitchDeadlock" just to prevent the error message "this operation require long time ... bla bla bla".Is there any way to display a progress bar or something like that that shows the program is running and it isn't "hang"?Here's my code (in red the line where the program hangs):

Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cartella, scelta, cosa As String

[code]....

I think that it's like when you type in the command prompt "tree" it doesn't hang... I know... it's not the same thing but...I'm using Visual Basic 2008 Express?

View 3 Replies

File I/O And Registry :: AVI Header - Program To Download And Play AVI Files The Files Are Large In Size And Long Time Wise

Dec 11, 2011

I wrote a program to download and play AVI files the files are large in size and long time wise. I have the files playing as they are being downloaded but i can't see how long the file is or seek reliably. i was reading that the AVI headers are in the last 512kb of the AVI file *why would't they put it at the start* lol so my question is is there a way to download the last 512Kb of the file i'm downloading. i have the Bytes Read and Length of the file while its downlaoding i'm just not sure where to go from there, or how to do it atleast. If i had the length in time of the Avi file i could set the trackbar to be able to seek properly. or if someone has an idea how i could get the time of the video by using fps and some math i could prob do it that way too but idk how i would tell how i can find how many kb are in the fps i'm sure it changes so think that way is't going to be reliable. how to get the last 512kb would be the best option not sure if it can be done even.

View 4 Replies

Private Declare Function BlockInput Lib "user32" (ByVal FBlock As Long) As Long?

Dec 26, 2009

In Visual Studio 2008 I am using :Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long To stop input from occuring during a search-replace operation.

BlockInput(True) ' do not allow input during search and destroy
Dim cursorIcon As Cursor
cursorIcon = Cursor
Cursor.Current = Cursors.WaitCursor

Then setting it to false at the end of the operation. It did not work, so I thought maybe it was because I was calling it from a child window, so I created a function in the mainwindow, and ran it like this:

FrmMain.BlockFrmMainInput()With these functions is the Main window:

[Code]...

It did not solve the problem. I thought maybe it was because I was running under the debugger, so I tried compiling and running it debugger-free, but that did not do any better. I am still getting input when I double-click the mouse on either form.

View 2 Replies

Missing "AM" Part In Time While "PM" Displays Correctly

May 13, 2009

Originally Posted by ckbseng i use customFormat to specified the format that i need but like hh:mm tt should display in 12:23 PM but it only display 12:23 and the "tt" missing already did i write the format wrong already? I have a similar problem guys.. I use now().ToShortTimeString.. The problem is that it shows PM correctly.. The AM part seems to be blank.. It's being used in a report.. Take a look at the screen shot..

View 4 Replies

VS 2008 Select Website In Combobox Open Form2 With Website Preview?

Feb 19, 2010

What Im making is like a face book and tagged login from my app

1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com )
2. I have a Form2 with webbrowser
3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1

All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved