개정판 5532bcc0
Fix: AssemblyName구해 dll을 로딩하도록 수정
Change-Id: I315fef04c29e9727b83b585625ce2670767dbffb
FinalService/KCOM_FinalService_DL/FinalProcess/FinalProcess.csproj | ||
---|---|---|
72 | 72 |
<None Include="FinalService.ini"> |
73 | 73 |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
74 | 74 |
</None> |
75 |
<None Include="LogProcess.config"> |
|
76 |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
77 |
</None> |
|
75 |
<None Include="LogProcess.config" /> |
|
78 | 76 |
</ItemGroup> |
79 | 77 |
<ItemGroup> |
80 | 78 |
<PackageReference Include="EntityFramework"> |
FinalService/KCOM_FinalService_DL/FinalProcess/LogProcess.config | ||
---|---|---|
4 | 4 |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> |
5 | 5 |
</configSections> |
6 | 6 |
<log4net> |
7 |
<!--<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender"> |
|
8 |
<applicationName value="ServiceStation"/> |
|
9 |
<layout type="log4net.Layout.PatternLayout"> |
|
10 |
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" /> |
|
11 |
</layout> |
|
12 |
</appender>--> |
|
13 | 7 |
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> |
14 | 8 |
<file type="log4net.Util.PatternString" value="${programdata}\FinalService\Process\Log\"/> |
15 | 9 |
<appendtofile value="true"/> |
... | ... | |
22 | 16 |
</appender> |
23 | 17 |
<root> |
24 | 18 |
<level value="All" /> |
25 |
<!-- <appender-ref ref="EventLogAppender" />--> |
|
26 | 19 |
<appender-ref ref="RollingFileAppender" /> |
27 | 20 |
</root> |
28 | 21 |
</log4net> |
FinalService/KCOM_FinalService_DL/FinalProcess/Program.cs | ||
---|---|---|
110 | 110 |
string UploadFinalDllPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "UploadFinal.dll"); |
111 | 111 |
if (File.Exists(UploadFinalDllPath)) |
112 | 112 |
{ |
113 |
//Assembly asm = Assembly.Load(UploadFinalDllPath);
|
|
114 |
Assembly asm = Assembly.LoadFrom(UploadFinalDllPath);
|
|
113 |
var name = AssemblyName.GetAssemblyName(UploadFinalDllPath);
|
|
114 |
Assembly asm = Assembly.Load(name);
|
|
115 | 115 |
|
116 | 116 |
UploadFinalAssmPath = UploadFinalDllPath; |
117 | 117 |
|
FinalService/KCOM_FinalService_DL/KCOM_FinalService/Remoting/RemFinalPDFStation.cs | ||
---|---|---|
141 | 141 |
using (KCOMDataModel.DataModel.KCOMEntities _systemEntity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
142 | 142 |
{ |
143 | 143 |
var items = _systemEntity.FINAL_PDF.Where(x => x.STATUS < 4 && x.CREATE_DATETIME >= DateTime.Today); |
144 |
|
|
145 | 144 |
foreach (var item in items) |
146 | 145 |
{ |
147 | 146 |
Notify(item.PROJECT_NO,item.ID); |
148 | 147 |
} |
149 | 148 |
} |
150 | 149 |
} |
150 |
|
|
151 | 151 |
private void TryTestFinal() |
152 | 152 |
{ |
153 | 153 |
using (KCOMDataModel.DataModel.KCOMEntities _systemEntity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
내보내기 Unified diff