Manual install issues

Jul 19, 2011 at 4:41 AM

Hi, I followed the instructions to deploy the nearforum code on my Windows Server 2008 with IIS7. However, I am getting the following error when i try to start it:

 

startIndex cannot be larger than length of string.
Parameter name: startIndex

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +12681631
   NearForums.Web.Routing.StrictRoute.GetRouteData(HttpContextBase httpContext) +262
   System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +370
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +75
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266


Appreciate any help.

 

I tried changing the Application pool to Framework 2.0, However it requires 4.0

Thanks,

 

Coordinator
Jul 19, 2011 at 9:23 AM

Hi Edward,

Are you installing in a IIS as sub application like http://yoursite/forum?

Is it a installation from the release or is a custom compilation?

Thanks for reporting the error.

Regards,

Jorge

Jul 20, 2011 at 6:23 PM

Yes, I am installing it as a sub-application. and it is from the latest release.

I copied the files from the web folder to my inetput/wwwroot/(application) directory

I ran the sql script on my database

I configured the Connection string on webconfig to connect to the database

Then I went to the sys.conf file and add the parameter @ since im using SQL Express 2008

Is there anything else I forgot to do?

 

Thanks

Coordinator
Jul 21, 2011 at 9:26 AM

Hi Edward,

I found it! It seems to be a bug when using subapps and using urls without trailing slashes, you should use http://yoursite/forum/

All inside links will ensure the final /, so you will not get the error from internal links... anyway we will commit a fix soon.

Thanks for reporting it, 

If you have any other problem, don't hesitate to contact us.

 

Regards,

Jorge