asp.net - .net framework execution was aborted by escalation policy because of out of memory -


i using net framework 4.0 , sql server 2012 development. there error occurring randomly while performing database operation in web application in asp.net. have call sql queries code behind file. occurring large document size greater 300kb. how increase size.

edit :

it occurring while view image files , saving binary data in database

below code got error

        int isupdateidproof = 1;         sqlparameter paraminsertidproof = null;         sqlcommand cmdinsertidproof = new sqlcommand("onboarding_insertuploadedidproof", con);         cmdinsertidproof.commandtype = commandtype.storedprocedure;          paraminsertidproof = new sqlparameter("@filecaption", sqldbtype.varchar, 100);         paraminsertidproof.direction = parameterdirection.input;         paraminsertidproof.value = txtidproofdescription.text;         cmdinsertidproof.parameters.add(paraminsertidproof);          paraminsertidproof = new sqlparameter("@filedata", sqldbtype.varbinary,1000000000);         paraminsertidproof.direction = parameterdirection.input;         paraminsertidproof.value = onboardingfiledata;         cmdinsertidproof.parameters.add(paraminsertidproof);          paraminsertidproof = new sqlparameter("@filenames", sqldbtype.varchar, 100);         paraminsertidproof.direction = parameterdirection.input;         paraminsertidproof.value = filename;         cmdinsertidproof.parameters.add(paraminsertidproof);          //execute sql command          con.open();         cmdinsertidproof.executenonquery();         con.close(); 

there not issue code. memory leakage @ database server way storing image. if using sql server project dll compressing , decompressing binary data, please check this.

to hide error, can restart sql server service. automatically refresh memory , start working fine. had same problem year back.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -