Olyx's Q&A profile
Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints
Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " hi all, I was also having the same problem after changing ...Show All
Visual Basic AddHandler causes FileNotFoundException?
I have a COM object that I'm using in a VB.NET application. When I create it, my application runs fine: Hard to guess what might be wrong with your COM component. Perhaps it just generates the wrong HRESULT return value in its implementation of IConnectionPoint.Advise(). The proper error code for "event not available" is 0x80040202, sorta close... ...Show All
.NET Development Database insert data problem
I create a new database by Visual Studio. Add table and want to use VB.NET to add data to the table. Here is my code: Dim sqlConnection1 As New System.Data.SqlClient.SqlConnection( "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\MAAMedicareDB.mdf;Integrated Security=True;User Instance=True" ) Dim cmd As New System.Data.SqlClient.SqlCommand cmd.CommandType = System.Data.CommandType.Text cmd.CommandText = "INSERT Centers (centerName, centerADD) VALUES ('USA center', 'Your house')" cmd.Connection = sqlConnection1 sqlConnection1.Open() cmd.ExecuteNonQuery() sqlConnection1.Close() MsgBox( "Run" , MsgBoxStyle.Information, "run" ) My program just run the code without error. B ...Show All
Software Development for Windows Vista DependencyProperty
I am very new to Windows WF Development so I apologize if this is a dumb question, however, it seems like this would be a common task so I thought I would ask. I am trying to create a custom activity that will allow a user to choose an item from the fabulous provider model. For the sake of reference, let's pretend I had the code for the System.Web.Security.RoleProvider class. In addition, let's also pretend that I had the code for the providers that derive from it (AuthorizationStoreRoleProvider, SqlRoleProvider, WindowsTokenRoleProvider). From my perspective right now, I'm viewing the desired output as the listed "properties" within visual studio 2005. I am trying to accomplish 2 things, and I debated placing these in 2 se ...Show All
SQL Server What is the fastest way to add new named instances to SQL 2005?
Hello SQL colleagues, I need to add 5 new named instances on a SQL Server 2005 Enterpise Edition. Is there a fast way to do it Best Regards, John YOu will have to launch the setup 5 times but you can supply the setp with an unattended setup file. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions RichTextBox - two questions.
Hi I am using 3rd party dll to receive string messages and displying them in RichTextBox. How can I limit the amount of lines to be in specific number (let's say 100) and in case 101 message arrived delete the first one and insert the new message at the bottom How can I autoscroll the scrollbar in the RichTextBox to the last message that arrived (on every message that arrived the cursor move to the first line). Thanks in advance Asaf. Yes, I that you can change the color of every line. It takes a little art but all you have to is to specficy a font class for the listview element and fillin the information for the font class. There are still limitation to what I am suggesting. The ...Show All
SQL Server Cognos Vs SSIS
We are trying to investigate the ETL tools available in the market and have narrowed down to two COGNOS - ETL (Data Manager Tool) Microsoft - SSIS Is there a comparison study out there which would help us in this process. Also a list of things we need to look out for in a ETL tool will also help. Thanks http://www.180systems.com/BI-Comparison2006.xls Looks like someone has done the research for you. Is this what you are looking for ...Show All
Visual Studio Unable to debug unmanaged C code
Hi, I have a solution in VS2005 that comprises of a main vb.net project and an unmanaged C DLL, the linkage being via dllimport. I have my vb.net project set to allow debugging of unmanaged code and my C project set as mixed, but no matter what try I cannot get the source displayed when I step into the C DLL. Any ideas You are a hero Sir!!! I had missed out turning on debug at the link level, I'd only done it at the compiler level, I now have source level debugging of my code. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Deciding where to land the main window when it's constructed
I have two monitors, one 19" CRT (main) at the right, and a 26" LCD at its left. So far, the XNA examples (the packaged one and some from people) have a tendency of making this window lie on both monitors. There's about 100 pixels laying on my left screen and the rest in the right screen. This makes it the program run VERY choppily, until I move the window fully into only one monitor. Also, while I'm accomplishing this moving task, the mouse cursor refreshes in windows about once per second, increasing the difficulty of that small task. I've tried doing: graphics.GraphicsDevice.Viewport.X = 10; graphics.GraphicsDevice.Viewport.Y = 10; but it doesn't appear as if I can. Not to hijack this thread ...Show All
Visual Studio 2008 (Pre-release) Problem with using infocard
Hi I am trying to build a service that uses infocard mode of authentication. The service uses a WsFederation binding. The problem is that when the client selects a card and sends it across the system throws an error as follows "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." Inner Exception "An error occurred when processing the security tokens in the message." Could some one tell me what the problem is.. Regards Ragu Hi Michele I am using july CTP.. but still facing the problem could help me out... Thanks and regards Ragu ...Show All
SQL Server Creating a model in Report Manager
Can anyone help me I've read the instructions on the following page http://msdn2.microsoft.com/en-us/library/ms159118.aspx about how to generate a report model from a cube. I can set up the cube as a data source but when I look at the properties there is no option to "Generate Model". I am running SQL 2005 DE SP2(CTP). The option is just not there for me. Any ideas Thanks in advance The following conditions need to be satisfied for the button to be shown: 1) you must be using a shared data source 2) the data source must point to either a SQL server database, or a SQL Server 2005 Analysis Services cube, or if using SQL Server 2005 SP2 you can also u ...Show All
Windows Forms Custom SSE settings in Prerequisites
Hi, dears! I have to add predefined password for SSE in VS2005 bootstrapper ( prerequisites ). I added new directory to C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages ( copied from "SqlExpress" directory ) and copied there all files extracted with "sqlexpr32.exe -X". I changed template.ini as needed and set in package.xml <PackageFiles CopyAllPackageFiles="true"> <PackageFile Name="setup.exe" ...instead of sqlexpr32.exe there ( the same for <commands/command> for setup.exe ) But alas no files except setup.exe appear in Release after rebuild. Do I need to add each file ( from all extracted directories ) one by one If yes why CopyAll ...Show All
SQL Server Install Sql Reporting Service - Windows 2003
Hello I need to install the SQL Reporting Service in one Windows Server 2003, my schema is: One DMZ (Servers Web with II6/Win 2003) One SQL Server (Sql Server 2000) When I install Reporting Service in the step about SQL Server Configuration the SQL Server not make de authentication, the message with the user dont have permiton! I view the SQL Log with show the problem with not use Kerberous comuniction! Tks a lot I have also faced lotz problem with reporting services. The very best one on the market in my opinion is Intelliview. It is very pricey though! You can find it here: http://www.synaptris.com/products/reporting-analytics/index.html ...Show All
Visual Studio 2008 (Pre-release) DataTemplate vs. ControlTemplate
Hello, I'm not so sure that I understand the difference between a DataTemplate and ControlTemplate. I realize that the DataTemplate renders a 'type' of data. But then why is ColumnHeaderTemplate defined using a DataTemplate resource Thanks Houman here is one from the samples http://windowssdk.msdn.microsoft.com/en-us/library/ms771489.aspx ...Show All
Visual C# namespace question
I'm new to .net and have a very basic question about namespaces. I'm using Visual Studio.Net 2003 and created a web application project using the namespace "compass" I created my startpage index.aspx in the root directory. So, when I debug and test in the browser the url in the address bar shows: http://localhost/compass/index.aspx Now, I created a sub directory "About Us" to hold the appropriate files for that section of the website. I created a webform "index.aspx" for that directory. I have an xml file that defines my site navigation. So, the url to the 'about us' section would be: /about_us/index.aspx However, when I try to view the page in my browser: http://localhost/about_us/ ...Show All
