We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8105840 commit ebbee96Copy full SHA for ebbee96
eFormAPI/eFormAPI/App_Start/WebApiConfig.cs
@@ -52,9 +52,17 @@ public class EformAssembliesResolver : DefaultAssembliesResolver
52
{
53
public override ICollection<Assembly> GetAssemblies()
54
55
- var path = System.Web.Hosting.HostingEnvironment.MapPath("~/Plugins");
56
- if (path == null)
+ var path = System.Web.Hosting.HostingEnvironment.MapPath("~/plugins");
+ try
57
+ {
58
+ Directory.CreateDirectory(path);
59
+ } catch
60
61
+ throw new Exception("Unable to create directory for plugins");
62
+ }
63
+
64
+ if (path == null)
65
66
throw new Exception("Plugin path not found");
67
}
68
var assemblies = new List<Assembly>(base.GetAssemblies());
0 commit comments