eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. 𝗹𝗶𝗻𝗸𝗲𝗱𝗶𝗻.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺, 𝘆𝗼𝘂𝘁𝘂𝗯𝗲.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺 and 𝘁𝘄𝗶𝘁𝘁𝗲𝗿 @𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and or simply 𝗦𝘁𝗮𝗿/𝘄𝗮𝘁𝗰𝗵 this repository and get notified from 𝗚𝗶𝘁𝗛𝘂𝗯
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

Office calendar module : Path cannot be the empty string or all whitespace #797

Closed isatahiri closed 3 years ago

isatahiri commented 4 years ago

Hello,

Pretty strange, after the migration to the 20.2.3, my project runs in visual studio but not in IIS in remote serer. I checked the security on folder of IIS but this is not the issue.

Does this exceltion talk to you ?

The error occurred:

Type:       ObjectCreatingException
Message:    Unable to create an instance of the "Xpand.XAF.Modules.Office.Cloud.Microsoft.MicrosoftModule" type.

Reason: "The type initializer for 'Xpand.XAF.Modules.Reactive.ReactiveModuleBase' threw an exception." Data: 1 entries 'ASPIMPERSONATING' '' Stack trace:

at DevExpress.ExpressApp.Utils.Reflection.TypeData.CreateInstance(Object[] args) at DevExpress.ExpressApp.ModuleBase.CreateModule(Type moduleType, ModelStoreBase diffsStore) at DevExpress.ExpressApp.Core.ModuleFactory.ModuleFactoryWithResourcesDiffsStore.CreateModule(Type moduleType) at DevExpress.ExpressApp.ApplicationModulesManager.EnsureModuleInList(Type moduleType, IList1 moduleList, List1 requiredModules) at DevExpress.ExpressApp.ApplicationModulesManager.AddModuleIntoList(ModuleBase module, IList1 moduleList, List1 requiredModules) at DevExpress.ExpressApp.ModuleList.RefreshRequiredModules() at DevExpress.ExpressApp.Utils.BindingListBase`1.EndInit() at PME_Affaire.Web.PME_AffaireAspNetApplication..ctor() at PME_Affaire.Web.Global.Session_Start(Object sender, EventArgs e) at System.Web.SessionState.SessionStateModule.CompleteAcquireState() at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

InnerException:

        Type:       TypeInitializationException
        Message:    The type initializer for 'Xpand.XAF.Modules.Reactive.ReactiveModuleBase' threw an exception.
        Data:       0 entries
        Stack trace:

at Xpand.XAF.Modules.Reactive.ReactiveModuleBase..ctor() at Xpand.XAF.Modules.Office.Cloud.Microsoft.MicrosoftModule..ctor() at Create_MicrosoftModule() at DevExpress.ExpressApp.Utils.Reflection.TypeData.CreateInstance(Object[] args)

        InnerException:

                Type:       TypeInitializationException
                Message:    The type initializer for 'HarmonyLib.FileLog' threw an exception.
                Data:       0 entries
                Stack trace:

at HarmonyLib.FileLog.GetBuffer(Boolean clear) at HarmonyLib.MethodBodyReader.FinalizeILCodes(Emitter emitter, List1 transpilers, List1 endLabels, Boolean& hasReturnCode) at HarmonyLib.MethodCopier.Finalize(Emitter emitter, List1 endLabels, Boolean& hasReturnCode) at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary2& finalInstructions) at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at HarmonyLib.PatchProcessor.Patch() at HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer) at Xpand.XAF.Modules.Reactive.ReactiveModuleBase..cctor()

                InnerException:

                        Type:       ArgumentException
                        Message:    Path cannot be the empty string or all whitespace.
                        Data:       0 entries
                        Stack trace:

at System.IO.Directory.CreateDirectory(String path) at HarmonyLib.FileLog..cctor() InnerException is null

apobekiaris commented 4 years ago

it relates to Harmony and from what I see in their source code it has been fixed but our dependecy is outdated. You have to wait a bit to publish to IIS at least until next lab minor

apobekiaris commented 4 years ago

add a dependency to Xpand.Patcher 2.0.27 and let me know

expand commented 4 years ago

We will try to answer all questions that do not require research within 24hr. To prioritize cases that require research we use the following labels in order. For all other issues the posting time is respected.

  1. ❇️ Exclusive-Services
    1. ❤ Bronze Sponsor
    2. ❤ Sponsor
    3. ❤ Backer
    4. Installation
    5. ShowStopper
    6. Nuget
    7. Contribution
    8. BreakingChange
    9. ReproSample
    10. Deployment
    11. must-have

This case is prioritized.

isatahiri commented 4 years ago

just tried, seems to work. Thanks

expand commented 3 years ago

Issue is deprioritized as no Assignee found and scheduled for auto-close if no activity in the next 60 days. Thanks a lot for your contribution.