Advertisement
Guest User

4Антон

a guest
Nov 12th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.35 KB | None | 0 0
  1. 2015-11-12 14:08:47.4633: Utils started
  2. 2015-11-12 14:08:52.0092: Users loaded
  3. 2015-11-12 14:08:52.0802: Emails AssigneeUser IssueId=747b494c-2f43-4a73-a253-9396e54c1bc5, Summary: 'удалить площадку совет судей р'
  4. 2015-11-12 14:08:54.8912: > SetAssigneeBuilderProcessor -> CreateMessage create message for user: 80c09aa0-9092-44a0-8cd2-d8c46237f2ef
  5. 2015-11-12 14:08:55.1282: > SetAssigneeBuilderProcessor -> CreateMessage message created
  6. 2015-11-12 14:08:55.1552: MessageBuilderProcessorBase -> CreateMessage create message for user: pavel.krasikov@roscomputing.com
  7. 2015-11-12 14:08:56.2822: RazorEngine.Templating.TemplateCompilationException: Errors while compiling a Template.
  8. Please try the following to solve the situation:
  9. * If the problem is about missing/invalid references or multiple defines either try to load
  10. the missing references manually (in the compiling appdomain!) or
  11. Specify your references manually by providing your own IReferenceResolver implementation.
  12. See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
  13. Currently all references have to be available as files!
  14. * If you get 'class' does not contain a definition for 'member':
  15. try another modelType (for example 'null' to make the model dynamic).
  16. NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
  17. Or try to use static instead of anonymous/dynamic types.
  18. More details about the error:
  19. - error: (117, 23) The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments
  20. - error: (117, 44) Argument 1: cannot convert from 'System.DateTime' to 'string'
  21. Temporary files of the compilation can be found in (please delete the folder): C:\Users\dmitrii.zubkov\AppData\Local\Temp\RazorEngine_wge0a4l4.we2
  22. The template we tried to compile is:
  23. ------------- START -----------
  24. @model RosComputing.SD.AppServices.Messages.Builder.Models.SetAssigneeModel
  25.  
  26. <!DOCTYPE html>
  27.  
  28. <html>
  29. <head>
  30. <meta name="viewport" content="width=device-width" />
  31. <title></title>
  32. </head>
  33. <body>
  34. <div>
  35. <h1>Вам назначена новая задача</h1>
  36.  
  37. <div style="margin: 10px 0 10px 20px">
  38. <table style="border: 0; border-collapse: collapse; width: 90%">
  39. <tr>
  40. <td style="padding: 10px" colspan='2'>Вы назначены исполнителем по задаче: @Raw(Model.IssueLink)</td>
  41. </tr>
  42. @if (!string.IsNullOrEmpty(Model.Issue.Summary))
  43. {
  44. <tr>
  45. <td style="padding: 10px; vertical-align: top; width: 140px">Наименование:</td>
  46. <td style="padding: 10px">@Model.Issue.Summary</td>
  47. </tr>
  48. }
  49. @if (!string.IsNullOrEmpty(Model.Issue.Description))
  50. {
  51. <tr>
  52. <td style="padding: 10px; vertical-align: top">Описание:</td>
  53. <td style="padding: 10px">@Model.Issue.Description</td>
  54. </tr>
  55. }
  56. @if (!string.IsNullOrEmpty(Model.Issue.AssigneeFullName))
  57. {
  58. <tr>
  59. <td style="padding: 10px; vertical-align: top">Постановщик:</td>
  60. <td style="padding: 10px">@Model.Issue.AssigneeFullName</td>
  61. </tr>
  62. }
  63.  
  64. @if (!string.IsNullOrEmpty(Model.Issue.Created))
  65. {
  66. <tr>
  67. <td style="padding: 10px; vertical-align: top">Постановщик:</td>
  68. <td style="padding: 10px">@Model.Issue.Created</td>
  69. </tr>
  70. }
  71. </table>
  72. </div>
  73.  
  74. @*
  75. AssigneeFullName: @Model.Issue.AssigneeFullName <br />
  76. AreaName: @Model.Issue.AreaName <br />
  77. Floor: @Model.Issue.Floor <br />
  78. Room: @Model.Issue.Room <br />
  79. Created: @Model.Issue.Created
  80. *@
  81.  
  82. <br />
  83. <br />
  84. ЭТО СООБЩЕНИЕ СФОРМИРОВАНО АВТОМАТИЧЕСКИ, НЕ ОТВЕЧАЙТЕ НА НЕГО!
  85. </div>
  86. </body>
  87. </html>
  88.  
  89. ------------- END -----------
  90.  
  91. The generated source code is:
  92. ------------- START -----------
  93. //------------------------------------------------------------------------------
  94. // <auto-generated>
  95. // This code was generated by a tool.
  96. // Runtime Version:4.0.30319.33440
  97. //
  98. // Changes to this file may cause incorrect behavior and will be lost if
  99. // the code is regenerated.
  100. // </auto-generated>
  101. //------------------------------------------------------------------------------
  102.  
  103. namespace CompiledRazorTemplates.Dynamic {
  104. using System;
  105. using System.Collections.Generic;
  106. using System.Linq;
  107.  
  108.  
  109. public class RazorEngine_98b2a55c4f66483b9ae334056f7f05f8 : RazorEngine.Templating.TemplateBase<RosComputing.SD.AppServices.Messages.Builder.Models.SetAssigneeModel> {
  110.  
  111.  
  112.  
  113. public RazorEngine_98b2a55c4f66483b9ae334056f7f05f8() {
  114. }
  115.  
  116. public override void Execute() {
  117. WriteLiteral("<!DOCTYPE html>\r\n\r\n<html>\r\n<head>\r\n\t<meta");
  118.  
  119. WriteLiteral(" name=\"viewport\"");
  120.  
  121. WriteLiteral(" content=\"width=device-width\"");
  122.  
  123. WriteLiteral(" />\r\n\t<title></title>\r\n</head>\r\n<body>\r\n\t<div>\r\n\t\t<h1>Вам назначена новая задача<" +
  124. "/h1>\r\n\r\n\t\t<div");
  125.  
  126. WriteLiteral(" style=\"margin: 10px 0 10px 20px\"");
  127.  
  128. WriteLiteral(">\r\n\t\t\t<table");
  129.  
  130. WriteLiteral(" style=\"border: 0; border-collapse: collapse; width: 90%\"");
  131.  
  132. WriteLiteral(">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td");
  133.  
  134. WriteLiteral(" style=\"padding: 10px\"");
  135.  
  136. WriteLiteral(" colspan=\'2\'");
  137.  
  138. WriteLiteral(">Вы назначены исполнителем по задаче: ");
  139.  
  140. Write(Raw(Model.IssueLink));
  141.  
  142. WriteLiteral("</td>\r\n\t\t\t\t</tr>\r\n");
  143.  
  144.  
  145. if (!string.IsNullOrEmpty(Model.Issue.Summary))
  146. {
  147.  
  148. WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
  149.  
  150. WriteLiteral(" style=\"padding: 10px; vertical-align: top; width: 140px\"");
  151.  
  152. WriteLiteral(">Наименование:</td>\r\n\t\t\t\t\t\t<td");
  153.  
  154. WriteLiteral(" style=\"padding: 10px\"");
  155.  
  156. WriteLiteral(">");
  157.  
  158. Write(Model.Issue.Summary);
  159.  
  160. WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
  161.  
  162. }
  163.  
  164. WriteLiteral("\t\t\t\t");
  165.  
  166. if (!string.IsNullOrEmpty(Model.Issue.Description))
  167. {
  168.  
  169. WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
  170.  
  171. WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
  172.  
  173. WriteLiteral(">Описание:</td>\r\n\t\t\t\t\t\t<td");
  174.  
  175. WriteLiteral(" style=\"padding: 10px\"");
  176.  
  177. WriteLiteral(">");
  178.  
  179. Write(Model.Issue.Description);
  180.  
  181. WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
  182.  
  183. }
  184.  
  185. WriteLiteral("\t\t\t\t");
  186.  
  187. if (!string.IsNullOrEmpty(Model.Issue.AssigneeFullName))
  188. {
  189.  
  190. WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
  191.  
  192. WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
  193.  
  194. WriteLiteral(">Постановщик:</td>\r\n\t\t\t\t\t\t<td");
  195.  
  196. WriteLiteral(" style=\"padding: 10px\"");
  197.  
  198. WriteLiteral(">");
  199.  
  200. Write(Model.Issue.AssigneeFullName);
  201.  
  202. WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
  203.  
  204. }
  205.  
  206. WriteLiteral("\t\t\t\t\r\n");
  207.  
  208.  
  209. if (!string.IsNullOrEmpty(Model.Issue.Created))
  210. {
  211.  
  212. WriteLiteral("\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td");
  213.  
  214. WriteLiteral(" style=\"padding: 10px; vertical-align: top\"");
  215.  
  216. WriteLiteral(">Постановщик:</td>\r\n\t\t\t\t\t\t<td");
  217.  
  218. WriteLiteral(" style=\"padding: 10px\"");
  219.  
  220. WriteLiteral(">");
  221.  
  222. Write(Model.Issue.Created);
  223.  
  224. WriteLiteral("</td>\r\n\t\t\t\t\t</tr>\r\n");
  225.  
  226. }
  227.  
  228. WriteLiteral("\t\t\t</table>\r\n\t\t</div>\r\n\r\n\t\t");
  229.  
  230. WriteLiteral("\r\n\r\n\t\t<br />\r\n\t\t<br />\r\n\t\tЭТО СООБЩЕНИЕ СФОРМИРОВАНО АВТОМАТИЧЕСКИ, НЕ ОТВЕЧАЙТЕ " +
  231. "НА НЕГО!\r\n\t</div>\r\n</body>\r\n</html>\r\n");
  232.  
  233. }
  234. }
  235. }
  236.  
  237. ------------- END -----------
  238.  
  239.  
  240. List of loaded Assemblies:
  241. C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
  242. Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll
  243. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
  244. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
  245. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
  246. Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll
  247. Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll
  248. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Utils.vshost.exe
  249. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
  250. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
  251. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
  252. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll
  253. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
  254. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
  255. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll
  256. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
  257. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Utils.exe
  258. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Entities.dll
  259. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.dll
  260. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\NLog.dll
  261. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Common.dll
  262. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.35.Extensions.dll
  263. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\AutoMapper.dll
  264. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
  265. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
  266. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\NLog.Windows.Forms.dll
  267. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.dll
  268. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll
  269. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Newtonsoft.Json.dll
  270. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RosComputing.SD.Data.dll
  271. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
  272. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.Runtime.dll
  273. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
  274. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
  275. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll
  276. Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll
  277. Loaded Assembly: C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Types\10.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll
  278. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\Telerik.OpenAccess.40.Extensions.dll
  279. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\RazorEngine.dll
  280. Loaded Assembly: C:\Sources\konstantin.tyufyakin\servicedesk\trunk\RosComputing.SD\RosComputing.SD.Utils\bin\Debug\System.Web.Razor.dll
  281. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl(TypeContext context)
  282. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType_Windows(TypeContext context)
  283. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context)
  284. at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)
  285. at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)
  286. at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)
  287. at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)
  288. at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
  289. at RazorEngine.Templating.DynamicWrapperService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
  290. at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
  291. at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
  292. at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
  293. at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
  294. at RazorEngine.Templating.RazorEngineServiceExtensions.RunCompile(IRazorEngineService service, String templateSource, String name, Type modelType, Object model, DynamicViewBag viewBag)
  295. 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
  296. 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
  297. 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
  298. at System.Threading.Tasks.Task`1.InnerInvoke()
  299. at System.Threading.Tasks.Task.Execute()
  300. --- End of stack trace from previous location where exception was thrown ---
  301. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  302. at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  303. at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
  304. 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