15,905,914 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by jack_th (Top 46 by date)
jack_th
12-Feb-14 21:41pm
View
Dear Peter, thank you so much for your advanced suggestion. I've try to use keyword 'at system.drawing.graphics.checkerrorstatus(int32 status)' until I found this thread https://www.atalasoft.com/cs/forums/thread/9965.aspx >>'Actually the problem is a bug in the .NET Graphics object when you use a brush from System.Drawing.Brushes. Create a new SolidBrush instead and I bet the problem will go away.'
jack_th
11-Feb-14 21:35pm
View
In my codes, it notices that SafeNativeMethods does not exist in the namespace "System.Drawing". I already done search on google but there were no example make me understood. I am a very new in Drawing namespace. Please show some example or explain about SafeNativeMethods more. Thank you.
jack_th
10-Feb-14 4:17am
View
Format may be concerned but I have already done a test on random orderly select 4 files to upload by considerate on the same picture which does not error at the last time but get error on later time.The result means, it's not in this error case.
jack_th
23-Oct-13 0:32am
View
After I have tried re-install OS, if it's OK, I will. Thank you so much.
jack_th
23-Oct-13 0:30am
View
They are the same at all. Tomorrow, I will try re-install OS. Thank you.
jack_th
22-Oct-13 4:16am
View
I didn't assign session value to any static variables. More explains, are all apps in local IIS work fine. Session state has no strange symptom as being in online server. VICK, on the above comment has said, that may caused from OS, make me get though of it. How do you think for that? I may need to try re-install or not? Need comments.
jack_th
22-Oct-13 3:42am
View
Excuse me! please apologize for my fault. I've put sessionstate mode="InProc" cookieless="false" timeout="240"
in web.config and it works without that symptom anymore now. But I exactly got that strange session yesterday. Let me check for what cause of that first, because i forget. Then I will come back to tell you what I'd tried to change my web.config in order to get that strange session.
jack_th
22-Oct-13 1:00am
View
Thank you, I'm now using that but the symptom is not fixed.
jack_th
22-Oct-13 0:50am
View
I just got to know that my server couldn't access from outside network (by domain address) this morning. I afraid virus would attacks my server. Do you think it possible?
jack_th
22-Oct-13 0:46am
View
I've already try and if i put it to web.config, session.abandon() command would not work.
jack_th
22-Oct-13 0:44am
View
i didn't check for session timeout. just keep it as default IIS settings. And my sessions have no expire error. Do you have any idea for this?
jack_th
7-Jul-13 22:32pm
View
Thank you to Mr.Hiller. I had copied the files into server directory with remote desktop and installed as a virtual directory application. Do I need to deploy it instead? and how about other posible concerned cases?
jack_th
21-May-13 22:00pm
View
Ok. Thanks and please apologize for that.
jack_th
14-May-13 23:55pm
View
Thank you for all comments. But..
The stack traces is complete.
Is it (the assembly you mean) a Visual Studio's assembly that is missing?
If it is, will I install visual studio to the server computer?
jack_th
14-May-13 23:55pm
View
Deleted
Thank you for all comments. But..
The stack traces is complete.
Is it (the assembly you mean) a Visual Studio's assembly that is missing?
If it is, will I install visual studio to the server computer?
jack_th
14-May-13 22:52pm
View
Deleted
Thank you for all comments. But..
The stack traces is complete.
Is it (the assembly you mean) a Visual Studio's assembly that is missing?
If it is, will I install visual studio to the server computer?
jack_th
6-Jan-13 22:32pm
View
Dear _Amy,
I am just telling you back that the problem is not fixed. It seems no way to fix that. But I will give you more detail that I am using ms access to be my database and this is my global.asax
<%@ Application Language="VB" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
Dim connString As String = System.Configuration.ConfigurationManager.ConnectionStrings("botConnectionString").ConnectionString.ToString
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim cn As OleDbConnection = New OleDbConnection(connString)
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
cn.Open()
cmd = New OleDbCommand("select amount from tb_visitor", cn)
dr = cmd.ExecuteReader
If dr.Read Then
Application("AllHitedUsers") = dr("amount")
'maxamount = dr("amount")
Else
Application("AllHitedUsers") = 0
End If
cn.Close()
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_OnStart(ByVal Sender As Object, ByVal E As EventArgs)
'Session.Timeout = 10
Session("Start") = Now
Application.Lock()
Application("ActiveUsers") = CInt(Application("ActiveUsers")) + 1
Dim cn As OleDbConnection = New OleDbConnection(connString)
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
cn.Open()
cmd = New OleDbCommand("select max(amount)as maxamount from tb_visitor", cn)
dr = cmd.ExecuteReader
If dr.Read Then
'Application("AllHitedUsers") = dr("maxamount")
Application("AllHitedUsers") = dr("maxamount")
Else
'Application("AllHitedUsers") = 0
End If
cmd = New OleDbCommand("update tb_visitor set amount=" & Application("AllHitedUsers") + 1 & " where id=1", cn)
cmd.ExecuteNonQuery()
'Dim dataAdapter As System.Data.IDbDataAdapter = New System.Data.SqlClient.SqlDataAdapter
'dataAdapter.UpdateCommand = dbCommand
'
'Dim dataSet As System.Data.DataSet = New System.Data.DataSet
'dataAdapter.Fill(dataSet)
cn.Close()
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
Application.Lock()
Application("ActiveUsers") = CInt(Application("ActiveUsers")) - 1
Application.UnLock()
End Sub
Private Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs)Handles MyBase.Error
Server.ClearError()
End Sub
</script>
and this is my web.config
<script>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configsections>
<sectiongroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<se>
jack_th
6-Jan-13 22:28pm
View
Deleted
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configsections>
<sectiongroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
jack_th
6-Jan-13 22:26pm
View
Dear Vani Kulkarni,
I am just telling you back that the problem is not fixed. It seems no way to fix that. But I will give you more detail that I am using ms access to be my database and this is my global.asax
<%@ Application Language="VB" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
Dim connString As String = System.Configuration.ConfigurationManager.ConnectionStrings("botConnectionString").ConnectionString.ToString
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim cn As OleDbConnection = New OleDbConnection(connString)
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
cn.Open()
cmd = New OleDbCommand("select amount from tb_visitor", cn)
dr = cmd.ExecuteReader
If dr.Read Then
Application("AllHitedUsers") = dr("amount")
'maxamount = dr("amount")
Else
Application("AllHitedUsers") = 0
End If
cn.Close()
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_OnStart(ByVal Sender As Object, ByVal E As EventArgs)
'Session.Timeout = 10
Session("Start") = Now
Application.Lock()
Application("ActiveUsers") = CInt(Application("ActiveUsers")) + 1
Dim cn As OleDbConnection = New OleDbConnection(connString)
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
cn.Open()
cmd = New OleDbCommand("select max(amount)as maxamount from tb_visitor", cn)
dr = cmd.ExecuteReader
If dr.Read Then
'Application("AllHitedUsers") = dr("maxamount")
Application("AllHitedUsers") = dr("maxamount")
Else
'Application("AllHitedUsers") = 0
End If
cmd = New OleDbCommand("update tb_visitor set amount=" & Application("AllHitedUsers") + 1 & " where id=1", cn)
cmd.ExecuteNonQuery()
'Dim dataAdapter As System.Data.IDbDataAdapter = New System.Data.SqlClient.SqlDataAdapter
'dataAdapter.UpdateCommand = dbCommand
'
'Dim dataSet As System.Data.DataSet = New System.Data.DataSet
'dataAdapter.Fill(dataSet)
cn.Close()
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
Application.Lock()
Application("ActiveUsers") = CInt(Application("ActiveUsers")) - 1
Application.UnLock()
End Sub
Private Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs)Handles MyBase.Error
Server.ClearError()
End Sub
</script>
and this is my web.config
<script>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configsections>
<sectiongroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectiongroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
jack_th
2-Jan-13 22:01pm
View
Thank you for the suggestion. My website was created as an application but I will re-check other environments for making sure, if the problem still appear I may need your more suggestions.
jack_th
2-Jan-13 21:54pm
View
Thank you, this article is useful. Now, I have added "Private Sub Page_Error(ByVal sender As Object, ByVal e As System.EventArgs)Handles MyBase.Error " with the code "server.clearerror()" inside to my global.asax and waiting for any error. If there are no error occur within 3 days, I think this solution is great.
jack_th
3-Jul-12 20:50pm
View
Thanks for all comments and solutions but I just forget this topic all along. I'm really sorry for my fault that make some of you feel on disappoint. But now get the solution. No codes are wrong but I just stupid on web programming
, I run it direct through file path like 'file:///D:/test.html', so the page can't create cookie anymore. When I try to install IIS to my computer, I ran it again and it works.
Thank you for discussions.
jack_th
6-Sep-11 22:37pm
View
Thanks, I will try.
jack_th
23-May-11 21:57pm
View
Thanks for you all comments and discussions on this question. I've aready fixed it. And actually the problem was from permission as karwavivek had told. So thank you very much to karwavivek ^^.
But also Thank you alot to Dave Kreskowiak. Your solution also great interm of Observations for next future problem.
jack_th
23-May-11 21:52pm
View
Thanks for you all comments and discussions on this question. I've aready fixed it. And actually the problem was from permission as karwavivek had told. So, thank you very much to karwavivek ^^.
But another prblem also came to me, it is how to install this program with writable permission on an access database. Just a little more next problem needs help again.
jack_th
23-May-11 4:05am
View
Thanks, i will try that.
jack_th
23-May-11 4:04am
View
sorry everyone! this is error pics..(http://image.free.in.th/z/im/jdddd.jpg)
jack_th
11-Apr-11 4:55am
View
Albin, I've already look to your suggested site and it is all ASP.NET. I just have this problem in ASP not ASP.NET ^^. So now i have no way to fix it. But now, thanks alot for your suggestions!
jack_th
10-Apr-11 23:18pm
View
Thanks sir! I'll try...
jack_th
15-Mar-11 23:30pm
View
Thank you, I have tried to select all Network Adapters in Dropdownlist but no one is working.
Do you have other idea?
jack_th
13-Mar-11 22:25pm
View
Thank,sir. I will do that(improve it).
jack_th
10-Mar-11 2:32am
View
Thanks, sir!
jack_th
10-Mar-11 2:31am
View
Thanks sir!
jack_th
7-Mar-11 3:43am
View
Thanks sir, I will try that.
jack_th
7-Mar-11 3:40am
View
Thank you for suggestion but it doesn't work well, because the row number is not run correctly. It also count and +1 event the sub rows.
jack_th
28-Feb-11 1:56am
View
Thank you for your suggestion. After I had post this question, I have been sent to join a training so I didn't come to see your answer. And now I,ve aready solved it by replacement my old "xx.vbproj" and "xx.vbproj.user" files from backup project.
jack_th
20-Jan-11 21:28pm
View
Sorry! The error message that occurred when I dropped datagridview is not showing now. It seems a warnning message else. But I didn't notice it anymore at that time. So, now I don't know what cuase of this errors. I only try to resolve it as the suggestions from you and another posts but it still not work.
jack_th
20-Jan-11 2:50am
View
Add: Now I've aready re-install SDK belong to another guide, but it still errors as it was.
jack_th
20-Jan-11 2:47am
View
Actually, before this error will occured, I was trying to create a .rdlc report and this report is too busy because of a very long sql command (with Access Database).However, the command is work fine. When I execute in MS Access and I can get data from database as I need. But when I run this report, it turn to show no data inside (but no error).
So, I decide to create a datagridview in the same form of report viewer to test this sql command and after I dropped a datagridview on the form, An Error Message was pop up . Unlucky, I didn't notice the error message anymore. Then I just clicked "OK" and continued to create the datagridview. After it was finished and try to run program, but this error occurred. Could you help me to analyse that what should be the cause of this problem. Thanks too much.
jack_th
19-Jan-11 21:25pm
View
Thank you, Jerrykid. But another thing i would like you to consider is my another project is able to run without error.So, i think, maybe only this project is damage on itself. I'so confuse. How do you think with this case?. Please comment more.
jack_th
23-Nov-10 2:37am
View
Thanks sir, I will try it again.
jack_th
23-Nov-10 2:36am
View
Oh! Thank you. I 'll try by myselft first.
jack_th
8-Nov-10 9:20am
View
Here is my connection string "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=payroll.mdb;" and I have to tell you more about the behavior of this error.
Behavior: After I have run the program and when I come into the page (Page which error occur),there is no error occur at fist time. And I still can do some activity with no error ,though the program to run through rowPostPaint event for a while. But if I still do this acctivity repeately longer, the error will occur.
jack_th
8-Nov-10 8:56am
View
I just guessed that, maybe because of looping in rowpostPaintEvent which is the cause of this error. So just I tried to make a sleep to delay each time of openning or closing the connection. However it still the same.
Now, I am trying to edit my code belong to your suggessions.
jack_th
17-Sep-10 11:17am
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
jack_th
14-Aug-10 7:36am
View
thank you. You suggestion is helpful to me and now I already attach my database to sql server.
Show More