Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2015-11-12 14:08:47.4633: Utils started
- 2015-11-12 14:08:52.0092: Users loaded
- 2015-11-12 14:08:52.0802: Emails AssigneeUser IssueId=747b494c-2f43-4a73-a253-9396e54c1bc5, Summary: 'удалить площадку совет судей р'
- 2015-11-12 14:08:54.8912: > SetAssigneeBuilderProcessor -> CreateMessage create message for user: 80c09aa0-9092-44a0-8cd2-d8c46237f2ef
- 2015-11-12 14:08:55.1282: > SetAssigneeBuilderProcessor -> CreateMessage message created
- 2015-11-12 14:08:55.1552: MessageBuilderProcessorBase -> CreateMessage create message for user: pavel.krasikov@roscomputing.com
- 2015-11-12 14:08:56.2822: RazorEngine.Templating.TemplateCompilationException: Errors while compiling a Template.
- Please try the following to solve the situation:
- * If the problem is about missing/invalid references or multiple defines either try to load
- the missing references manually (in the compiling appdomain!) or
- Specify your references manually by providing your own IReferenceResolver implementation.
- See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
- Currently all references have to be available as files!
- * If you get 'class' does not contain a definition for 'member':
- try another modelType (for example 'null' to make the model dynamic).
- NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
- Or try to use static instead of anonymous/dynamic types.
- More details about the error:
- - error: (117, 23) The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments
- - error: (117, 44) Argument 1: cannot convert from 'System.DateTime' to 'string'
- Temporary files of the compilation can be found in (please delete the folder): C:\Users\dmitrii.zubkov\AppData\Local\Temp\RazorEngine_wge0a4l4.we2
- The template we tried to compile is:
- ------------- START -----------
- @model RosComputing.SD.AppServices.Messages.Builder.Models.SetAssigneeModel
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title></title>
- </head>
- <body>
- <div>
- <h1>Вам назначена новая задача</h1>
- <div style="margin: 10px 0 10px 20px">
- <table style="border: 0; border-collapse: collapse; width: 90%">
- <tr>
- <td style="padding: 10px" colspan='2'>Вы назначены исполнителем по задаче: @Raw(Model.IssueLink)</td>
- </tr>
- @if (!string.IsNullOrEmpty(Model.Issue.Summary))
- {
- <tr>
- <td style="padding: 10px; vertical-align: top; width: 140px">Наименование:</td>
- <td style="padding: 10px">@Model.Issue.Summary</td>
- </tr>
- }
- @if (!string.IsNullOrEmpty(Model.Issue.Description))
- {
- <tr>
- <td style="padding: 10px; vertical-align: top">Описание:</td>
- <td style="padding: 10px">@Model.Issue.Description</td>
- </tr>
- }
- @if (!string.IsNullOrEmpty(Model.Issue.AssigneeFullName))
- {
- <tr>
- <td style="padding: 10px; vertical-align: top">Постановщик:</td>
- <td style="padding: 10px">@Model.Issue.AssigneeFullName</td>
- </tr>
- }
- @if (!string.IsNullOrEmpty(Model.Issue.Created))
- {
- <tr>
- <td style="padding: 10px; vertical-align: top">Постановщик:</td>
- <td style="padding: 10px">@Model.Issue.Created</td>
- </tr>
- }
- </table>
- </div>
- @*
- AssigneeFullName: @Model.Issue.AssigneeFullName <br />
- AreaName: @Model.Issue.AreaName <br />
- Floor: @Model.Issue.Floor <br />
- Room: @Model.Issue.Room <br />
- Created: @Model.Issue.Created
- *@
- <br />
- <br />
- ЭТО СООБЩЕНИЕ СФОРМИРОВАНО АВТОМАТИЧЕСКИ, НЕ ОТВЕЧАЙТЕ НА НЕГО!
- </div>
- </body>
- </html>
- ------------- END -----------
- The generated source code is:
- ------------- START -----------
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.33440
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace CompiledRazorTemplates.Dynamic {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- public class RazorEngine_98b2a55c4f66483b9ae334056f7f05f8 : RazorEngine.Templating.TemplateBase<RosComputing.SD.AppServices.Messages.Builder.Models.SetAssigneeModel> {
- public RazorEngine_98b2a55c4f66483b9ae334056f7f05f8() {
- }
- public override void Execute() {
- WriteLiteral("<!DOCTYPE html>\r\n\r\n<html>\r\n<head>\r\n\t<meta");
- WriteLiteral(" name=\"viewport\"");
- WriteLiteral(" content=\"width=device-width\"");
- WriteLiteral(" />\r\n\t<title></title>\r\n</head>\r\n<body>\r\n\t<div>\r\n\t\t<h1>Вам назначена новая задача<" +
- "/h1>\r\n\r\n\t\t<div");
- WriteLiteral(" style=\"margin: 10px 0 10px 20px\"");
- WriteLiteral(">\r\n\t\t\t<table");
- WriteLiteral(" style=\"border: 0; border-collapse: collapse; width: 90%\"");
- WriteLiteral(">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px\"");
- WriteLiteral(" colspan=\'2\'");
- WriteLiteral(">Вы назначены исполнителем по задаче: ");
- Write(Raw(Model.IssueLink));
- WriteLiteral("</td>\r\n\t\t\t\t</tr>\r\n");
- if (!string.IsNullOrEmpty(Model.Issue.Summary))
- {
- WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px; vertical-align: top; width: 140px\"");
- WriteLiteral(">Наименование:</td>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px\"");
- WriteLiteral(">");
- Write(Model.Issue.Summary);
- WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
- }
- WriteLiteral("\t\t\t\t");
- if (!string.IsNullOrEmpty(Model.Issue.Description))
- {
- WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
- WriteLiteral(">Описание:</td>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px\"");
- WriteLiteral(">");
- Write(Model.Issue.Description);
- WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
- }
- WriteLiteral("\t\t\t\t");
- if (!string.IsNullOrEmpty(Model.Issue.AssigneeFullName))
- {
- WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
- WriteLiteral(">Постановщик:</td>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px\"");
- WriteLiteral(">");
- Write(Model.Issue.AssigneeFullName);
- WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
- }
- WriteLiteral("\t\t\t\t\r\n");
- if (!string.IsNullOrEmpty(Model.Issue.Created))
- {
- WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
- WriteLiteral(">Постановщик:</td>\r\n\t\t\t\t\t\t<td");
- WriteLiteral(" style=\"padding: 10px\"");
- WriteLiteral(">");
- Write(Model.Issue.Created);
- WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
- }
- WriteLiteral("\t\t\t</table>\r\n\t\t</div>\r\n\r\n\t\t");
- WriteLiteral("\r\n\r\n\t\t<br />\r\n\t\t<br />\r\n\t\tЭТО СООБЩЕНИЕ СФОРМИРОВАНО АВТОМАТИЧЕСКИ, НЕ ОТВЕЧАЙТЕ " +
- "НА НЕГО!\r\n\t</div>\r\n</body>\r\n</html>\r\n");
- }
- }
- }
- ------------- END -----------
- List of loaded Assemblies:
- C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
- Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
- Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll
- Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Utils.vshost.exe
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Utils.exe
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Entities.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\NLog.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Common.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.35.Extensions.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\AutoMapper.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\NLog.Windows.Forms.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Newtonsoft.Json.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Data.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.Runtime.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll
- Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll
- Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Types\10.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.40.Extensions.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RazorEngine.dll
- Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\System.Web.Razor.dll
- at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl(TypeContext context)
- at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType_Windows(TypeContext context)
- at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context)
- at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)
- at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)
- at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)
- at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)
- at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
- at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
- at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
- at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
- at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
- at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
- at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String templateSource, String name, Type modelType, Object model, DynamicViewBag viewBag)
- at RosComputing.SD.AppServices.Messages.Builder.MessageBuilderProcessorBase`1.CreateMessage(Guid userId, MessageScheduleBase messageSchedule) in c:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD\AppServices\Messages\Builder\MessageBuilderProcessorBase.cs:line 103
- at RosComputing.SD.AppServices.Messages.Builder.Processors.SetAssigneeBuilderProcessor.CreateMessage(Guid userId, MessageScheduleBase messageSchedule) in c:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD\AppServices\Messages\Builder\Processors\SetAssigneeBuilderProcessor.cs:line 60
- at RosComputing.SD.Utils.Form1.<>c__DisplayClass30.<btnEmailsSetAssignee_Click>b__2f() in c:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\Form1.cs:line 362
- at System.Threading.Tasks.Task`1.InnerInvoke()
- at System.Threading.Tasks.Task.Execute()
- --- End of stack trace from previous location where exception was thrown ---
- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
- at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
- at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
- at RosComputing.SD.Utils.Form1.<btnEmailsSetAssignee_Click>d__32.MoveNext() in c:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\Form1.cs:line 353
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement