Log on failed. Crystal Report 13 for Visual Studio 2010 - visual-studio-2010

I am facing a problem with Crystal Report, in the deployment Server (i.e Windows 2003 Server), my example was working in Crystal Report 10..for visual Studio 2008, but when I upgraded to the new Crystal Report 13 for Visual Studio 2010, it gives me the following error:
Error
Database logon failed.
I have used to use Typed DataSet for the ReportDocument, and from CodeBehind I set reportDocument.SetDataSource(DataTable), and it was working fine in the previews version, but in the new version it gives me the previews error.
By the way the report working fine my local pc where Visual Studio 2010 installed..
Kind Regards
Bassam Basamad

For anyone will face this problem in future.
The problem because if you run two version in the Same Application Pool, it will not work, it will give log failed, but if you create another Application pool, for the Crystal Report 13 for visual studio 2010 it will work fine.
Kind Regards

First goto the app.config file and update the code below
add like this:
<startup useLegacyV2RuntimeActivationPolicy="true">
Add the line useLegacyRuntimeActivationPolicy="true" into startup tag.

Related

SQL Server Integration Services throws "Error Starting Debugging" - Failed to start project

Several of my colleagues and I are experiencing a problem: we are trying to use the Visual Studio Business Intelligence Designer (BIDS) to create and debug SQL Server Integration Services packages. In nearly all cases, we encounter the error below.
We all have SQL Server 2008R2 Management Studio installed, which includes the Visual Studio 2008 BIDS IDE. We all have Visual Studio 2010 installed as our primary development IDE / environment, and connect to a Team Foundation Server source control.
We do not have a source control plugin selected for the BIDS IDE.
We are all running Windows 7 with all the latest service packs and patches (as far as we know- these are customer-managed machines and the patch management details are opaque to us).
The one thing that is different - maybe - between the one system where the SSIS debugger DOES work and the several where it DOESN'T work is that- MAYBE- the operable system has not been used to edit SQL Server Reporting Service RDL files, where the rest have been.
In the Project Properties dialog, under the Debugging options:
We have tried setting the "runInOptimizedMode" option to False - no joy.
We have tried setting the "Run64BitRuntime" option to False- no joy.
We have tried setting the "InteractiveMode" option to "False" - no joy.
Here is the error text as reported by the BIDS interface.
Thanks for any insights you have!
TITLE: Microsoft Visual Studio
Failed to start project
ADDITIONAL INFORMATION:
Error starting debugging. (Microsoft.DataTransformationServices.VsIntegration)
Unable to start program 'C:\Users\\Documents\Visual Studio 2008\projects\DebugTest\DebugTest\Package.dtsx'.
Operation not supported. Unknown error: 0x80040038. (Microsoft Visual Studio Debugger)
BUTTONS:
OK
Run Visual Studio as Administrator that works for me

Visual Studio 2005 Reports and Windows 7

We have recently upgraded to windows 7 and have noticed that there are compatibility issues with my previous version of MS visual Studio 2005.
From taking a look around the web I believe that this issue is due to SP1 for Windows 7. My organisation will not get rid of SP1 just for one or two developers so I need to figure out a work around.
This is the issue...
I have an old MS visual studio website that has a report located on the home. This report was created in MS VS 2005.
Other versions of Visual Studio in have are 2010 and 2012. I have tried to convert the 2005 report into 2010 and this does state that it has been converted but I still cant open or do anything with the report. My 2005 web site is too large to convert or move into 2010 and we can still maintain this 2005 site by opening this up in 2010. It just seems to be a problem with the 2005 report.
I'm running out of options to make a simple change to a report. Anyone else got any ideas? I have even tried to create this report in 2010 and then add this to my 2005 site but this doesn't work.
Regards
Betty.
You say a report and then say that it is a whole site? Why not run a second site in tandom? Make a whole new site and name it differently like
http:// (servername)/Reports2012
Then put reports there. You cannot open a converted report in a site that is for a prior version, you can view it in Microsoft Business Intelligence Studio, BIDS, which is an add on to Visual Studio. If you can upgrade but cannot view it there, there is something wrong with the language file potentially. I would then make a copy of it in the old 2005 BIDS, then take that copy and see if you can upgrade that and if it will work. If that STILL does not work you could make a test report in BIDS 2010(SQL 2012 works on VS 2010, yes weird but true) to assure you can create reports there. Many times people try to open SQL Server 2012 Reports on VS 2012 and it won't work. You need 2010 add on you can find it under All Programs>MS SQL Server 2012>SQL Server Data Tools(They made the naming very confusing as it opens up and display BIDS, but calls itself 'Data Tools' under the programs). Every other version of SSRS lines up with that year of SQL Server to that year of VS. Not 2012.
If the report upgrade still does not work, yet you can create a run a new report fine; I would suggest potentially opening up the file dircectly. Your projects in a Reports solution generally have a file '(something).rdl' that RDL is the actual file and is just XML markup of the language. This is a last resort as you are essentially trying to do manually what the upgrade is failing to do in the xml. You merely copy a working report, and then paste the parts of the old report into their correct sections. Ensure the XML is valid as well.
If you cannot manage that to work you will need to recreate the report from scratch.

SSIS Script Editor throws an exception

I have SQL Server 2012, SSIS, SSDT and Visual Studio 2010. I can create a new SSIS package and add a Script Task, but if I attempt to open the Script Editor for that Script Task I get the following error:
TITLE: Microsoft Visual Studio
------------------------------
Cannot show Visual Studio 2010 Tools for Applications editor.
------------------------------
ADDITIONAL INFORMATION:
Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Core, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (mscorlib)
------------------------------
BUTTONS:
OK
------------------------------
From my own investigation into this error, I found that Visual Studio Tools for Applications appears to be a part of MS Office 2007 and higher. This seemed like an odd dependency for to have, but I installed MS Office 2010 just for grins. It didn't change anything. What else should I try?
You will also get this error, if you are trying to debug a script task in VS 2010 and Run64BitRuntime is set to true. In order to debug, set it to false.
I was getting this error and nothing I came across corrected the problem until I logged off as my normal user and logged in as my local admin user. Once I logged in as an admin I could edit the script in my package. Once I logged back in as my regular user the edit script button worked for it too.
I assume it needed to register the assembly on the first launch and couldn't with my regular domain user.
I also got this same error when trying to open the Script Editor, but for a different reason. Not sure how it happened, but I had 3 copies of VSTA (different versions) installed. Once I removed all of them and re-installed SQL Server 2012, problem solved. Hope that helps.
For me the solution was:
close bids (I'm on 2008r2)
reopen
edit the script (it allowed me to edit it once after restarting bids)
delete all breakpoints
make a trivial change, such as adding a blank line
save
That solved it for me.
This worked for me without doing any kind uninstall.
My environment:
Microsoft Visual Studio 9.0 (2008)
Solution:
Go to cd "C:\program files (x86)\microsoft visual studio 9.0\common7\ide\"
Execute command vsta.exe /setup /hostid SSIS_ScriptTask. This will open VSTA with blank project. Let it open and then close it.
Execute command vsta.exe /setup /hostid SSIS_ScriptComponent. This will open VSTA with blank project. Let it open and then close it.
Open your solution/packages that contains the script task.
Click Edit button in Script task and it should open now. Just in case if it dont, I would suggest to keep the blank vsta of step 2 & 3 open and then click the Edit button in script task.
Took almost two hours and thankfully it worked for me. I did not have admin right to perform all that nasty uninstall and registry edit solutions.
Hope it helps someone!!!
Reference : http://blogs.msdn.com/b/jason_howell/archive/2010/08/18/vsta-setup-and-configuration-troubles-for-ssis-2008-and-r2-installations.aspx
Cannot show Visual Studio 2010 Tools for Applications editor.
Just follow the below solution:
Go to SQL Server Setup folder.
Inside that folder "redist".
Under that one more folder "VSTA".
Under VSTA folder "X86" and "X64"
Install the VSTA_RT30.
It works fine.
I figured out my problem this morning. When I uninstalled SQL Server 2012 (and the remnants of 2008 left behind when I upgraded last month) I also uninstalled 3 packages that were actually part of Visual Studio 2010. Had I not done this, a reinstallation of SQL Server 2012 would probably have done the trick, but instead I found new errors. When I reinstalled these 3 packages from the Visual Studio 2010 distribution media, everything started working.
The 3 packages in question were:
Microsoft SQL Server 2008 R2 Data-tier Application Project
Microsoft SQL Server 2008 R2 Data-tier Application Framework
Microsoft SQL Server 2008 R2 Transact-SQL Language Service

Crystal Reports in Visual Studio 2010

I just made the move to Visual Studio 2010 from 2008 and I guess I didn't do enough research before I moved. I seem to have gotten myself in quite a bind.
I knew Crystal Reports was no longer a part of 2010 but the beta was downloadable. I followed this document for deployment. My only change to this document is on the bindingRedirect element I changed the newVersion attribute value to 10.5.3700.0 because that is what is in the GAC and what was in the manifest of my 2008 project.
Unfortunately this is not working. Whenever I try to run a crystal report I get the exception :
An error has occured while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registery key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
At this point I think I am going to have to roll back and go back to VS 2008 until SAP comes out with a runtime. I can't believe there is not a work around for this as it will break so many projects that have Crystal Reports included in them.
Has anyone been able to work around this? If so, how?
Download the required package from here, install it and it will work,
Crystal Report Runtimes
Edit:
Original link no longer working. Here is this other one (http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp) from this SO answer

Visual Studio Build Fails on Configuring SQL Server 2005

I'm trying to build a setup project in Visual Studio 2005, and it is failing every time, after opening a dialog box labeled Microsoft SQL Server 2005 Tools and configuring for a few minutes. The Microsoft SQL Server 2005 Tools dialog then launches a dialog with the text Failure creating local group SQLServer2005NotificationServices$COMPUTER_NAME. I suspect this failure is because I'm not currently local admin on my machine (a situation I hope will be rectified rapidly), but I don't see why I need to configure MS SQL 2005, as my project does not use it, and in fact has no DB connectivity. How can I get past this step to a successful build?
Related:
Visual studio configures SQL 2008 on every build
Visual Studio Setup and Deployment build fails with no errors
Update: Got my admin back, but this is still taking up time to run, and I'd still like to be rid of it.
I found something about it on Microsoft Connect. Seems like it's a bug. In the reply they linked to a knowledge base article with some workarounds.

Resources