Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteException when the generation lasts for more than 5-6 minutes #54

Open
ItielBeeri opened this issue Oct 31, 2017 · 0 comments
Open

Comments

@ItielBeeri
Copy link

Exception details (from the Error List window in VS):

An Exception was thrown while processing the template. The following Exception was thrown:
System.Runtime.Remoting.RemotingException: Object '/39541794_ec36_4967_abd1_4fb2fc285fd5/alfskziedfqdqc9ooo0xv+8d_42.rem' has been disconnected or does not exist at the server.

Server stack trace:
at System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at T4Toolbox.ITransformationContextProvider.UpdateOutputFiles(String inputFile, OutputFile[] outputFiles)
at T4Toolbox.TransformationContext.Dispose(Boolean disposing)
at T4Toolbox.TransformationContext.Cleanup()
at Microsoft.VisualStudio.TextTemplatingFDF23EE9972E2D1BF77B51ED7E024487964D18418A1B3932BC3A0D48B06CD466A699D456E3BFB9E773BBAC51C6A3FFEFB80D68D0CABFF088D9E446DB439D72E8.GeneratedTextTransformation.Dispose(Boolean disposing) in (omitted file name)
at Microsoft.VisualStudio.TextTemplating.TextTransformation.Dispose()
at Microsoft.VisualStudio.TextTemplating.TransformationRunner.PerformTransformation()
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.VisualStudio.TextTemplating.IDebugTransformationRun.PerformTransformation()
at Microsoft.VisualStudio.TextTemplating.Engine.ProcessTemplateImplementation(TemplateProcessingSession session, String content, ITextTemplatingEngineHost host, String className, String classNamespace)

It seems that TransformationContextProvider should alter its lifetime service when it is created in the host's AppDomain, so it will not get disconnected so quickly (or not at all?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants