Error: Set default component failed: defpackagemng failed
ISSUE:
Error: Set default component failed: defpackagemng failed: Execute websrvmng --set-scripts --vhost-name=webmail(mewebmail) --app-name=mewebmail "--scripts=" failed: Exception has been thrown by the target of an invocation. Filename: \\?\C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\Bin\NETWebMail\web.config Error: Cannot read configuration file due to insufficient permissions In mscorlib module Exception type: System.Reflection.TargetInvocationException at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at CInternalUtils.Invoke(Object obj, String sMethod, Object[] prm, Type[] tps) at CInternalUtils.GetSection(String sSite, String sPath, String sLocation) at CInternalUtils.GetSection(Char* sSite, Char* sPath, Char* sLocation) at CIIS7SiteBase.GetModuleHandlers(CIIS7SiteBase* , Char* virtpath)
CAUSE:
This is a bug in Windows 2008/Plesk 8.x. When trying to use the MailEnable Pro component, this error is produced. Plesk is looking for a file, but there is actually a directory in it's place.
RESOLUTION
For Windows 2008 64bit Delete the web.config folder here - C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\Bin\NETWebMail
For Windows 2008 32bit Delete the web.config folder here - C:\Program Files\Parallels\Plesk\Mail Servers\Mail Enable\Bin\NETWebMail
|