我在我的MVC Web应用程序中使用StimulSoft Ver:2015.2 我在我的视图中使用此代码:
@Html.Stimulsoft().RenderMvcViewerScripts();
<div>
@Html.Stimulsoft().StiMvcViewerFx(options: new StiMvcViewerFxOptions
{
Theme = StiThemeFx.Office2013,
Actions =
{
GetReportSnapshot = "GetReportSnapshotForPeriodic",
// ViewerEvent = "ViewerEvent",
//Interaction = "Interaction",
//DesignReport = "GetReportTemplate"
},
Appearance =
{
},
Toolbar =
{
ShowParametersButton = true
}
})
</div>
当我运行应用程序时,它在LocalNetwork中正常工作,但是当我使用microtech将我的Valid Ip重定向到我的本地并且我从有效的IP运行网站时它会出现以下错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
Infact GetReportSnapshot = "GetReportSnapshotForPeriodic"
,在端口8818或任何其他端口的服务器上找不到
如何使用相同的IP和端口重定向到Getreportsnapshot?
答案 0 :(得分:2)
如果更改服务器,则应使用UseRelativeUrls选项。
<?php
namespace Application\Controller;
use Application\InputFilter\Create;
use Application\InputFilter\Update;
class UserController{
public function updateAction()
{
$inputFilter = new Update\UserInputFilter();
//... etc
}
public function createAction()
{
$inputFilter = new Create\UserInputFilter();
//... etc
}
}