volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

The path does not have a valid format.

I got this strange erro when I randomly started my project. I think it has something to do about the IIS 7. But I'm not sure.

 

The stack trace says:

[ArgumentException: Sökvägen har inte ett giltigt format.]
   System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) +10668470
   System.IO.Path.GetFullPathInternal(String path) +46
   System.IO.Path.GetFullPath(String path) +33
   System.Drawing.IntSecurity.UnsafeGetFullPath(String fileName) +89
   System.Drawing.IntSecurity.DemandReadFileIO(String fileName) +32
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +472338
   System.Drawing.Image.FromFile(String filename) +6
   EPiServer.Community.ImageGallery.ImageGalleryModule.LoadTag(WatermarkElement tagRow) +114
   EPiServer.Community.ImageGallery.ImageGalleryModule.LoadSettings() +675
   EPiServer.Community.ImageGallery.ImageGalleryModule.Initialize(InitializationEngine context) +77
   EPiServer.Framework.Initialization.<>c__DisplayClass5.<Initialize>b__4() +56
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +73
   EPiServer.Framework.Initialization.ModuleNode.Initialize(InitializationEngine context) +141
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +445
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +256
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +344
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +78
   EPiServer.Global..ctor() +83
   TheNonViolenceProject.Global..ctor() +42
   ASP.global_asax..ctor() +56

------------------------------------------------------------------------
HttpException (0x80004005): Ett undantagsfel har inträffat i målet för en aktivering.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9874840
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Any ideas on this? Please help me!
//Alexander
#81136
Feb 11, 2014 8:16

If you have configured watermarks for you image galleries you can check once again and verify correctness of following attribute (imageAbsoluteFilePath):

<configuration>
  <episerver.community>
    <sites>
      <site siteId="*">
        <imageGallery>
          <watermark imageAbsoluteFilePath="?">

    

 

#81141
Feb 11, 2014 8:31

I'm getting closer! When I added the "?" It says: Illegal characters in path.

I have no idea what this is about cuz I never used the watermark!

Thank you Valdis Iljuconoks!

#81142
Feb 11, 2014 8:36

 

My path in web.config is looking for:

C:\EPiServer\VPP\CleanCMS\EPiServerCommunity\Modules\ImageGallery\Originals

But I'm missing ImageGallery\Originals

So something is fucked up (y)

#81143
Feb 11, 2014 8:45
Vote:

Try to comment out watermark element. EPiServer will not try to initialize it if it does not exist.

#81144
Feb 11, 2014 8:47

Well now I'm getting exception on 

 var layoutModel = new LayoutModel.
So I'm much closer than I was before, thank you again Valdis Iljuconoks
#81145
Feb 11, 2014 8:49
error This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.