Rakesh Bhardwaj's Q&A profile
SQL Server Messages in the sys.transmission_queue for a disable queue
I may have a misunderstanding of how SB works, but this seems like a problem. If a queue is disable (i.e. status = off) and a message is sent to the queue the message is placed on the sys.transmission_queue. Once the queue is enabled I thought the messages were sent to the queue in the order they were placed on the sys.tranmission_queue I have been troubleshooting a problem and this is not the case. Do I have a misunderstanding of how the sys.transmission_queue works The queue has retention turned off. If you have a scenario where you want to send a message to a service broker queue that updates a row in a table and then later you would like to send another message to do another update to the row in the same table and the ...Show All
.NET Development Global Caching
I've a windows application which connect to SQL server every second and gets data. Many user uses this application and it put lots of stress on the SQL server. So I would like to use Caching for this. What I like to do is, run an application which connect to SQL server, fills a dataset and caching it, another application that all other users use and get the data from the cache already created by the other appln and not from SQL server. Is it possible with Visual Studio 2005. Please let me know how with example Thanks, Antony Yes you can, I've done this with a windows app recently. My win app connects to a service that runs on the application server. The service contains my DAL code and handles al ...Show All
Visual Studio Express Editions Publish error
Hi, Well it's not really a publish error, but the thing is that when I want to install a game I made, on an other computer it won't let me, well it does install it but it doesn't actually run when I try to run the game it just brings up a windows error (you know that "send error" or "don't send error" type), however if I install it in my computer it works just fine. So any ideas of what the problem is Thanks in advance Are you using DirectX for the game... if so it is common that people publishing Managed DirectX games forget to make sure that the current version of the mdx system is installed. You have to make sure that you match the runtime with the version of the sdk t ...Show All
.NET Development .Net supporting Operating Systems
Hi, Now I using windows 98SE. I want to install .Net in this Operating system. It is support for .Net. Thanks, Kumaresh. System Requirements for Installing the .NET Framework 1.0 and 1.1 . System Requirements for Installing the .NET Framework 2.0 . System Requirements for Installing the .NET Framework 2.0 SDK . ...Show All
Visual C# Saving Music Files
I have a Media Player that I made but I can't figure out the streaming involved with saving the music that is currently playing on the player. I can play music with my player but I can't save it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace Media_Player { public partial class Main : Form { public Main() { InitializeComponent(); } private void openMediaToolStripMenuItem_Click( object sender, EventArgs e) { openFileDialog1.ShowDialog(); WindowsMediaPlayer.URL = openFileDialog1.FileName; } private ...Show All
Commerce Server Server Error in '/OrdersWebService' Application.
We are receiving the following error when trying to browse to ./orderswebservice/orderswebservice.asmx. Any thoughts as to what can be the issue ------------------------------ Server Error in '/OrdersWebService' Application. Howard, Open up Commerce Server Manager and expand the Commerce Sites node corresponding to the site you've unpacked and make sure you've unpacked the profiles resource (look under site resources, and there should be a profiles resource referencing a global resource. If what I've just described doesn't match what's on your screen, you need to unpackage these resources again from the PUP file. ...Show All
.NET Development Passing SecureString to a web service
Hi there, I am building a windows forms client application that is attempting to send a custom soap header to a web service. The custom soap header is defined in the Service.cs of the web service as follows: public class AuthHeader : SoapHeader { public String userName; public System.Security.SecureString passwd; } The web service class exposes an AuthHeader member as a public field like so. public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); } public AuthHeader sHeader; // Rest of the class .... } It is necessary to pass in credentials for impersonating the user logged on to the client application ...Show All
Visual Studio Team System Deleted Team Foundation Licensed Users
Help! I inadvertantly deleted my TFSSETUP user from this group, and no other users were added. Now I cannot open my TFS because I have no licensed users. Anyway around this p.s. It is a new install with no team projects setup, so if worse case, I can re-load Thanks in advance I did a similar boneheaded thing and through the tfsservice (tfssecurity ) command line utility I found that tfsservice was still there and I logged in to the box as that account and was able to add accounts back. To me this was preferrable to reinstalling / repairing. The command line is something like: tfsservice /m adm: I'm don't have access to the tfs box from home so can't give the exact syntax. EDIT: Now I ...Show All
Windows Live Developer Forums .Net 2.0 & Live Messenger Co-Existence Issues
I have windows xp SP2 desktop with .Net 2.0 & VS 2005. After spending a lot of time i have found that all .Net 2.0 applications stop working once i install Live Messenger. Once i uninstall Live Messenger everything is fine. I couldn't believe myself so i tested it on a different machine the same problem occurs. Does anybody seem to face similar problem How could we fix this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .fbx vs. .x
1) I've had virtually no luck getting the output of the AutoDesk convert-to-fbx tools to load into XNA successfully. Judging from the AutoDesk conversion tools, there are a number of .fbx variants in play. Maybe I'm converting to the wrong flavor of .fbx. Which variant does XNA like the best 2) In general XNA seems to like .x models better than .fbx models. What editors beside Blender produce .x directly Thanks for any insight. Cheers, Scott What is the symptom you are seeing Is there an error message when loading the model, or are you just unable to see the model when drawing it ...Show All
Visual Studio 2008 (Pre-release) problem in consuming WCF
Hi, I have WCF services host on IIS5.1 with Windows XP. It is developed in Visual Studio 2005. The Client project is windows application, which is in the same solution as the WCF services. When the method from the service is called in the client, I got the following exception: System.ServiceModel.FaultException`1 was unhandled HttpContext is not available. This class can only be used in the context of an ASP.NET request Could anyone give me any suggestion on what could be wrong with my code Thanks, Bing Look like you didn't enable asp compatablity mode, only under asp compat mode you can access httpcontext, below link has more info about asp compat mode http://blogs.m ...Show All
.NET Development Convert dataset to XML ?
I have a report that will be repesented as a tree, with three levels. I have a proc which returns three tables, one for the data at each level. I'd like to generate an XML document that represents the tree, which I guess means I want to tell the data set how to look into the lower levels to get out the data that pertains to each higher level I have a feeling there's support for this, but not sure where it is Hi Christian, are you looking for dataset's nested relations In the dataset designer, edit relation properties and check the "Nested Relation" option... Of course, dataSet1.GetXml() will get you theXml. Andrej ...Show All
Visual Studio Team System Rollback
Baseline Branch A Branch Developer 1 Branch Developer 2 I have my branches layed out as above. Both Developer 1 and Developer 2 have merged their changes into Branch A. Now, I need to remove or rollback what Developer 2 has done and retain what Developer 1 has done in Branch A. I'm unclear on how to even do this. What's the best way to approach this rollback G'day, As far as I understand the inner workings of power toy, it does not truly rolls back the changes to some point in time, it instead just takes the changeset version you want to return to and checks that in as new changeset, so your history will have additional revision after rollback. Yours truly, Eugene ...Show All
SQL Server changing database owner to access diagrams
hello, i recently changed the machine name of my development computer and am now no longer able to create or view any diagrams for the sql database that was created by the old machine name user. i receive an error where I cannot make myself "the dbo of this database." i can see the old name in the "owner" properties field of the mdf database, but the box is grayed out and i am unable to change it to the new machine/user name. is there a way to change the owner of the database to my new machine/user name the new name has admin rights and the computer is a standalone workstation not connected to a network. i am using sql server 2005 express edition with visual web developer. thanks! ...Show All
Visual Basic How do you list the fields of a database in a combobox?
Hi, I was wondering what would be the easiest way to list all the fields that are in a database with a combobox I'm using VB .net 2005. I'm sorry, I should have been a little more specific. I'm using an Access database and I know the name of the table I'll need to pull the field names from. I don't need the data in the fields for this part of the program, I just need the list of the fields to populate the comobox so that they can pick and choose from one of the fields. The field names and the number of fields will always vary from database to database. I know what KAG posted is for SQL and not Access but when I have a chance later today I'll look closer at his code and see if I can get it to work. ...Show All
