Application broke on installing locally

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Hello

I downloaded nopCommerce 1.50 with source code and placed the solution in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\nopCommerce_1.50.

I ran the project and was on step 3 of the wizard where I ask it to create a new database for me. There it crashed:

namespace UrlRewritingNet.Configuration.Provider
{
    public class UrlRewritingProviderCollection : ProviderCollection
    {
        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("provider");
            if (!(provider is UrlRewritingProvider))
            {
                string msg = string.Format("Provider must implement type {0}", typeof(UrlRewritingProvider).ToString());
                throw new ArgumentException(msg, "provider");
            }
            base.Add(provider);
        }
        public void CopyTo(UrlRewritingProvider[] providers, int index)
        {
            base.CopyTo(providers, index);
        }
        new public UrlRewritingProvider this[string name]
        {
            get
            {
                return (UrlRewritingProvider)base[name];
            }
        }
    }
}

An ArgumentException was thrown with these details "Item has already been added. Key in dictionary: 'RegEx'  Key being added: 'RegEx'".

Can you please help with installing?
13 years ago
even i am facing the same problem .. can someone help me out ????
13 years ago
Hey buddy, this is not a solution to this problem, but just to let you know, what i did is that i simply abandoned the idea of a local installation. Instead I downloaded version 1.60 and uploaded directly to my web host, where it ran smoothly.

For the remote installation I followed a video on youtube, http://www.youtube.com/watch?v=sjwWIIRZP6E&feature=related

Hopefully you will find something else helpful there.
13 years ago
Has there been a solution posed for this problem?

kokas wrote:
Hello

I downloaded nopCommerce 1.50 with source code and placed the solution in C:\Users\Administrator\Documents\Visual Studio 2008\Projects\nopCommerce_1.50.

I ran the project and was on step 3 of the wizard where I ask it to create a new database for me. There it crashed:

namespace UrlRewritingNet.Configuration.Provider
{
    public class UrlRewritingProviderCollection : ProviderCollection
    {
        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("provider");
            if (!(provider is UrlRewritingProvider))
            {
                string msg = string.Format("Provider must implement type {0}", typeof(UrlRewritingProvider).ToString());
                throw new ArgumentException(msg, "provider");
            }
            base.Add(provider);
        }
        public void CopyTo(UrlRewritingProvider[] providers, int index)
        {
            base.CopyTo(providers, index);
        }
        new public UrlRewritingProvider this[string name]
        {
            get
            {
                return (UrlRewritingProvider)base[name];
            }
        }
    }
}

An ArgumentException was thrown with these details "Item has already been added. Key in dictionary: 'RegEx'  Key being added: 'RegEx'".

Can you please help with installing?
13 years ago
easily you should remove the .sou file, then restart the project, then everything will be ok ;)
13 years ago
A quick and extremely ugly fix to get you up'n running is to add add the following:

try
{
base.Add(provider);
}
catch {}

This will make the application start.
13 years ago
The first time I installed this locally, I didn't get this error.
But when I installed another local version the second time, I did.

I did "remove the .sou file, then restart the project" and it continued and finished.

Does this need to be fixed or can I leave it alone?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.