无法找到该资源。 [英] The resource cannot be found.

查看:121
本文介绍了无法找到该资源。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中有一个简单的web应用程序,我在webform2.aspx中有两个页面webform1.aspx和webform2.aspx我有一个简单的段落和web form1.aspx我有简单的绑定水晶报表的方法,本地两个页面工作正常,但当我将应用程序托管到服务器时,具有简单段落的页面工作正常但是其中包含水晶报表的页面给出错误无法找到资源。意思是它改变了网址

http:// planrbme .com.pk / Repor / login.aspx?ReturnUrl =%2fRepor%2fWebForm1.aspx [ ^ ]



这样,我问主办的原因是什么提供商他们说水晶报告已启用,所有服务都启用了水晶报告。

我的web.config很简单如下





<! -

有关如何配置ASP.NET应用程序的更多信息,请访问

http://go.microsoft .com / fwlink /?LinkId = 169433

- >



< configuration>

< ; system.web>

< compilation debug =truetargetframework =4.0>





< connectionstrings>



< add name =constrconnectionstring =数据源= 72.249.151.40;初始目录= RBMECDF;用户ID = RBMECDF;密码= ytMkq3qy>

providerName =System.Data.SqlClient/>







任何人都可以帮帮我



我尝试过:



我把aspnet_Client文件夹放到我的根目录下到服务器

I have a simple web application in asp.net in which i have two pages webform1.aspx and webform2.aspx in webform2.aspx i have a simple paragraph and in web form1.aspx i have simple method for binding crystal report , locally both the pages works fine but when i hosted the application to the server the page having simple paragraph works fine but the page having crystal report in it is giving error "The resource cannot be found." mean while it changes the URL
http://planrbme.com.pk/Repor/login.aspx?ReturnUrl=%2fRepor%2fWebForm1.aspx[^]

Like that , What is the reason i have asked from hosting provider they said that crystal report is enable and all services are enabled for crystal report .
my web.config is simple like below


<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>
<system.web>
<compilation debug="true" targetframework="4.0">


<connectionstrings>

<add name="constr" connectionstring="Data Source=72.249.151.40;Initial Catalog=RBMECDF;User ID=RBMECDF;Password=ytMkq3qy">
providerName="System.Data.SqlClient" />



Can anybody help me out

What I have tried:

I have place aspnet_Client Folder into my root directory on to the server

推荐答案

这可能是一个愚蠢的假设,但我看到你的URL说/ Repor /而不是/ Report / 。



我使用过这个链接:



http://planrbme.com.pk/Report/login.aspx?ReturnUrl=%2fRepor%2fWebForm1.aspx [<一个href =http://planrbme.com.pk/Report/login.aspx?ReturnUrl=%2fRepor%2fWebForm1.aspxtarget =_ blanktitle =新窗口> ^ ]



错误从未找到500 int ernal服务器错误,如果它与服务器的配置问题,你需要回到你的托管公司即将解决,除非他们已经让你能够将服务器维持在那个级别。
This might be a stupid assumption but i saw your URL said /Repor/ instead of /Report/.

I used this link:

http://planrbme.com.pk/Report/login.aspx?ReturnUrl=%2fRepor%2fWebForm1.aspx[^]

And the error went from not found to 500 internal server error, which you would need to go back to your hosting company about to have resolved if its a configuration issue with the server, that is unless they've given you the ability to maintain the server to that level.


这篇关于无法找到该资源。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆