|

楼主 |
发表于 2016-8-29 09:41:08
|
显示全部楼层
终于解决了。
解决方法:
1.修改web.config文件中的
<system.web>
<compilation targetFramework="4.6"/>
<httpRuntime targetFramework="4.6"/>
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
<!-- URLModule为Justep资源URL版本过滤 -->
<add name="URLModule" type="baas.HttpModule, UrlController"/>
</httpModules>
<httpHandlers>
<add verb="*" path="/虚拟目录名/baas/*" type="baas.ActionHandler, X5BaasService, Version=1.0.0.0, Culture=neutral"/>
<!--设定虚拟目录-->
</httpHandlers>
</system.web><system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ApplicationInsightsWebTracking"/>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler"/>
<!-- URLModule为Justep资源URL版本过滤 -->
<add name="URLModule" type="baas.HttpModule, UrlController"/>
</modules>
<handlers>
<add name="TakeoutHandler" verb="*" path="/虚拟目录名/baas/*" type="baas.ActionHandler, X5BaasService, Version=1.0.0.0, Culture=neutral"/>
<!--设定虚拟目录-->
</handlers>
2.修改首页index.js文件
var Model = function() {
this.callParent();
justep.Baas.BASE_URL = "http://www.你的网站域名.com/虚拟目录名/baas";
var shellImpl = new ShellImpl(this, {
|
|