Inhalte aufrufen

Profilbild

Getting Virtual Directory issue when upload it on godaddy hosting

hosting virtual directory URLreroute

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

#1 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 11 May 2015 - 18:57

Hello,
 
I downloaded latest version and upload it on my godaddy hosting but I am getting one issue.. I hosted it on my shared hosting plan as you know in shared hosting virtual directory we create but when I am assessing virtual directory created but I don't want it..
 
for example..
my domain name is :
 
 
It's not working giving error 
 
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at SmartStore.Web.Framework.Localization.LocalizedUrlHelper.RemoveApplicationPathFromRawUrl(String rawUrl)
   at SmartStore.Web.Framework.Localization.LocalizedUrlHelper..ctor(String applicationPath, String relativePath, Boolean rawUrl)
   at SmartStore.Web.Framework.Localization.LocalizedUrlHelper..ctor(HttpRequestBase httpRequest, Boolean rawUrl)
   at SmartStore.Web.Controllers.CommonController.PrepareLanguageSelectorModel()
   at SmartStore.Web.Controllers.CommonController.ConfigButton()
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
 
 
But when I added virtual directory name it's work.
 
 
please help


#2 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 12 May 2015 - 17:28

What exactly is responsible for the redirection from root to virtual directory? It seems this error occurs only during this redirection. Did you setup an IIS rewrite rule in the root? I need more info.


Murat Cakir
SmartStore AG


#3 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 12 May 2015 - 21:36

Yes, I added the following tag in my web.config

 

 <rewrite>
    <rules>
        <rule name="Remove Virtual Directory">
            <match url=".*" />
            <action type="Rewrite" url="{R:0}" />
        </rule>
    </rules>
</rewrite>
 


#4 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 12 May 2015 - 23:52

I'm afraid this won't work. I'm not exactly sure why though, it would take some time to figure it out. But: a URL rewrite like this one doesn't seem right to me. Why don't you host your shop in the root? Or why don't you keep it in the virtual directory?


Murat Cakir
SmartStore AG


#5 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 13 May 2015 - 19:58

On root already one website hosted... even I have also some other domains hosted with smartstore with virtual directory and they also adding virtual directory name but on old version those are working fine.. but this new version crash on virtual directory adding name in URL..

 

Please help asap... otherwise I have to move on old version that I don't want..



#6 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 13 May 2015 - 23:09

Yes, but the virtual directory is not the problem, the rewrite is the problem. You shouldn't rewrite the URL, a redirect shouldn't confuse SmartStore.NET though.


Murat Cakir
SmartStore AG


#7 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 15 May 2015 - 21:57

so please tell what code I should change in project ?/



#8 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 15 May 2015 - 23:17

In the project: nothing.

 

In IIS: get rid of your rewrite rule. I don't have insight in how your GoDaddy hosting plan works, so this is the best advice I can give you at the moment.


Murat Cakir
SmartStore AG


#9 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 17 May 2015 - 22:12

It's a shared hosting... not  a VPS... :(



#10 MaaNe707

MaaNe707

    Newbie

  • Members
  • Punkt
  • 9 Beiträge

Geschrieben: 22 May 2015 - 13:20

Please help



#11 Murat Cakir

Murat Cakir

    SmartStore AG

  • Administrators
  • 1118 Beiträge

Geschrieben: 22 May 2015 - 18:03

But I tried to help you: please remove the rewrite rule you added to your web.config and try again.


Murat Cakir
SmartStore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: hosting, virtual directory, URLreroute