开发者

Local paths active and causing error to web app. after publish

We're trying to publish our little web app here. I've done it several times in the past and it worked pretty well. As the tags states, its a MVC ASP.Net project coded with VS2008.

Other interns worked on that project and we tried to re-publish again and we have this error:

[IndexOutOfRangeException: Index was outside the bounds of the array.] XXXXXXX.XXXXXXXRepository..ctor() in E:\XXXXXX\YYYYYYY\ZZZZZZ\XXXXXXXRepository.vb:11 XXXXXXX.HomeController..ctor() in E:\XXXXXXX\YYYYYY\ZZZZZZ\Controllers\HomeController.vb:10

Problem is, the path pointed here E:\XXXXXXX....*Controller or *Rep is located on the LOCAL machine where the dev. is made. It's as if something was hardcoded directly in our local machines in the Rep.VB and HomeController.VB. It should point in the path where we published the whole project wich is not E:\XXX\YYY\ZZZ

Anyone ever encountered 开发者_StackOverflow中文版this ?

Thanks alot guys Have a nice day.

-Tom


That is just information about where to search error in source files, so those paths have nothing to do with error appearance, they just for debugging purposes - if you will compile from your machine, they will change, but error will not dissapear. Error message indicates, that problem is, that code tries to access array element, which is not there (let's say array has 1 element and program tries to access second one).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜