Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am running Crystal Reports at Developement Server successfully But When I publish reports at IIS. I got Following Error "bobj is undefined". I made some Changes in web.config as
HTML
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
<add key="ResourceUri" value="/crystalreportviewers13" />

This solve my problem once but latter on this error came again when I republish the code again.

Webpage error details is as given below
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.1; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.0.3705; .NET4.0C; .NET4.0E; FDM; Tablet PC 2.0)
Timestamp: Mon, 31 Oct 2011 14:42:53 UTC


Message: 'bobj' is undefined
Line: 62
Char: 3
Code: 0
URI: http://localhost/Account/ReportViewer.aspx


Message: 'bobj' is undefined
Line: 72
Char: 1
Code: 0
URI: http://localhost/Account/ReportViewer.aspx


Any Help Please.
Thanks

Azhar
Posted
Updated 30-Aug-17 0:57am
v2
Comments
Richard MacCutchan 31-Oct-11 12:30pm    
You have both filename and line number (we don't); take a look at it and see what's there.
[no name] 1-Nov-11 0:42am    
Thanks Richard for your time. I have Solved the issue. It was not Error in Code. I took 3 steps to sove the issue
1:- Copy crystalreportviewers13 Folder from C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319 And Copy it into my project Root Directory.
2:- Add
in Web.config within <sectiongroup name="businessObjects">.
3:-Add <businessobjects>
<crystalreports>
<rptbuildprovider>
<add embedrptinresource="true">

<crystalreportviewer>
<add key="ResourceUri" value="/crystalreportviewers13">



At the End of Web.config.

And then my problem was solved.
Thanks
JoelBennett 19-Apr-12 18:15pm    
What exactly did you add into your web.config?

1 solution

I add
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"></section> in SectionGroup Tag. And
<crystalreportviewer>
<add key="ResourceUri" value="/crystalreportviewers13"></add>
before </crystalreportviewer>
 
Share this answer
 
Comments
[no name] 18-Apr-14 7:19am    
Its still not working. If possible plz suggest other solution.
Member 12909278 29-Dec-18 4:16am    
Same issue for me/ I have vs 2017. I added the above all methods also. still i have not a solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900