bagjuice's Q&A profile
Visual C# Timer tick event i snot calling
Hi All I have created a window service and add a timer to fire event after 1 minute. I installed service and start it then i debug its process in VS 2005 it worked fine and timer event fired automatically. But if donot use debug of VS 2005 and wait for that timer event firing it doesnot fire even after 30 minute it is not firing. Please help me. Regards Imran Zubair Hi Rizwan Actually i am using timer control and doesnot want to replace it with time setting in config or text file. And in .net 1.0 i have used same timer control which was worked fine but in .net 2.0 it is creating that problem. Regards Imran Zubair ...Show All
SQL Server Cannot create an instance of the XML Document Object Model. MSXML may not be registered
I have a small VB.Net 2005 app using the Microsoft.SQLServer.ManagedDTS.dll so I can use the SSIS/DTSx functionality. The program ran fine in the IDE. Then when I tried to create a setup project for it I recieved a warning that all dependancies for MSXML6.DLL were not found. I clicked ok and the setup was created. I tried to run the setup and it failed with "....\msxml6.dll failed to register. HRESULT -2147023782. ... So I said cancel the setup and registered msxml6.dll. I deleted my setup project and recreated it. This time I did not get the warning about msxml6.dll dependancies. I tried the setup again and it executed without any errors however when I run the program I now get: "Cannot create an ins ...Show All
Visual Studio 2008 (Pre-release) Explicitly requesting security tokens from a STS
Hello. I’m trying to write some code to explicitly request a SAML security token from a STS. I’ve tried unsuccessfully the following 3 approaches: Approach #1 1. Create and set a IssuedSecurityTokenParameters object 2. Create a SecurityTokenRequirement from the IssueSecurityTokenParameters 3. Create and set a ClientCredentials object 4. Get a token manager from the ClientCredentials 5. Get a token provider from the token manager, using the SecurityTokenRequirement as parameter · Problem: there doesn’t seems to be a public way to convert from a IssueSecurityTokenParameters to a SecurityTokenRequirement Approach #2 1. C ...Show All
Visual Studio Tools for Office Get The text of Words from a word document
This may be a topic for some other group, but this group gets replies faster then then Automation or some other Word groups, so maybe someone here knows this. I really want to thank Cindy for pointing me in the right direction for what I wanted to do. I ended up using the DsoFramer control to host my word doc, and now I have the document loaded, when I first saw the Word.Document.Words collection, I thought cool a collection of string variables for words. Microsoft would never make it so easy. Does anyone know how I access the words in the document, and highlight a word that matches my search criteria (similiar to the way Google highlights your results). I am heading to the book store to buy an Office book next, but if someone has ...Show All
SQL Server Integrate more than one SSIS packages into one package
Hi I'm new to SSIS field. I'm importing data from flat files to sql server 2005 through SSIS packages. I have around 30 packages which transfers data from flat files to corresponding database tables. I want a single package that will run all the 30 packages by running that single package. Like in a single stored procedure we can run multiple stored procedure, I want the same solutions for my packages. Is there any method which can solve the above issue Please kindly guide me . Its urgent. please reply soon. Thanks in advance. Thanks a lot. You are really a very nice person. The above points solved my problem.Now I can run all the packages at a time.That ...Show All
Visual C# IDbConnection and get data in a dataset
Hello Everyone, I'm using IDbConnection to connect to database and that works perfectly fine.... I can do something like this as well...and this is good too.... IDbCommand command = conn.CreateCommand(); command.CommandText = "Select id, description from lot"; IDataReader dr = command.ExecuteReader(); while (dr.Read()) { string some = dr[1].ToString(); } The problem I'm facing is how to return it in dataset, as I directly want to bind my controls....or somebody can suggest a better way to do it... Thanks, Harsimrat Don't know what is the problem, by the way i don't have enough info. When you ask different question please create a new one with problem ...Show All
.NET Development Need help in a tcpclient
Ok,i have this code, Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Client = New TcpClient( "127.0.0.1" , 65535) Dim Writer As New StreamWriter(Client.GetStream()) Writer.Write(TextBox1.Text) Writer.Flush() End Sub and i have a textbox with a button,how can i makeit so when i click that button,it takes the textbox and if it says 122.122.122.122 it changes to Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Client = New TcpClient( " 122.122.122.122 " , 65535) Dim Writer As New StreamWriter(Client.GetStream()) Writer.Write(T ...Show All
Windows Live Developer Forums Creating first Windows Live Gadget
I am trying to create a simple Windows Live Gadget and am using this site as a guide. I want to create a gadget that contains a background image and a hyperlink to another site. The guide says that to get a hyperlink to display I have to enter the following lines of code into my .js file. p_elSource.innerHTML = "<a href=\"http://www.live.com\">Go to the best home page!</a>" + "<br />" + "<a href=\"http://ideas.live.com\">Check out the new windows live services!</a>"; However, when I log onto live.com and add the XML file of my gadget, it loads the title and icon but no content within the gadget. This is the whole code of my .js file ...Show All
Visual Studio My view on views, Repositories, Multi-user acces etc.
Hi all, Sorry for the long message, this probably is better suited for a blog, but I don't have one (yet). In various threads issues have been mentioned that deal with handling large models. For example in In Multi-User Capability there is a question on multi-user capabilities, and in Collaborating on models a solution is proposed. In How to make Multiple Views a request for supporting multiple views has been done. In Question on roadmap to DSL features a repository feature is requested. We have been working with the DSL toolkit since November 2005. The first DSL's are now ready for production, several others are under development. Based on our experience with developing these DSL's, I would like to give some feedback on th ...Show All
Software Development for Windows Vista Workflow Extensions RC5 not working?
I have installed RC1 of the .NET 3.0 framework ok on my Windows XP x64 workstation, but the Workflow Extensions RC5 for Visual Studio 2005 don't seem to work. They install the SDK but no Workflow options appear in VS2005 The previous CTP (July) worked ok How do I "manual" register the SDK with VS2005 I run the "Register Windows SDK Directories with Visual Studio 2005" and any thing happen. how can I install the Visual Studio Extentions When I run "Visual Studio 2005 Extensions for Windows Workflow Foundation RC5(EN).exe" I always get the modify screen from SDK. If I install from the begin, installs the SDK. how can I install the Visual Studio Extentions tkx in advance Paulo Aboim Pinto ...Show All
Smart Device Development delete setup files
Hello, I was wondering, how can i delete my CAB file after installation. and also my app generate some xml and htm for help and configuration purposes. After i uninstall the program those files are still there. is there a way to get rid of them after i unstall my program There's no such thing as "self-deleting" file. CAB files can be deleted by WCELOAD (CE CAB installer) upon successful installation, if that’s not the case they would not disappear on their own, not in 2 days, not ever. Whatever CAB file would be deleted by WCELOAD or not depends on WCELOAD version, command line switches and if file is marked read only or not. Please search for WCELOAD command line switches on MSDN for t ...Show All
Visual Studio Express Editions Painting into an image box
Hi I know you can draw lines and things into a picture box with picturebox.CreateGraphics.DrawLine(Pens.Green, 5, 5, 6, 6) etc But why will it not work with variables in place of the 5, 5, 6, 6 Is there a way of painting a custom colour instead of a pen colour Is there a better thing to use that allows me to just change pixel coordinate colours as it is easier to imagine and write code for, this is confusing to me. Yeah that works.. but I want to do it in a loop to draw a map from a game file, using variables in place of the 5, 5, 6, 6 thing. And nothing shows up :/ Also I want to change the colour according to how high the land is ...Show All
.NET Development cannot get web application service
When I try to add a new SqlDataSource and click 'Configure...' I get an error message "cannot get web application service" and then it won't let me click 'New Connection' to setup the connection string. Any thoughts Thanks in advance. I'm in middle of something right now but thought I'd post this anyway. I'm new to vs and microsoft and have been trying to ramp up with the masses (coming from a j2ee/oracle background). What I (think I) figured out was that sqlexpress is different from a full blown sql server. I seem to recall that there were 2 options for connecting to database and one was to go to file system to locate the sql server file. I believe that I was successful at doing this. I downloade ...Show All
Visual Studio .net 2003 + Crystal Report
Hi, We have Purchased MS Visual basic 2003 .net with crystal report single user version. The same has been installed in one PC. Customize program has been developed and same has been working in the installed PC. Customized program setup file has been installed to another PC but while running crystal report is throwing an error (“INVALID KEYCODE”). The screen shot of the same has been attached. Regards, Suresh Kumar K suresh@quadrasystems.net ...Show All
Windows Forms DataGridView error after columns removed/added to bound datatable
Background: I have a DataGridView (dgv) bound to a datatable. The first few columns in the datatable are fixed, while the last few columns are dynamic (the user is allowed to pick a template, which changes the columns). The last column in the datatable is always "Gross Total". If I create a new datatable, add the columns, bind it to the dgv, edit a cell's value in the dgv, remove the template columns and gross total column from the datatable, add new template columns and gross total column to the datatable, and edit a cell's value; everything works fine. If the datatable is written to xml (DataTable.WriteXml), then later retrieved (DataTable.ReadXml) and the same steps above are repeated started with binding the datatabl ...Show All
