This project is read-only.

how to avoid the dreaded Remoting.RemotingException

Sep 6, 2012 at 6:32 PM

Dear T4 ToolBox Developers --

Please help.

I need to know  how to avoid the dreaded Remoting.RemotingException.

This is a typical error...

Error 2 An Exception was thrown while running the transformation code. The process cannot continue.  The following Exception was thrown:System.Runtime.Remoting.RemotingException: Object '/e9919707_51b9_4880_84da_dee6f5ffedb6/dbrzwgoe3yuyszzr561_9gpx_14.rem' has been disconnected or does not exist at the server.   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.get_Errors()   at Microsoft.VisualStudio.TextTemplating.Engine.CompileAndRunCode(String generatorCode, ITextTemplatingEngineHost host, TemplateProcessingSession session) C:\Users\bgerhardi\Documents\Development\Working Directories\Evolution\Vapour\EvoImportModelConnector\UseCases\Generate Import 0 0 

This is a thread that discussed the matter in detail...

And do you happen to have a solution or workaround???

Please advise.


-- Mark Kamoski

Sep 23, 2012 at 10:14 PM


The scenario described on the VSX forum is quite extreme. Does your T4 code generator also take more than 15 minutes to execute?


Sep 23, 2012 at 10:59 PM


Sep 26, 2012 at 7:22 PM

In that case I agree with Gareth's suggestion to split up the code generator into smaller ones that don't run so long. You can create a pipeline of code generators where one creates a model for another and chain them together using the T4ScriptFileGenerator custom tool from T4 Toolbox.