vikassony's Q&A profile
Visual Studio 2008 (Pre-release) Problem looping trough IEnumerable of QueryResult
Hello I have a strange effect and wonder if someone can explain me what can cause this. var q = from a in b ...<fetchs something from database>.... System.Collections. IEnumerable e = q.Take(q.Count()); List<MyType> l = new List<MyType>(); foreach ( object o in e ) l.Add((MyType)o); The foreach gets executed one time (one object in the list) and then an EmptySequenceException is thrown. But q contains more than one object. When debugging, if I set the current execution location back to the list instanciation and continue to execute, the foreach loop gets execeuted twice, ...Show All
SQL Server error in create subscription wizard
When creating a subscription, if there is an error detected at the end - it creates the subscription but might not create the sql agent job, and it doesn't give you a chance to correct the error. e.g. in the Agent Process account I forgot to prefix the username with the domain At the end of the wizard it told me of the error, created the subscription but didn't let me go back to correct the error (and it didn't create the sql agent job). In the end it was easier to delete the subscription and create it again. Not the end of the world but hopefully the developers will fix this in time. thanks Bruce Hi, B ...Show All
Visual Studio Issue with Visual Studio 2005 Beta 2 and CISCO VPN Client
Everything works fine until I install VS 2005 Beta 2 (From DVD). After the install and reboot, my network doesn't funciton. Any attempts to change the network settings locks up. IPCONFIG from the command prompt only displays "Windows IP Configuration" on one line and the returns to the command line (No Configuration Details at all). If in uninstall the CISCO VPN Client, everything works again. But after reinstall, it does the same as before. I have figured that it is related to the CISCO VPN Client somehow. I have played around and disabled the "Deterministic Network Enhancer" on the Network Addapters. It ...Show All
Visual Studio Cannot install VS.NET 2003 on Win x64.
Hi there, I have troubles installing VS.NET 2003 (yeah, not 2005) on Windows 2003 SP1 x64 (final build). I'm seeing message that VS.NET 2003 cannot be installed on 64-bit OS (supposedly incorrect Itanium version check). At the same time I was able to install it once on one of my machines, but not on the others ... google seems knows nothing about this problem. Any ideas appreciated, Thanks a lot, -Max @ intel corp. I would contact Microsoft Product Support Services. As this forums is regarding Visual Studio 2005, there is probably not a lot the members of this forum could do. ...Show All
Windows Forms how to get the size and type of images?
hi i have a windows form . users can send their images , from that. but i want to chek the size and type of that files to be in appropriate formats. for ex. they should be able to send only .jpg files , with a defined sizes, and not else. how can i do that thank u hi michael i wrote in vb and i wanted to convert your example to vb. but i don't know how to convert this : using (Image img = new Image(imageFile)) i tried : imports(dim img as new image(imagefile)) but it's not true ...Show All
Windows Forms Set SelectedItem on DataGridViewComboBoxColumn When DataSource is Set
Hello, I am having a devil of a time setting the SelectedItem on a DataGridViewComboBoxColumn when the grid datasource is set. I have one ComboBoxColumn that is bound to an enum and it just binds the value from the db with no extra effort. I set the column datasource and the grid datasource and the grid just knows how to load the right option when it renders the grid. My problem arises on two other columns that are bound to arrays of custom objects. The datasource of the column is fine and you can see the available options when you click on the combobox, but the value associated with the custom object is not displaying as the selected ...Show All
Visual Studio Team System Seperate SQL Server instance needed for VSTS in RTM
Will a seperate instance of SQL server be required for VSTS when it is released, or could other databases run on the same instance Other DB's can run on the same instance. Right now (for upcoming beta) we also have WSS pointing to the same DB. Also Report Server is on the same instance. ...Show All
Windows Forms Same project crashes when ran from the server
Does anyone know why I can't run the same project from the server, that I did from a local copy This is my first project and I already lost the local copy once today- so I moved it to the server so there will be backups, but now it keeps crashing. I get: An unhandled exception of type 'System.Security.SecurityException' occurred in system.windows.for ...Show All
Visual C++ converting float to string and string to float
I know this is getting kinda repetitive but...how would I convert a float to a string and also a string to a float..Thanks a lot..(Code samples would be awesome). Echo: I tried your code, and it works with: Int32 i(99); cout << i.ToString() << endl; You might want to make sure you're using the Visual Studio versions of the includes. The /showIncludes compiler flag (set under C/C_+->Command Line) can be used to determine exactly which header file you're pulling in. You should get: 1>Note: including file: E:\Program Files\Microsoft Visual Studio 8\VC\include\sstream 1>Note: i ...Show All
Visual Studio Team System Beta 2 WSE 2.0 Compatibility
Is VSTS Beta2 (Framework 2.0) compatible with WSE 2.0 We are also currently investigating the issue that you have with WSE 2.0 DataSets. We will get back to you ASAP with a response. Thanks, Ali ...Show All
Smart Device Development Does cefdbk@microsoft.com work?
Hi Has anyone had any luck contacting the CE team through the cefdbk@microsoft.com email address I found this on the Microsoft site as the address to use to submit bug reports but have had no response or acknowledgement to my emails. I'm especially interested in getting some feedback on the crash bug we've found (described in my last post on http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=150144&SiteID=1 ) Is there a better email address to use to contact the CE team Or is there a "paid for" address I should be using Thanks for any (hopefully constructive) advice anyone has on this Stuart That is ...Show All
Visual Studio Tools for Office How to populate Word 2003 ComboBox / Dropdown list using VSTO C#
Hi, I am creating dynamic OLE Control ComboBox in Word 2003 using VSTO C#. After creating ComboBox I want to populate it with some values. If I use VBA then I can populate using following codelines. Dim myarray(3) As String myarray(0) = "US" myarray(1) = "AUS" myarray(2) = "UK" ComboBox1.List = myarray But in VSTO when I use following code lines: object objClass = "Forms.ComboBox.1" ; object objMissing = Type .Missing; Word. Shape myShape; myShape = Globals .ThisDocument.Shapes.AddOLEControl( ref objClass, ref objMissing, ref objMissing, ref objMissing, ref objMissing, ref ob ...Show All
.NET Development Implementing Optimistic Concurrency Control using Datasets
I have designed a data access layer in which all the updates happen using the data adapter.update(dataset) method. The problem I'm facing is that by default the 'Last In Wins' concurrency is being done. I mean the last update is potentially overwriting all the other updates done. The requirement is to implement an optimistic concurrency approach meaning that if two users A and B have datasets of table X and if User A updates the table X with his/her dataset before User B does, then in that case, when User B tries to update the table X, an error should be raised or no rows no should be updated since the actual data in the table X ...Show All
Visual Basic deleting from database
i got a button called delete and when i enter in a order id (shown in the pic) and click on delete it goes into the database find the id and the row of information and deletes it, i want some information on how i can this can be done idea anyone please You would have to use a Command object like OLEDBCommand or SQLClientCommand google deleting records ado.net vb.net I always start there because I end up finding different ways of doing the same thing and also learn other things I didn't know how to do. ...Show All
SQL Server Which Edition of Sql server can run on XP with utility to create table?
Hi everybody, Which Edition of Sql server can run on XP with utility to create table like query analyzer and enterprise manager Also for viewing the records. By the way, free or evaluation copy only for windows XP OS. Please specify details. Thanks. den2005 Thanks Mark, I would try it if it works. I'll let you know. Dennis ...Show All
