object reference not set to an instance of an object in sharepoint 2013 in code

Hi all,

We facing the issue "object reference not set to an instance of an object " in user controls.

we are try to debug the code it is not hitting. This is sometimes for Postback.

Regards

VeerendraNadh

January 30th, 2015 9:06am

you need to save the variables used after postback in viewstate/session.

Also try to post the code so that we can tell you where the issue is.

--------------------------------------------------------------------------------------------------------------------------------------

Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

Free Windows Admin Tool Kit Click here and download it now
January 30th, 2015 5:27pm

Hi,
Do the following changes in the Web.config File
<SharePoint>    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="2500" StackTrace="True">            <PageParserPaths>         <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />       </PageParserPaths>

    </SafeMode>

Thanks,

February 2nd, 2015 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics