Ido Ran's Q&A profile
Windows Forms MSDataSetGenerator failed
Working with TableAdapter and MSDataSetGenerator and having recurring problems with an error: "The custom tool 'MSDataSetGenerator' failed. Failed to generate code. Object reference not set to an instance of an object." This error is intermittent and occurs when adding an Insert query. Sometimes, especially after rebooting, I can create the query and it all works. I can then go back to add another query and I get the error. The designer.vb file is deleted as it tries to regenerate. If I comment out the <DbSource> ... </DbSource> XML in the xsd file for the queries and 'Run Custom Tool', the designer.vb file is regenerated fine. Activate the commented out query again and I get the error again. If I have s ...Show All
Visual Studio Team System TFS Project & Report Server ERrors
When I create a new TFS Project, the Reporting Services component that retrieves "Remaining Work" and "Bug RAtes", etc errors with a message The path of the item "//Sites/MyTracker/Remaining Work" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath) The path of the item "//Sites/MyTracker/Bug Rates" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. (rsInvalidItemPath) What can I do to fix this Hi Randy, The steps below are to verify that the base URL to the reporting server is correct in TFS. - Log ...Show All
Visual Basic FormClosing Event
Hi there. I have an inherited form hierarchy where the root form captures the FormClosing event, which then invokes a overriden "FormClose" method. The overriden method correctly determines the value of the e.cancel attribute and passes it back to the root FormClosingEvent handler. However, when e.cancel = true the form closing event is not canceled and the form closes anyway. The root form, and all it's children, are children for a MDI form. Can anyone tell me why e.cancel = true in the case doesn't prevent the form from closing Thanks. Here is the declaration of the FormClosing Event handler: Private Sub StandardUIForm_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEve ...Show All
Visual Studio Team System sqlservr.exe eating available resources during a loadtest
Whe I run a load test and have my storage type set to database I notice that the process sqlserv.exe starts using memory at an alarming rate. I just ran a test and notices that sqlservr.exe is using over 400,000 k of memory. If I set storage type to none I consume much less memory but am unable to view past results. This also prevents me from running with very many virtual user (can't run with more than 50 for ten minutes) for any amount of time. What can be done to fix this problem Chuck, This is the default behavior for SQL server and you might post on a SQL forum regarding ways to limit their memory usage. SQL will use available memory until the system tells it that it needs the memory for other pro ...Show All
Windows Forms Datagridview in MDI
I created a form that housed a datagridview, handled all the datagridview events that I needed to handle and got everything working, when the form stands alone,SDI, however when I do this My .Forms.formWithDataGridViewthatwasworking.MdiParent = Me My .Forms.formWithDataGridViewthatwasworking.Show() where Me is the MDI form where I would like to house formWithDataGridViewthatwasworking,but the datagridview housed in formWithDataGridViewthatwasworking not longer behaves as expected, when, however I do this My .Forms.formWithDataGridViewthatwasworking.Show( Me ) everything works as expected. Just for clarity, In the above I specfiy the MDI form, Me, to 'own' formWithDataGridViewthatwasworking, I would however like to get ...Show All
SQL Server Upload a Sql website to a host server
Hi I have built a site in Visual Web developer Express 2005. it works fine on my local machine but when I load it up to the server I get the following error message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) My connectionstring in my web config file: < add name = " ConnectionString " connectionString = " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True " providerName ...Show All
.NET Development strange Thread-pool behavior behind WebService
since a few day's i'm running around the problem that I stocked with a change i need to do. hopefully somebody here can give me a tipp which will be usefull to solve my problem. I'm using a thread-pool within my WebSite which done some requests to several interfaces the readed data will be added to the cache. This operations consumes much CPU and I want to have this outside my website so i decided to change the flow. It should looks now like this: User Request -> Internal Call to DB to read needed Interfaces to Invoke -> Create Base Shared Cache Object and Add it to Shared Cache -> Call the WebService -> Navigate to Result page Thr result page will trigger the Website and the Code Behind triggers the shared Cache to ...Show All
Visual Studio Express Editions How to get another websites IP address in Visual Basic
Hi there, I am currently working on a HOST File editor project in Visual Basic, where the user has to enter the word they want mapped to a certain IP address of a website. However, as many users won't know what an IP address is, nor how to get it, I was wondering if there is any way to retrieve the IP address of a website. I'm guessing it will involve using Domain Name servers right Any help will be much appreciated, RichardHarley I would think something like: Dim hostInfo As IPHostEntry = Dns.GetHostByName(hostString) Console.WriteLine(( "Host name : " + hostInfo.HostName)) Console.WriteLine( "IP address List : " ) Dim index As Integer F ...Show All
Windows Live Developer Forums Need help on makeing a Media Player.
I need some help on may be finding something that can make a media player, i've called the sopport number about it, and i dicided to come here, and see if i can get more info. thanks. This is not the right forum for questions about media players, you should probably check this site out: http://msdn.microsoft.com/windowsmedia/ or this forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=387&SiteID=1 nate ...Show All
Visual Studio crystal report problem
I have developed a windows Application using VS2003 (C#.NET). All of its reports were built under crystal report version 8.5. my clients give me a licenced copy of crystal report 11. After configuring client pc using .net framework 1.1 and crystal report 11(licenced copy ) i am unable to run the reports. while i run the forms containing crystal reports i found the following message: File or assembly name CrystalDecisions.Shared, or one of its dependencies, was not found. its detail part contains: ************** Exception Text ************** System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Shared, or one of its dependencies, was not found. File name: "CrystalDecisions.Shared" at VATSysDes ...Show All
Office Live Development Caching and crunching your JS Files on Office Live
Office Live has a handler that does both caching and crunching/compression of javascript JS files hosted on our servers. But caching JS files can prevent developers from seeing their changes real-time while they are updating code. And crunching can make debugging script more difficult to read too. So we’ve developed a few techniques to deal with our JS file caching and crunching and want to share them with you. Circumvent JS file caching The easy way to avoid caching of your JS files is to rename the file extension to something different, for example JSN or JSX. But if you are using a nice JavaScript editor like SharePoint Designer, you want to keep the advantages of intellisense, auto-complete and code ...Show All
SQL Server query engine error
Can anyone tell me why I am getting this error when I try to view my report: Query Engine Error: '21000:[Microsoft][ODBC SQL Server Driver][SQL Sever] Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=,>,>= or when the subquery is used as an This is a problem in the SQL-query. Like the error says, the query has a subquery that returns multiple values (more than one row and column). Subqueries like that can't be in the column list or after the listed operators. Make sure that the subquery returns only one value. For example, next query won't work, as the subquery would return many rows (assuming there are many rows in the Suppliers-table): SELECT Pr ...Show All
Visual Studio 2008 (Pre-release) Binding TreeView to Relational DataSet
alslamo alikom... i have a dataset with two tables..and they have a relation between them...which indecates the master table and the details table...the question is that i want to view those two tables in a tree view where the details table construct the leaf items...and the master table constructs the parent items...all that using code... i did the following and i don't know how to complete... -------------------------------------------------------------- TreeView MyTreeView = new TreeView(); GlobalDataSet.Tables.Add(ParentTable); GlobalDataSet.Tables.Add(ChildTable); GlobalDataSet.Relations.Add(ParentTable.Columns["ID"], ChildTable.Columns["ParentID"]) Bin ...Show All
Visual Studio Express Editions how to retrieve data from a database and put it into a variable
Hi all... I am trying to retrieve data from a database and put it into a variable. If the data in the databasetable looks as follows: Number Kredit 1 10000 2 99998 3 99996 4 99994 How do I retrieve the data "in red font", and put it into a variable Dim Variable as integer Private Sub Form1_Load Vaiable = (Last entry into collumn "Kredit") End sub Im sure this is fairly simple, but I just cant figure it out... so any help will be greatly appreciated.. I just started looking at sql-databases today, so if any of you have some links to good beginners guides, those would be appreciated too... Thanks... SImple mistake...it should be syste ...Show All
Windows Forms Dragging and Dropping an Object
Hi guys, I'm trying to determine if it is possible to drag and drop an object between two controls. I have a class called AudioTrack which inherits ListViewItem so that it can go straight into a listview. It has strings for the Artist and Title, and a byte array for the track data itself. I have another control (a player) which can load an AudioTrack class and play it. Is it possible to drag the AudioTrack from a ListView onto the control, and have all the data intact I've already got it starting the dragdrop operation, but can't get the player to accept it - I'm getting stuck in the DragDrop event at e.Data.GetData() and don't know what to put as the format. Hope you can help! Regards, Graham What I've done in ...Show All
