Event 1309, ASP.NET 2.0.50727.0


i have encountered event error 1309 on 3 of clients' remote desktop services (server 2008 r2) servers.

typical environment - single remote desktop services server running 4 services:

  • remoteapp manager
  • rd gateway manager
  • rd session host configuration
  • remote desktop services manager

out of our client deployments of configuration, have have 3 servers event 1309 errors.  first time happened, searched forums , kb articles find no solution.

it appears kind of permissions issue application pool: rdwebaccess

the default identity: applicationpoolidentity no longer seems have enough permissions allow rdweb function.

our workaround solution assign domain administrator account application pool identity.  that, our clients' users can log rdweb, , run application. 

but, i'm not happy workaround.  can cause permissions problem , how resolve without having use domain admin identity on application pool?

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

event code: 3005
event message: unhandled exception has occurred.
event time: 9/16/2013 9:27:32
event time (utc): 9/16/2013 1:27:32 pm
event id: c5053d16bbf34f24b69cdcae258a5d2c
event sequence: 7
event occurrence: 2
event detail code: 0
 
application information:
    application domain: /lm/w3svc/1/root/rdweb/pages-2-130238112945388829
    trust level: full
    application virtual path: /rdweb/pages
    application path: c:\windows\web\rdweb\pages\
    machine name: test
 
process information:
    process id: 5212
    process name: w3wp.exe
    account name: iis apppool\rdwebaccess
 
exception information:
    exception type: externalexception
    exception message: cannot execute program. command being executed "c:\windows\microsoft.net\framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"c:\windows\microsoft.net\framework64\v2.0.50727\temporary asp.net files\rdweb_pages\decbd09c\9f1642a3\vnpcuj0o.cmdline".
 
request information:
    request url: https://test.domain.com:443/rdweb/pages/default.aspx
    request path: /rdweb/pages/default.aspx
    user host address: 192.168.1.67
    user:  
    authenticated: false
    authentication type:  
    thread account name: iis apppool\rdwebaccess
 
thread information:
    thread id: 11
    thread account name: iis apppool\rdwebaccess
    impersonating: false
    stack trace:    @ system.codedom.compiler.executor.execwaitwithcaptureunimpersonated(safeusertokenhandle usertoken, string cmd, string currentdir, tempfilecollection tempfiles, string& outputname, string& errorname, string truecmdline)
   @ system.codedom.compiler.executor.execwaitwithcapture(safeusertokenhandle usertoken, string cmd, string currentdir, tempfilecollection tempfiles, string& outputname, string& errorname, string truecmdline)
   @ microsoft.csharp.csharpcodegenerator.compile(compilerparameters options, string compilerdirectory, string compilerexe, string arguments, string& outputfile, int32& nativereturnvalue, string trueargs)
   @ microsoft.csharp.csharpcodegenerator.fromfilebatch(compilerparameters options, string[] filenames)
   @ microsoft.csharp.csharpcodegenerator.system.codedom.compiler.icodecompiler.compileassemblyfromfilebatch(compilerparameters options, string[] filenames)
   @ system.codedom.compiler.codedomprovider.compileassemblyfromfile(compilerparameters options, string[] filenames)
   @ system.web.compilation.assemblybuilder.compile()
   @ system.web.compilation.buildproviderscompiler.performbuild()
   @ system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath)
   @ system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
   @ system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
   @ system.web.compilation.buildmanager.getvirtualpathobjectfactory(virtualpath virtualpath, httpcontext context, boolean allowcrossapp, boolean noassert)
   @ system.web.compilation.buildmanager.createinstancefromvirtualpath(virtualpath virtualpath, type requiredbasetype, httpcontext context, boolean allowcrossapp, boolean noassert)
   @ system.web.ui.pagehandlerfactory.gethandlerhelper(httpcontext context, string requesttype, virtualpath virtualpath, string physicalpath)
   @ system.web.httpapplication.materializehandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()
   @ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously)


hi,
post in windows server forum.

- error applications or specific app?
- error can occur if files in use/open in application. persist after reboot?

as per description, looks there issue iis.

firstly, check rd web connection behavior with beneath link.
http://technet.microsoft.com/en-us/library/cc731465.aspx

then on rd web access server, start iis manager.

- start > administrative tools > internet information services (iis) manager.
- server name > sites > default web site > rdweb, , click pages.
- under asp.net option, double-click application settings.
- change remote desktop web connection settings, modify values in application settings pane.
- configure default rd gateway server, double-click defaulttsgateway, enter qualified domain name (fqdn) of server in value box (terminal.jmls.edu), , click ok.

managing asp.net configuration settings using iis manager
http://blogs.msdn.com/b/carlosag/archive/2010/11/02/managing-asp-net-configuration-settings-using-iis-manager.aspx

check 32 bit application , 64 bit application, issue can notice if 32 bit applications running on 64 bit machine invalid string passed page, or sql connection timeout asp.net page.
http://community.spiceworks.com/windows_event/show/6051-asp-net-4-0-30319-0-1309

if case, refer beneath article.
http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx

apart providing thread link provide solution.
http://social.technet.microsoft.com/forums/de-de/33aa120c-1e3d-4b84-90e5-a13a3393fa9e/rd-web-access-issues-aspnet-error-30051309

hope helps!
thanks.



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS