Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ASP.NET Web Site + Ajax Control ToolKit 4.0+ Entity Framework - unhandled exception in Windows Server 2008 R2 with 4.5 runtime

$
0
0

Hi,

We have created an ASP.Net website with Entity Framework and Ajax control toolkit 4.0. We have used VS 2010 and application is targeting .NET 4.0 runtime. The application is deployed in Windows Server 2008 R2. Application is using Windows Authentication.

Application is running fine in production environment but giving error in lower environments as following:

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

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/12/2015 4:50:34 PM
Event time (UTC): 8/12/2015 7:50:34 AM
Event ID: a7f99008818b4018a919ff5185f39b13
Event sequence: 54
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/MyApp-1-130838392697680857
    Trust level: Full
    Application Virtual Path: /MyApp
    Application Path: D:\L3\MyApp\
    Machine name: <Server Name>
 
Process information:
    Process ID: 8604
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.
   at MyApp.MyRepository.Dispose(Boolean disposing) in C:\Users\Admin\Desktop\Projects\MyApp\Repository\MyRepository.cs:line 274
   at MyApp.Business.RequestManager.Dispose(Boolean disposing) in C:\Users\Admin\Desktop\Projects\MyApp\Business\RequestManager.cs:line 366
   at MyApp.Presentation.RequestPresenter.Dispose(Boolean disposing) in C:\Users\Admin\Desktop\Projects\MyApp\Presentation\Presenters\RequestPresenter.cs:line 83
   at MyApp.Web.ViewDetails.btnSubmit_Click(Object sender, EventArgs e) in C:\Users\Admin\Desktop\Projects\MyApp\MyApp.Web\ViewDetails.aspx.cs:line 657
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information:
    Request URL: http://localhost/MyApp/ViewDetails.aspx
    Request path: /MyApp/MyApp.Web/ViewDetails.aspx
    User host address: <hostip>
    User: Test
    Is authenticated: True
    Authentication Type: NTLM
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 9
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    <StackTrace details>
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:
--------------------------------------------------------

In production, .Net framework 4.0 runtime, .Net 4.0 client profile and IIS 7.5 is installed where in lower environments VS2013 with 4.5 runtime, client profile and IIS 8.0 is installed.

We are not getting any error while receiving data from server and displaying in Ajax datagrid, but submitting data from ajax data grid is not working and resulting into above error.

I have already tried using aspnet_regiis to give access to physical path of virtual directory to IIS_IUSRS group, but it did not resolve the issue.

Please help me on this.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>