|
Hi,
in asp.net, i have the following errors,
System.Reflection.TargetInvocationException was unhandled by user code
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e)
at System.Web.UI.WebControls.ListControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at TimeEntry_aspx.Page_Load(Object sender, EventArgs e) in h:\TimeTracker1\TimeTracker\TimeEntry.aspx.cs:line 40
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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)
thanks in advance
murugavel
|
|
|
|
|
Did you google the error ? Work out what page is causing the error ? Is it just one page ? Do you know what line of code does it ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
NEVER use the designer, it is CRAP. Write CSS, use tables or just use br tags to space stuff out on your page.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Thanks, would you suggest another IDE that might work better? Have you glimpsed at VS2010 by any chance?
Jon
|
|
|
|
|
|
pradeepsimha wrote: how to pass array from one page to another?
First of all what is the reason for passing the Array over page? If its same for all user try to store it in Application Variable or For different for every user use Session.
But why you are trying to do that ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
actually i m doing bus reservation project......in form user will select seats(using checkbox lists) and i need to pass those selected values from this page to next page.......so only........
|
|
|
|
|
But, is it homework, or paid work ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You've asked this a few times now. Is it homework or paid work that you're taking on, but have nothing close to the skills needed to do ? If it's homework, talk to your teacher. If it's paid work, tell the client you are a fraud. If you really want to do this, just read all the answers you got last time, and if you post again, post something like 'I was told to do xx, here is my code, and here is where I am still stuck'. The alternative, is to decide that programming is beyond you and to do something else with your time.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
thanx for u r concern bt programming is not behind me.......k
|
|
|
|
|
I'm not sure what this means ? Are you a student who has not studied enough, or are you being paid for your ignorance ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
if you know u help but pls dont try to degrade one's ability because one or other day u ll also in d situation to get help from others...
|
|
|
|
|
you're wrong. I have far more difficult problems than yours and I solve them myself, with google and with textbooks. I DO ask questions from time to time, but never as basic as this one, and never without reading and applying the answers.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi, you must have public property for your array.
example:
private _id as string()
public property strID() as string
|
|
|
|
|
Gosh - that's more clueless than even the OP. This thread is getting better all the time.
How does he pass the property between web pages according to your answer ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have a listbox and MovetoTopbutton,MovetoBottombutton
when i select an item in the listbox and if i click on MovetoTopbutton
then the selected item should be placed in top of the listbox
vise versa for MovetoBottombutton
how to do this one.................
|
|
|
|
|
Someone else asked this a couple of posts down ( or you asked twice with two different accounts) . It's done with javascript, which means it's not really an ASP.NET question. Google for samples
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Here is a sample which moves the selected item up. You can revise to meet your need.
protected void LinkButtonMoveUpProducts_Click(object sender, EventArgs e)
{
if (this.ListBoxProducts.SelectedIndex <= 0)
{
return;
}
int index = this.ListBoxProducts.SelectedIndex;
ListItem li = this.ListBoxProducts.SelectedItem;
this.ListBoxProducts.Items.Remove(li);
this.ListBoxProducts.Items.Insert(index - 1, li);
}
|
|
|
|
|
I have asp.net & vb.net Project it work fine in my local laptop but when i host it in ixwebhosting i have problem you can try it www.sudantrade.gov.sd the problem is :-
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
|
|
|
|
|
Why is it that so many people post here without even READING the error ? The error is TELLING you that you need to change your web config in order to see what the ACTUAL error is, this error is just telling you that the web config is set up to hide the error from a remote user.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have asp.net & vb.net Project it work fine in my local laptop but when i host it in ixwebhosting i have problem you can try it www.sudantrade.gov.sd the problem is :-
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
|
|
|
|
|
I want to get all names from an email that saved in contact. Just like a social network used to friend request to those contact name.
|
|
|
|
|
Hi Sir
I have one doubt that is
the list box having items i want to change the priorities of listbox using move up down first last please send code for that question
|
|
|
|
|
Moving items up and down on the client is done with javascript. Literally hundreds of samples are a google away
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|