I definetely stuck here because i've tried almost everything on these posts but no luck yet.
Sepcs:
Server: Windows Server 2008 Foundation Edition (IIS7)
Client Machine OS: Windows XP Pro
Cristal Report ver: 13.0.2
Devolpment: Visual Studio 2010, Web Applications using ASPNET
Problem
I can't view reports on client machine
Background:
I installed crystal reports 13.0.2 on my server and start creating my reports on VS2010 without any problem, even if i compile the web project it works fine, it shows the reports perfectly. As you know when you do that, Visual Studio creates a virtual port to let you try your application.
But when i try to do it from the browser (not using compilation from VS2010) it is not showing reports, i don't see any errors either, even on the server it self, simply doesn't show any report.
Descrption
I have a web application using framework 4 and its under Default Website http://myserver:10000/novo/myapp/default.aspx.
Im using DefaultAppPool in Intregrated mode (also i already tried classic mode)
I copied crystalReportViewer13 directory from wwwroot\aspnet_client\system_web\4_0_30319\, to my web application directory
also, i verified that crystalreportviewers13 directory has been created under windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles
After i red SAP Crystal Reports SDK Developers Guide i did this:
on my web.config file i have these tags:
<add key="url" value="http://localhost:10000/novo/myapp/printcontrol.cab" />
<add key="resourceURI" value="~/crystalreportviewers13"
On Desing Mode, under CrystalReportViewer Properties i have PrintMode=ActiveX
And finally i've added my web site on the trusted sites on Internet Explorer and custom all features allowing to install any ActiveX control.
Everything i've done is useless still can't see reports on server or Client Machine browser.
PLEASE HELP ME OUT HERE-----I'M STUCKED, i've spent a lot of time appying some recomendation from this Forum, i don't know what else to do.
What browser? What viewer?
At work, we use both IE (and old version) and FF. With the DHTML viewer, either should work. With other viewers, if the user workstation has improper security settings, then the ActiveX viewer and/or Java Viewer may not work correctly.
In FF, there is a FireBug plug-in that I use a lot. There's a lot that you can see about web page requests, what's loading slowly, what the headers are, etc. (It's a lot more than I can use, and I actually look at it to help hack style sheets or see what sections of a page a holding up loading, more than anything else.)
I've been encountering this problem and searching and almost does the procedure stated above,
i've notice that the aspnet_client is not configure in my IIS and cannot access all files under "crystalreportviewers13".
I solve this problem by registering the aspnet in IIS using using this procedure.
register aspnet:
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_regiis -i
and done!!
my application already accessing files under "crystalreportviewers13"
thanks,
bryan
Related
I'm a little confused, since a day or 2 i've been programming with visual studio 2013 web express. i've made a C# web form (.aspx). i used to program normal html/css in Adobe Dreamweaver.
But unlike a normal .HTML document i cannot find a file to just click and open in my browser. and so i do not know how to upload my project to my hosting server. when i debug it, it shows up in my browser and it tells me it is the file with .aspx extension but when i try to manually open this file it just tells me there's something wrong with my page (incorrect code etc.)
Anyone can tell me how i do this? could not find a solution in google so i thought i'd give stackoverflow a chance :)
Thanks!
Gr.
First off, a website programmed with ASP.Net requires Internet Information Services (IIS) to run.
Visual Studio has its own built-in mini version of IIS for development, but to deploy to production you'll need a Windows Server with IIS. You should check that your hosting provider supports IIS before you do anything else.
Assuming you have IIS running, and you've configured a website in IIS with an empty directory, ready to host your project there are a couple of different options you have for deployment:
Just copy everything in the website to the server (all files & folders). This is simplest, and allows you to tweak things on the fly, but is the least secure.
Use Visual Studio's packaging and deployment utility. Not much to say here, other than read the manual.
The .aspx pages, .ascx controls, the bin folder with your .dll files, web.config, App_Themes, App_LocalResources, etc. And then you'll need to set up a new web site on IIS.
I have 2 visual studio 2010 projects that use Crystal reports ver 13.02 differently.
1 works and the other is getting an object reference not set to an instance of an object error.
The first app, I developed from the ground up as a web application, that uses several existing crystal reports and are working using the crystal reports viewer. Its is a web application project using asp.net 4.0 framework in c#.
The other project was an older VB website project that I upgraded from .net 2.0 to 4.0 and was working fine until I had to upgrade it to 13.02. This project does not use the viewer but only prints the data to the report. On my development laptop under visual studio it runs and prints fine, but not when published to both my laptop's IIS 7.5 and the server's IIS 7.5.
I get this error and have exhausted every possible option. It can't be the driver as the web applications project works fine on both my machine and the server. I'm suspicious that I will be forced to convert the project to a web applications project before an answer is found... but would prefer to find an answer to resolve it as it is.
Update
After further debugging I have discovered that the problem is the PrintToPrinter method that, again, works fine in development mode, but not when published.
Does your web.config file for the VB application have all the necessary Crystal references? I've been learning over the last few days that it's pretty quirky.
Resolved Issue
The printer really was not found, despite being there. This is because IIS does not have the same access to resources as does users, rightfully so, and access needs to be granted through either the registry entry under the default users key or security options for the printer need to be set to an IIS account to be set under the Identity option under IIS, in the application pool that the web application is using.
The complete process is also detailed at this link SAP site where the result was two fold.
I used this code snippet to loop through all available printers (I copied and pasted this from SAP, I used C# for my app and creates a list box to add) and showed them on the web page during the print process:
Dim myPrinter As String
For Each myPrinter In System.Drawing.Printing.PrinterSettings.InstalledPrinters
add to list
Next
Under the web server, through Computer Management I added the Local Service IIS id to the Print Operators group.
Under IIS, using the "Advanced Settings" of the Application Pool the web site is using, I changed the Identity field to LocalService
I verified the printer was now available by running the code snippet again and it was, then printed the report and it ran and printed fine.
It took a while to find this answer, and I could not have gotten there without the assistance provided which directed me to the answer. I hope this helps out someone else.
You need to download and install CR on you production server. *.msi
For example: CRRuntime_64bit_13_0.msi
Dear All,
please help iam hanged..i deployed my Asp.Net website in iis.but i unable to open my aspx page while i browse..but can open Html pages..i did everything..
same thing i done in vista and Xp its working fine..but while i trying to do in Windows Server2003 R2 enterprise server its not working
please help what could be the problem...
Here are some some things to check. I apologize in advance, but I don't have a server in front of me to verify some of the specifics of where things are --
1) Make sure the site is configured to use the correct version of ASP.NET. You can see the version in the Site's Properies tab.
2) If the version of .NET you need is not showing up and is installed on the server, run "regiis.exe -i" from your framework directory to register the framework with IIS.
3) If you're running this on a 64-bit server, check the Web Extensions section in IIS to make sure you "allow" whatever looks right.
I built a report in Visual Studio 2010 using Crystal Reports for .net framework 4.0
All operator machines have the runtime CR13 for .net framework 4.0 installed on their machines.
When this report is run in the application through the report viewer, I can view and interact with it. The other programmer on this project can also do this. If we log off our machines and log onto our machine under another user's network credentials, reports work just fine.
However, if we use another operators PC and pull up the report, they are prompted to provide credentials. This should not happen due to integrated security and the server field is also blank and grayed out.
Ive been fighting with this for hours and I am out of ideas. It works on the dev machines but not on operator machines and they have crystal reports 13 for .net framework 4.0 runtime installed, the same one used to build these reports.
Anybody have any ideas, i'll try anything at this point...
So far I've tried:
Logging in as others on my machine, everyone works on my machine
Giving users full permissions on the database, no luck
Manually creating a connection in the code to set to my crystal report viewer to try to force this to work, no luck there
I'd guess that the problem the connection string of the report. Is set to integrated authority? Try setting up a Report Only type user with select rights to the appropriate tables, and setting the connection string to use that login explicitly.
Edit - Are you connecting to an Oracle database? Make sure your drivers are up today, I've had huge headaches from that in the past.
I had to create ODBC connections rather than using OLEDB. Problem was solved 100%, although I don't think my network admins liked having these added to all the machines in the department.
I'm trying to run a freshly created ASP.NET Website using C#, however when I do so it launches FireFox and attempts to connect to http://localhost:1295/WebSite1/Default.aspx (for example), but after about 10-15 seconds it displays a "Connection Interrupted - The connection to the server was reset while the page was loading." Error.
This issue is also present with older ASP.NET C# pages/Web Services I've built in the past, nothing is actually running off the ASP.NET Development server.
I am using: Windows XP Pro SP2, Visual Studio 2008
For reference I have SQL Server 2005 Developer Edition installed as well.
I have tried:
Browsing it with IE instead of Mozilla
Trying 2.0 framework instead of 3.5
Reinstalling Visual Studio 2008
This problem seems so trivial the more I think about it, but I havn't been able to work it out just yet! Appreciate any help on the matter.
I had the same problem, and when I was about to quit and run away and join a monastry I had an idea to check ELMAH - maybe it had caught it...
Sure enough, ELMAH told me it had caught this:
System.Web.HttpException (0x80004005): Maximum request length exceeded.
and this fixed it:
<system.web>
<httpRuntime maxRequestLength="65535" />
</system.web>
Good luck,
Dave
When you launch the application, a little info mark appears at the right bottom of your screen telling you that the local web server was started and on wich port. You should compare that port to the one that appears in your browser. If they are different, an anti-virus could be responsible for that problem.
Another place to look is your host file. Some software tweak this file and can make your localhost disbehave.
Something like Fiddler or another proxy like server could cause this issue if local addresses are proxied.
You can check this under Control Panel/Internet Options - Connections Tab, Click LAN Settings down the bottom.
Try adding "127.0.0.1 localhost" before the line reading "::1 localhost"
in c:\windows\system32\drivers\etc\hosts
This worked for me (VS2008, Vista Ultimate)
I had a similar problem on Windows 7 RC and Visual Studio 2008 SP1. Changing localhost to 127.0.0.1 helped. Similar to the hosts file solution, but doesn't require the file editing, you just need to change the project startup url.
I've the same problem, just instaled VS 2008 in a Vista Business machine. I have a LAN, but no proxy server and the c:\windows\system32\drivers\etc\hosts" with "127.0.0.1 localhost" are there. but none of my projects work, neither new ones.
"I had a similar problem on Windows 7 RC and Visual Studio 2008 SP1. Changing localhost to 127.0.0.1 helped. Similar to the hosts file solution, but doesn't require the file editing, you just need to change the project startup url."
This solution is working fine.......