Inhalte aufrufen

Profilbild

SmartSrore String parameter 'relativePath' cannot be null or all whitespace

smartstore relativePath

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 rezaya2938

rezaya2938

    Newbie

  • Members
  • Punkt
  • 1 Beiträge

Geschrieben: 18 October 2016 - 11:20

Hi.

I just downloaded the source code from github.

When I open it in visual studio and run it for the first time, after installation, I get this error:

String parameter 'relativePath' cannot be null or all whitespace.
Parameter name: relativePath


Line 38: {
Line 39: if (arg.IsEmpty())
Line 40: 	throw Error.Argument(argName, "String parameter '{0}' cannot be null or all whitespace.", argName);
Line 41: }



Source File: \SmartStoreNET-3.x\src\Libraries\SmartStore.Core\Infrastructure\Guard.cs    Line: 40 

Error occurs in this line:

public string GetVirtualPath(string relativePath)
{
	Guard.NotEmpty(relativePath, nameof(relativePath));

	if (relativePath.StartsWith("~/"))
	{
		return relativePath;
	}

	return _root + relativePath.EmptyNull().Replace(Path.DirectorySeparatorChar, '/').TrimStart('/');
}

in file: \SmartStoreNET-3.x\src\Libraries\SmartStore.Core\IO\VirtualPath\VirtualFolder.cs

 

haw can I fix it?

thanks in advance...

 

 



#2 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 18 October 2016 - 18:10

This has been fixed weeks ago. Please download or clone the most current version.


Murat Cakir
SmartStore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: smartstore, relativePath