Fixed SharePoint2013.dll not found issue.
This commit is contained in:
parent
d933862a05
commit
ae97654696
1 changed files with 6 additions and 4 deletions
|
@ -306,10 +306,10 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
try
|
||||
{
|
||||
Type type = typeof (HostedSharePointServer2013Impl);
|
||||
var info = new AppDomainSetup {ApplicationBase = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory), PrivateBinPath = "bin; bin/debug"};
|
||||
Type type = typeof(HostedSharePointServer2013Impl);
|
||||
var info = new AppDomainSetup { ApplicationBase = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory), PrivateBinPath = string.Join(Path.PathSeparator.ToString(), new string[]{"bin", "bin/debug", "bin/SharePoint2013"}) };
|
||||
domain = AppDomain.CreateDomain("WSS30", null, info);
|
||||
var impl = (HostedSharePointServer2013Impl) domain.CreateInstanceAndUnwrap(type.Assembly.FullName, type.FullName);
|
||||
var impl = (HostedSharePointServer2013Impl)domain.CreateInstanceAndUnwrap(type.Assembly.FullName, type.FullName);
|
||||
|
||||
return action(impl);
|
||||
}
|
||||
|
@ -320,6 +320,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
AppDomain.Unload(domain);
|
||||
}
|
||||
}
|
||||
|
||||
throw new ArgumentNullException("action");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue