how to avoid the dreaded Remoting.RemotingException

Sep 6, 2012 at 5: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 Tables.tt 0 0 

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

http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a87dfd24-06f6-46e1-a17c-2cc328a1dafb

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

Please advise.

Thanks.

-- Mark Kamoski

Coordinator
Sep 23, 2012 at 9:14 PM

Mark,

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

Oleg

Sep 23, 2012 at 9:59 PM

Yes

Coordinator
Sep 26, 2012 at 6: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.