Error With Data Mining Viewer Controls In Visual Studio 2008
Nov 20, 2007
Hello:
I have a framework 2.0 winforms application that uses the data mining viewer controls. I upgraded the project to visual studio 2008 and compiled it under framework 2.0. It compiles fine, but when the form with the TimeSeriesViewer control loads, the application throws the following exception:
System.Reflection.TargetInvocationException was unhandled by user code
Message="Unable to get the window handle for the 'AxChartSpace' control. Windowless ActiveX controls are not supported."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.InitializeComponent()
at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer..ctor()
at RMS2.UI.DecisionSupport.ShowModel(String modelName, Int32 tabIndex) in C:UsersDougDocumentsRmsIIRmsIIRMS2.UIDecisionSupport.cs:line 72
at RMS2.UI.DecisionSupport.DecisionSupport_Load(Object sender, EventArgs e) in C:UsersDougDocumentsRmsIIRmsIIRMS2.UIDecisionSupport.cs:line 42
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException: System.AccessViolationException
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
InnerException:
The control is being added programatically, as in the wiinforms samples. Can anyone suggest a workaround? Thank you in advance.
We've successfully processed a large decision tree model in SQL Server 2005. When I try to view the tree in the mining model viewer, I get the following error:
TITLE: Microsoft Visual Studio ------------------------------
The tree graph cannot be created because of the following error:
'Exception of type 'System.OutOfMemoryException' was thrown.'.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.42&EvtSrc=Microsoft.AnalysisServices.Viewers.SR&EvtID=ErrorCreateGraphFailed&LinkId=20476
The link provides no other documentaiton on the error.
We're using 64-bit SQL on a Dell Workstation running XP-64 with 16GB of memory. From my view of things we aren't close to running out of memory. Since the model processed and the error occurs when viewing the model, is this a problem with Visual Studio and nont necessarily Anlaysis Services?
I receive the following error when trying to add a local database to my project.
"The data provider required to connect to the local data file could not found. The file will be added to the project but the typed DataSet associated with the file will not be generated."
I've reinstalled VS2k8, SQL Compact 3.1 and SQL Compact 3.5 on my machine and still receive the error.
Does anyone have any suggestions? I saw another similar thread about this in the VB2k8Express forum, but there were no helpful answers there. (for the curious: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2769854&SiteID=1)
I haven't used the SSCE before and so it's possible I've mistakenly omitted some required items.
I would like to use the Data Mining Web Controls which ship with the MSSQL2005 Beta 2. The installer (BetaAnalysisServicesSamples.MSI) is supposed to create a new virtual directory and should also create the DataMiningHTMLViewers.dll according to "ReadMe_Data_Mining_Web_Controls.rtf"
But the MSI only creates a few new directories with the source code and a deployment project (DMHTMLViewersSetup.vdproj) which won't open with VS2003. The solution apears to be for VS2005.
I have SQL 2005 and Visual Studio 2005 and I´m trying to install the Data Mining Web Controls. I downloaded the SQL Samples and I´m following the instructions of the "ReadMe_Data_Mining_Web_Controls.htm" file, but when I try to install de data mining web controls the setup.exe does´nt create the folder "C:Program FilesMicrosoft.AnalysisServices.DataMiningHtmlViewers " and the folder "C:Inetpubwwwrootaspnet_clientmicrosoft_analysisservices_datamininghtmlviewers ".
Then, I don´t have the file "C:Program FilesMicrosoft.AnalysisServices.DataMiningHtmlViewersMicrosoft.AnalysisServices.DataMiningHTMLViewers.dll " for using the web controls.
My problem is about using Data mining web controls in asp.net 2005. My SQL Server 2005 is not SP2. My problem is whenever i want to use desicion tree viewer in aspx page it gives me an error : "Error: Error (Data mining): The specified DMX column was not found in the context at line 1, column 69". I have populated database,model,tree,server properties in design time and connection property ( An oledb connection) by code-behind with that connection string :
microsoft.reportviewer.design for Version 12 (2014) The redistributable package is just that, and does not include this dll So Visual Studio cannot create a V12 object.
The workaround is to use V11 and patch the inserted code.
when I try to make a sqldatasource with visual studio 2008 and SQLServer 2008 . I found that there are a message that the visual studio 2008 can support only SQLServer 2005 and SQLServer 2000how to make my visual studio 2008 support SQLServer 2008
I have converted the VS 2013 WinForm project to VS 2015. Once I installed it on client, report viewer is asking for Microsoft.ReportViewer.WinForms 12.0.0.0.With VS 2013 projects Report Viewer 2012 Runtime worked fine. I haven't been able to locate anywhere newer version of Report Viewer Runtime/
I get the following error when I try to load the mining model in the mining model viewer
Query (1, 6) The '[System].[Microsoft].[AnalysisServices].[System].[DataMining].[NeuralNet].[GetAttributeValues]' function does not exist.
I get a similar error when I try to load the Load Mining Accuracy Chart
Failed to execute the query due to the following error:
Query (1, 6) The '[System].[Microsoft].[AnalysisServices].[System].[DataMining].[AllOther].[GenerateLiftTableUsingDatasource]' function does not exist.
Small problem here. I have successfully installed the Data Mining Web Controls in my pc. I can use it to display the result that i want, the problem is the expand image and collapse image did not show out in the column, by the way I can click the blank column to expand or collapse the tree node, it function completely. How can i display the expand image and Collapse image?
I've successfully created and processed a very simple neural network mining model (defined against a cube). However, when I go to the model viewer in BI studio, it displays the following error:
"Execution of the managed stored procedure GetAttributeScores failed with the following error: Exception has been thrown by the target of an invocation.Input string was not in a correct format.."
Any ideas about what's going wrong? This is with SQL Server 2005 SP1.
I am going through the data mining web control viewer tutorial and its going great. I have been able to build and setup the viewer. The problem I am having is when I publish the site out to my web server, it gives me the following error:
Code Snippet
Error: Either the user, <domain><computerName>$, does not have access to the prospectDataMining database, or the database does not exist.
When I debug this on my local machine via Visual Studio 2005, it works GREAT! It is just when I publish the site to the web server.
I have a dedicated SSAS server along w/ a dedicated web server. To test, I published the site to the SSAS server to see if it was a connection issue. I received the same error w/ a different <domain><computerName>$.
I looked at trying to put in the optional connection info for the dataMining html tree viewer properties... but apparently dont know how to do that properly. I also checked the IIS directory security and enabled Integrated security.
What am i doing wrong? ANY help is much appreciated.
I tried to find the graphs I saved from Data Mining Model Viewer, but where is it saved? As we see from the mining model viewer we could save the graphs there by clicking the 'save graph' button, but where is the graph?
Really need help for that.
Thank you very much in advance for any guidance and help for that.
This should be simple - using the server explorer I select the server and then the database that's running on that server. It lets me test the database connection at that point - which does work.
Then when I try to add the database it says -
Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0 ... The system cannot find the file specified.
So far as I can see the specified file is Microsoft.SqlServer.Smo.dll which has a current version of 9.0.242.0 and sits within the SQL Server files. That is also the version number held in the registry.
The version of SQL is 2005. The database was created using Create Database through VS 2008, .net 3.5.
Also, I installed VS 2008 first, which puts in SQL Compact. And then tried installing SQL 2005 Development which still gave the same error message. So I uninstalled SQL Compact and SQL 2005. And then did a clean install of SQL 2005 Developer. Does VS 2008 cope with this?
Is there a version 10 of SMO? Or is there somewhere within SQL or Visual Studio where it could be holding a version number of 10 for the dll? Or any other ideas?
I have recently installed Visual Studio 2008 Beta 2 on a development machine that was running SQL Server 2005 SP2a without any issues. Not I find that I can no longer run any of my SSIS packages and I keep getting the following error:
Retrieving the COM class factory for component with CLSID {7816B7A3-CD60-4539-BD38-C35AFC61F200} failed due to the following error: 80040154
Per other posts, I have reinstalled MSXML 3.0 to no avail and I have looked for every SQL Server patch I can find - I appear to have all of the latest patches for SQL Server.
I have a desktop application that uses an Access DB. Now i have converted it to Visual Studio 2008 and tried the SQL CE Edition. I wrote all the methods, create the database and the tables on the fly and seems to work really fine. The database is 20MB big, but the performance is vey bad. I mean with Access it's very fast, you actually don't see how slow it is, and with the SQL CE now, it takes 7 seconds !!!! for a few access instead of under 1 second with Access.
I can't imagine that this is normal, there must be something i am really missing in my code. Looks something like this:
Code Snippet SqlCeEngine engine = new SqlCeEngine("Data Source = URANO.sdf"); engine.CreateDatabase(); engine.Dispose(); // Verbindung öffnen sqlConnection = new SqlCeConnection("Data Source = URANO.sdf"); sqlConnection.Open(); // creating the tables here with data sqlCommand = new SqlCeCommand("SELECT ID FROM Laender WHERE Name=@Name", sqlConnection); sqlCommand.Parameters.Add("@Name", SqlDbType.NVarChar, 30); sqlCommand.Parameters[0].Value = land; sqlDataAdapter = new SqlCeDataAdapter(sqlCommand); sqlDataSet = new DataSet(); sqlDataAdapter.Fill(sqlDataSet, "Laender"); landID = "" + (((int)sqlDataSet.Tables["Laender"].Rows[0][0]) + 1);
this takes 1 - 2 seconds
btw: the whole class is static and the variables also are static.
Would it be better to load all the database tables into datasets, and only work with the datasets in memory ? Well i thought that the SQL CE Engine, would load the database into memory and be just fast. I mean we have 2 GB of memory or 1 the most of us, 20MB isn't that much.
Can I author report projects in VS Studio 2008 that I deploy to a RS2005 Report Server?
Our development staff has upgraded to VS2008 for our DLLs, Web sites, and console apps... no problem there whatsoever. But we have SQL2005... obviously, since SQL2008 appears to be along way off.
So, it seems like an obvious question... although I'm dreading the response. My experience with getting RS2005 installed and configured correctly was simply horific. In fact, so bad, I'm considering dumping RS altogether and going with a more reliable 3rd party tool... MS has truly done everything in the power to botch this one or so it would seem.
I installed Visual Studio 2008 Beta 2 Professional yesterday and now none of my SSIS packages will function. Each time I attempt to run the transform, I obtain the folloiwing error:
Retrieving the COM class factory for component with CLSID {7816B7A3-CD60-4539-BD38-C35AFC61F200} failed due to the following error: 80040154.
I have tried to apply every patch I can find for SQL Server 2005 - inclduing both the SP2 and SP2a patches. I have tried reinstalling MSXML 3.0 - nothing seems to work.
Well... As I said in other topics, I'm doing a clustering plugin for text mining. I'm facing many problems and, with your help, solving them one by one.
First of all, thanks a lot again.
Well... I've made a clustering function that is actually working very well. But I'm exporting its results to a log file I use as an algorithm trace for debugging.
My clustering method returns a vector containing information of what cluster each register belongs. For instance:
vector[0] = 1 -> The register of index 0 belongs to cluster 1.
vector[1] = 9 -> The register of index 1 belongs to cluster 9.
vector[2] = 2 -> The register of index 2 belongs to cluster 2.
...
And so on.
But... I know that none of the Navigation methods receives a structure like this one discribed above. I only use it to log the results to debug the algorithm.
But how to pass this information (what register (or test case) belongs to what cluster) to the Navigation ?
Thanks a lot again, and any help will be very appreciated.
I am trying to integrate Sql Clr with Visual studio 2005, but i am getting the following error when i try to deploy the solution:
CREATE ASSEMBLY for assembly 'SQLCLRIntegrationDemo' failed because assembly 'SQLCLRIntegrationDemo' is not authorized for PERMISSION_SET = EXTERNAL_ACCESS. The assembly is authorized when either of the following is true: the database owner (DBO) has EXTERNAL ACCESS ASSEMBLY permission and the database has the TRUSTWORTHY database property on; or the assembly is signed with a certificate or an asymmetric key that has a corresponding login with EXTERNAL ACCESS ASSEMBLY permission. If you have restored or attached this database, make sure the database owner is mapped to the correct login on this server. If not, use sp_changedbowner to fix the problem. SQLCLRIntegrationDemo
I have even set the Permission to External in the Project --> Properties --> Database tab. But still i am getting the above solution while deploying the solution.
One of the blogs suggested that the checkbox beside 'Trustworthy Database' should be checked. But i dont see any checkbase in the database tab of the Project properties.
I can't open solutions created in Visual Studio 2005 in Visual Studio 2008
--------------------------- Microsoft Visual Studio --------------------------- 'TransformFoxData.dtproj' cannot be opened because its project type (.dtproj) is not supported by this version of Visual Studio.
To open it, please use a version that supports this type of project. --------------------------- OK Help --------------------------- Does that mean it is a requirement to have SQL Server 2008 installed ( which I don't want ) to make it work in Visual Studion 2008. I just uninstalled VS 2005.
I am using VS2008 and trying to add an Image to a report (RDLC). The documentation suggests the properties window for the Image field will have a Source and a Value field. I cannot see them. Elswhere, the documentation talks about an Image Wizard. I cannot find that either.
I have added an Image to the Report's Embedded Images list. How do I add an image to my RDLC?
someone please tell me how im using primavera V5.0 (www.primavera.com) and i want to export the data from the .net to primavera and versa versa please tell me soon
I already have SQL Server Express 2005 installed from having Visual Studio 2005 installed. How can I tell if it is the SP2 edition? It probably isn't, so my next question is what is going to happen when I install Visual Studio 2008, which I will be doing in a day or two...will the install overwrite SQL Server Express 2005 with the latest edition to SP2, assuming that the latest edition will be on the Visual Studio 2008 installation discs? I have not yet used SQL Server Express, so my knowledge level with it is very weak. What I'm hoping to find out with this question is what I'll have (with respect to SQL Server Express) and the install of Visual Studio 2008. I can't even figure out how to tell what version of SQL Server Express that I now have.
It appears Microsoft has bundled SQL Server Compact Edition 3.5 SDK for C/C++ development as part of Visual Studio 2008 and is NOT available for download as an independent entity (as 3.1 SDK is).
I am thinking about installing dvd microsoft office ultimate 2007 visio before I install sql server 2005 sp2. I already have visual studio 2008 rtm pro professional vl on my vista computer. Will I have any issues doing this? Thank you
I've followed the steps in http://www.sqlteam.com/article/debugging-stored-procedures-in-visual-studio-2005 & in the MSDN for configuring and setting up debugging SQL 2005 stored procedures in VS 2008 (seems to be the same as in VS 2005). Everything works fine until I Step Into the Stored Procedure. Everything says that a yellow arrow will appear on the left and I can start going line by line. I never get the yellow arrow.
If I set a breakpoint, it is automatically disabled. The pop-up warning says, "The breakpoint will not currently be hit. Unable to bind SQL breakpoint at this time. Object containing the breakpoint not loaded." I can't find anything about this message or problem on Microsoft's site or on the web. Any assistance is appreciated.
P.S. I'm running VS 2008 Professional Edition Version 9.0.2.1022.8 RTM