|
I have checked the Event Viewer and the most recent error is:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 13/01/2009 10:21:48
Event time (UTC): 13/01/2009 10:21:48
Event ID: a3413091a18d426ba586ccc714e6be15
Event sequence: 146
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/CD-1-128763154628476497
Trust level: Full
Application Virtual Path: /CD
Application Path: C:\inetpub\wwwroot\CD\
Machine name: MCORION
Process information:
Process ID: 10612
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: ArgumentException
Exception message: Column 'DistanceCovered' does not belong to table Table1.
Request information:
Request URL: http://mcorion/CD/Default.aspx?Page=AmiscoPhaseComparison
Request path: /CD/Default.aspx
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 10
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRow.get_Item(String columnName)
at blt.SS.View.ProzonePhaseAnalysis.FillPlayerMaxMinAverage(DataTable mainTable, DataTable dataTable, String statName)
at blt.SS.View.ProPhaseAnalysis.btnView_Click(Object sender, ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
The error seems to be that the Column 'DistanceCovered' does not belong to table Table1 but there doesnt seem to be any mention of this column in my code any where. Have not checked the IIS logs will find out how to and see what info that gives me.
Thanks for your reply
Tim
|
|
|
|
|
Must be in there somewhere, in the FillPlayerMaxMinAverage method.
|
|
|
|
|
as you think this seems that you have a problem on your code, trace your app and find the problem
Human knowledge belongs to the world
|
|
|
|
|
The problem is i have spent the last ten mins trying to get the same page to crash again and its running perfect now its doesnt make sense, the method mentioned FillPlayerMaxMinAverage does have statName as a param which may have been set to DistanceCovered but it just will not crash again, the page seems to be fine now so im just waiting for the next crash
I managed to find the IIS logs, they are very messy, is there some less complicated way to check them ???
|
|
|
|
|
Thanks for ur replies guys....
I managed to find that one "Distance Covered" bug buried deep in the code and got it sorted now but the app is still crashing regularly, i have noticed that the majority of the crashes are happening in the Data Access Layer objects when they try to interact with the db. This is the most common crash i am seeing in Event Viewer. But the prob is this method is run regularly and only crashes sometimes.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 13/01/2009 15:54:39
Event time (UTC): 13/01/2009 15:54:39
Event ID: 9334dc4729694b1a93e5e6d1c8789b75
Event sequence: 50
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/CD-1-128763355768712422
Trust level: Full
Application Virtual Path: /CD
Application Path: C:\inetpub\wwwroot\CD\
Machine name: MCORION
Process information:
Process ID: 8876
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
Request information:
Request URL: http://mcorion/CD/Default.aspx?Page=ViewTreatments
Request path: /CD/Default.aspx
User: MC\Medi
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 8
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at SportsAnalysis.DataAccessLayer.ObjectAccess.DatabaseSettings.SelectOne()
at blt.BasePage.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
Regards
Tim
|
|
|
|
|
I also have an application that I am supporting which becomes unstable / crashes. I was using the windows performance monitor and watching the .NET CLR Memory Total committed Bytes. The memory would just climb higher and higher and eventually the system would crash. I then looked into the Event viewer and we found error messages that lead us to the conclusion that there was a memory leak in one area of the application. The vendor fixed the leak and the system is more stable.
Start with monitoring the memory on the IIS server and check the memory usage, you may find a correlation between memory usage and system stability.
david
|
|
|
|
|
Hi everybody,
i want to display a popup window like msn. i have done for desktop application. but not for the web application. quick response 'll be highly appreciated.
Thanks in advance.
Regards,
Chanzeb Chaudahry
|
|
|
|
|
for popup window you need to use javascript function
window.open(aspx form);
umerumerumer
|
|
|
|
|
when trying to login from Logon page it is loging and going to master page and in the Master page different hyperlinks, when i click on any link it is redirected to Logon page.
<b>Login Page btnlogin click code</b>
if (DatabaseLayer.AdminDAO.UserExists(txtUserName.Text, txtPassword.Text))
{
FormsAuthentication.SetAuthCookie(txtUserName.Text, false);
Server.Transfer("~/Admin/Presentation Layer/MainPage.aspx");
}
else
{
Page page = HttpContext.Current.Handler as Page;
if (page != null)
{
page.ClientScript.RegisterStartupScript(page.GetType(), "msgbox", "alert('Sorry ! Your Login Failed');", true);
}
}
<b>Web.config Code</b>
<authentication mode="Forms">
<forms name="appNameAuth" path="./Admin/" loginurl="./Admin/Admin.aspx" protection="All" timeout="30">
</forms>
</authentication>
<authorization>
<deny users="?" >
<authorization>
<b>Main Page One Hyper Link</b>
<asp:hyperlink id="HyperLink15" runat="server" navigateurl="~/Admin/Presentation Layer/News.aspx" xmlns:asp="#unknown">News</asp:hyperlink><br />
While clicking any of the Hyper Links it is redirecting to Logon Page.
|
|
|
|
|
Hi,
I am following one MVC built in my organization but i am not happy with its performance.I need to change it.So please suggest me any mvc with good performance.
|
|
|
|
|
Hi,
what do you mean by MVC? Do you mean the model-view-controller architecture?
If you search a framework implementing/supporting the mvc-paradigma have a look a the ASP.NET MVC http://www.asp.net/mvc/[^].
Regards
Sebastian
|
|
|
|
|
Yes i here MVC is for model-view-controller
|
|
|
|
|
Ok. What is your issue? Is ASP.NET MVC not performing well for you?
|
|
|
|
|
Ya,MVC which one i m using is not performing well,so i need to change it
|
|
|
|
|
So you are using ASP.NET MVC? MVC is just a design pattern, there are lots of frameworks out there to help you using this pattern. You could also try to rewrite your application according to your needs using the MVC pattern.
|
|
|
|
|
Hellow all,
how to upload image in php code i know i am sending on wrong forum but kindly guide me i only trust on code project experts
Thanks in advance.
|
|
|
|
|
Code Project already has PHP forum. you can post this question in PHP Forum[^].
|
|
|
|
|
Hi friends ,
i need coding for login page that checks user name and password from database table. i search from google but i can t find satisfactory answer. plz send me coding if anyone knows
|
|
|
|
|
Hi,
you r using built in login control or making your own custom login
|
|
|
|
|
hi nidhi sorry im not able to understand what u say
|
|
|
|
|
Hi,
We can use login in two way.
1. use built in login control of asp.net.
2. Create one html form where we keep 2 fields,login and password and then check it from database.
So what do you want to follow.
|
|
|
|
|
Jas 007 wrote: Hi friends ,
i need coding for login page that checks user name and password from database table. i search from google but i can t find satisfactory answer
I have already suggested you to buy a Beginners's Book before asking this type of question . Check Here[^]
Jas 007 wrote: search from google but i can t find satisfactory answer.
What kind of answer do you expect ?
I have searched google and Got This[^]
Jas 007 wrote: plz send me coding if anyone knows
This does't help you to learn .
|
|
|
|
|
|
web user control will be helpfull for you create a user control and add in your page where ever you want....
umerumerumer
|
|
|
|
|
Dear friends,
How can I destroy a variable in ASP.Net(C#).
If anybody knows, please answer
Regards
Shivan
Shivanandan C V
|
|
|
|