Guys,
i have downloaded nopCommerce 4.10 Source Code and was able to run the application for the first time (configured admin user and database).
The next time when i try to run the nopCommerce 4.10 application it throws
'Invalid URI: The format of the URI could not be determined.'
This error is coming from ModifyQueryString method in nopCommerce_4.10_Source\Libraries\Nop.Core\WebHelper.cs.
public virtual string ModifyQueryString(string url, string key, params string[] values)
{
if (string.IsNullOrEmpty(url))
return string.Empty;
if (string.IsNullOrEmpty(key))
return url;
//get current query parameters
var uri = new Uri(url);
var queryParameters = QueryHelpers.ParseQuery(uri.Query);
//and add passed one
queryParameters[key] = new StringValues(values);
var queryBuilder = new QueryBuilder(queryParameters
.ToDictionary(parameter => parameter.Key, parameter => parameter.Value.ToString()));
//create new URL with passed query parameters
url = $"{uri.GetLeftPart(UriPartial.Path)}{queryBuilder.ToQueryString()}{uri.Fragment}";
return url;
}
i have also underlined the code in the ModifyQueryString method where i am getting this error.
when ModifyQueryString method is called the url parameter of this method has '/changecurrency/1', key parameter of this method has 'returnurl=%2F' and the values parameter of this method has null.
i also checked this ModifyQueryString method in previous version (nopCommerce 4.0). their this method is having different implementation and parameters.
any suggestion for fixing this error would greatly helpful
Thanks.