2015-04-29 31 views
1

我正在使用.net框架4.5和angularjs在网站上开发一个应用程序。发布我的项目后,我正面临父路径问题。 我的项目是─结构定义父路径中的问题

D:\abc\ 
    ->app 
     -appdata 
     -css 
     -faltify 
     -img 
     -js 
      -controllers 
       LoginController.js 
      -services 
       LoginService.js 
    ->Login.html 

其中,app文件夹的login.html都在同一水平上。我给的LoginControllerLoginService的路径Login.html作为

<script src="../app/js/services/LoginService.js"></script> 
<script src="../app/js/controllers/LoginController.js"></script> 

,并同其他directorie的文件。 我在IIS服务器上发布它,并将Login.html设为默认页面,这样当我浏览它时,它可以显示Login.html页面。当我在本地运行应用程序时,它运行良好。但在IIS发布时,我的眉毛使用URL中使用http://localhost:8090/1后(这里1是一个记录的ID),它给出了一个错误的

HTTP Error 404.0 - Not Found 
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. 
Requested URL http://localhost:8090/1 
Physical Path C:\websites\abc\ui\1 

当我给的网址为http://localhost:8090/#/1它的工作原理fine.But我不想给# in url。我在Login.html中输入错误的路径吗?有没有解决方案?我只想使用http://localhost:8090/1访问Login.html。请帮忙。

+0

我的作品发表在'C:\网站\ ABC \ ui' –

+0

上午我给在错误的道路''? 我想它通过给 ' ' too..But它不能作品。 –

回答