|
Server Error in '/AJAXEnabledWebSite4' Application.
--------------------------------------------------------------------------------
Plz help me.
I Editted template in Gridview, Also I attched an Imagebutton with the template but the problem which I am facing is like below.
Server Error in '/AJAXEnabledWebSite4' Application.
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true"> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
|
|
|
|
|
When you are getting this error ? Your application is running from Visual Studio or IIS ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I have one web service in which i am calling external webservice by createting it's object. last 3/4 days whenever server tries communicates to external web service & if that external service returns a large data then i am getting an error "Thread was being aborted.|~|System|~| at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) at System.Net.Connection.PollAndRead(HttpWebRequest request, Boolean userRetrievedStream) at System.Net.ConnectStream.PollAndRead(Boolean userRetrievedStream) at System.Net.HttpWebRequest.EndWriteHeaders(Boolean async) at System.Net.HttpWebRequest.WriteHeadersCallback(Web ExceptionStatus errorStatus, ConnectStream stream, Boolean async) at System.Net.ConnectStream.WriteHeaders(Boolean async) at System.Net.HttpWebRequest.EndSubmitRequest() at System.Net.HttpWebRequest.CheckDeferredCallDone(Co nnectStream stream) at System.Net.HttpWebRequest.GetResponse() at System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters)" .
i searched on the google but not getting any solution for the same. We are using C# .Net 2.0. can anyone suggest the solution .
|
|
|
|
|
You may need to change your configuration file to allow larger files. Are you using WCF or Web Service ?
|
|
|
|
|
hi,
i am using web service .NET 2.0. i have added following tag in my web.config file
<configuration>
<system.web>
<httpRuntime maxRequestLength="4000"
executionTimeout="45" />
</system.web>
</configuration>
then also i am getting the same error. Whether i should increase the timeout or maxrequest length.
please suggest the solution
|
|
|
|
|
A value of 4000 means 4000KB (roughly 4MB). Anything beyond this can generate the error. Try setting it to something very large just to make sure that this is what is causing the thread to abort. Also increase the executionTimeout value.
|
|
|
|
|
I think the thread being aborted is due to the time it requires to process the message.
I am not sure if the default time is 30 or 60 seconds, but if a requests does not returns during this time, IIS will abort the thread that is executing this code.
You may need to change this in confuguration files (in fact, you need to change the length of the requests allowed and the time to execute the requests).
Unfurtunatelly, I don't remember exactly where these values are.
|
|
|
|
|
Hi Paulo,
Are you suggesting increase connection timeout value of website in IIS?
|
|
|
|
|
Not connection time-out... page/method time-out.
Connection time-out means: The site executed properly, but the connection was lost.
In this case, the problem is probably due to the time the method is needing to finish it's execution, before it starts responding. But, to be sure, increase both.
|
|
|
|
|
Hi,
After creating the object for invocation of method, before invocation of the method i am setting timeout property of object around 6 mins. Please suggest whether i have increase timeout value in IIS or in web.config file.Also the data which i received from external web service is not more than 4MB.
Regadrs,
Ajay
|
|
|
|
|
Hi all,
I am using paypal payment gateway in our site. I have integrated it successfully and able to do the payments also.When I am using the credit card to pay (without using paypal acount ) I am getting the response from paypal via POST but when I am trying to do the transactions using paypal account I am not getting any response in my site .After completion of the transaction in paypal it is showing the message like payment is successful and u will be redirected within 5 seconds and it is redirecting to my site also but no values are getting posted to me. Please can any one tell me what might be the problem .Do I need to change any configurations in my business account , so that payment response will be sent to the site .
Thanks in advance
|
|
|
|
|
vnr wrote: I am using paypal payment gateway in our site.
For Thrid Party integration it always better to ask their Forum.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
We have to generate some graphs like Pic chart etc, based on data stored in sql server. We have to use C# only.
1. I am not sure what's the approach for this, I mean which control etc to be used
2. Is this requirement simple one or do we need to use some plug in?
please share if u have any sample code in C#.
|
|
|
|
|
Its Depends on your requirement that which chart control you want to use. If you are using .NET Framework 3.5 SP1 then Microsoft having there own chart Control. you can use them.
Or you can also have a look into Dundas Chart , Fusion Chart , which are Paid.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thanx, but we are using .net framework 2.0.
Is it possible in 2.0?
|
|
|
|
|
For .NET 2.0, There is no such Chart Control (Microsoft Chart Control) Available. You can go for some paid service like Dundas Chart or may have look around some open source chart control.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
You might also consider Microsoft Reports(rdlc) to make charts.
You just need to pass the dataset to the report and the report will generate a chart for you. Rdlc's are very light weight(XML) and easy enough to implement.
|
|
|
|
|
hi
i want to show the username and the date of creation in a gridview from aspnet_membership table.
how can i do this.can any body guide me.thanks...
Regards
parikshit
|
|
|
|
|
Try This :
MembershipUser memObject = Membership.GetUser();
string UID = memObject.ProviderUserKey.ToString();
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi All,
I have developed a web application and created a setup for it.But i have to make it as 15 days trail version, after 15 days it will be expired. After entering the key it will be one year version.can any one help plz me....
Regards,
Inayat Basha
|
|
|
|
|
First of all this question has bee posted here many times. Sometimes before you post you must search the forum. It looks like your requirement will be more than what you know. I suggest you get one of the commercialized component that will do this for you. this might help
http://www.devdirect.com/All/LicensingProductactivation_PCAT_1960.aspx[^]
and there is one article in codeproject
Protecting Your Software Using Simple Serial Number/Activation Key Pair[^]
Hope this Helps
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thanks..i will try this....
Regards,
S,Inayat Basha.
|
|
|
|
|
Please go through www.about.com They have created accordion in their home page in right side.
They have put alphabets along with accordion to sort.
I just want like this.
Can any body help me in this regard.
Umesh
|
|
|
|
|
You can have a quick search on Google on JQuery Accordin Control. You will find many similar of them.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|