Showing posts with label solve. Show all posts
Showing posts with label solve. Show all posts

Saturday, March 24, 2012

System.Net.WebException: The request was aborted: The request was canceled.

Hello everyone,

Can anyone help me solve this problem? I'm trying to upload files from a client side to the server side, it uploads fine for any small files under <20mb and fails any files >20mb. I have set in the server side web config for the Runtime executionTimeout="650" and the maximum size length is 100MB, it it still fails under 2 minutes from the time it starts upload to the time the request was aborted, the request was cancel. Can anyone tell me is this a timeout from the Client side or a Service side and how do I fix this timeout issue to get the upload files to the host without being timeout?

anyone?


Is the stack trace available?

I suspecting the web.config file doesn't even take effect.


minutem for replying, here is the trace log that fail to upload th large file, because the System.Net.WebException: The request was aborted: The request was canceled.

"12-04-2007 14:52:48: Uploading c:\test\AC.zip to server"
"12-04-2007 14:52:48: http://www.rsvr.com/uploadservice2.0/uploadservice.asmx/Login?uname=randd&pword=test"
"12-04-2007 14:52:53: Valid User."
"12-04-2007 14:52:53: Starting Upload:http://www.rsvr.com/uploadservice2.0/uploadservice.asmx/UploadFile?c:\test\AC.zip "
"12-04-2007 14:54:33: Upload Failed: The request was aborted: The request was canceled."
"12-04-2007 14:54:33: Upload Failed: System.Net.WebException: The request was aborted: The request was canceled.
at System.Net.WebClient.UploadFile(Uri address, String method, String fileName)
at System.Net.WebClient.UploadFile(String address, String method, String fileName)

Thursday, March 22, 2012

system.nullreferenceexception problem

can anybody solve or tell more about this problem

System.NullReferenceException: Object reference not set to an instance of an object

[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.ApplicationBlocks.UIProcess.WebFormViewManager.GetViewNameForCurrentRequest(IView currentView) +99
Microsoft.ApplicationBlocks.UIProcess.Navigator.GetControllerForView(IView view) +89
Microsoft.ApplicationBlocks.UIProcess.WebFormView.WebFormView_Load(Object sender, EventArgs e) +312
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +733

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

thanks

this is not enough info to tell you exactly what you are doing wrong, but - you are calling on a variable that you did not assign a value to. It could be something as simple as:

int a; // giving it no value

int b = a; // as you can see, you didnt *** value into a, so you are calling on a null value


this is not enough info to tell you exactly what you are doing wrong, but - you are calling on a variable that you did not assign a value to. It could be something as simple as:

int a; // giving it no value

int b = a; // as you can see, you didnt put a value into a, so you are calling on a null value


Please provide the code so we can look into the problem!

Thanks for replies.

actually i m totally new to asp.net. i have to modify an already existing project. so its more confusing bcoz i dont know very much about the actual code. the strange thing i notice that website run properly for some time at starting. and after some time it will show nothing except the system.nullreference exception on each page. does this information help to u understand the problem??

is it related to something like cache expired? i dont know abt this problem and that's why i m searching net for a solution.

thanks