Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've hosted an Asp website in vb.net . website is all about calculating average, when two user opens my website and tries to make any calculation it shows RUNTIME error. When a single user uses the website it works properly. What would be the solution.

Am using using combo box listed items in combo box are A,B,C . each items holds value like 10,9,8.
Calculate button to find the average.
when to users uses same combo box it results error.
http://www.aug.somee.com/[^]
this is my website .

Dim tot1 As UInt32

SQL
Public Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        tot1 = 21
        If DropDownList1.SelectedValue = 0 Then
            tot1 = tot1 - 3
        End If
        If DropDownList10.SelectedValue = 0 Then
            tot1 = tot1 - 3
        End If
        If DropDownList11.SelectedValue = 0 Then
            tot1 = tot1 - 3
        End If
        If DropDownList12.SelectedValue = 0 Then
            tot1 = tot1 - 4
        End If
        If DropDownList13.SelectedValue = 0 Then
            tot1 = tot1 - 4
        End If
        If DropDownList14.SelectedValue = 0 Then
            tot1 = tot1 - 2
        End If
        If DropDownList15.SelectedValue = 0 Then
            tot1 = tot1 - 2
        End If


        sem1 = ((DropDownList1.SelectedValue * 3) + (DropDownList10.SelectedValue * 3) + (DropDownList11.SelectedValue * 3) + (DropDownList12.SelectedValue * 4) + (DropDownList13.SelectedValue * 4) + (DropDownList14.SelectedValue * 2) + (DropDownList15.SelectedValue * 2)) / tot1
        TextBox1.Text = sem1

    End Sub
Posted
Updated 25-Dec-11 21:06pm
v3
Comments
OriginalGriff 24-Dec-11 4:02am    
Without relevant code fragments, we would have to guess - and we don't like to do that!
Use the "Improve question" widget to edit your question and provide better information.
Monjurul Habib 24-Dec-11 4:04am    
agree

1 solution

set customerror mode = off in your web.config and let us see the error.
 
Share this answer
 
v2
Comments
rajsekar g 24-Dec-11 12:48pm    
After adding this am getting such an error
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>
but already debugging has been set true

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900