topmar's Q&A profile
Visual Studio set credentials for ReportViewer?
This can't be rocket science. In RS 2000, I could set a credential like this: rs.Credentials = New System.Net.NetworkCredential(repSvcUserID, repSvcPwd, repSvcDomain) What is the equivalent to this in RS 2005, when calling a report via a webform reportViewer control I've found some very complicated examples of creating your own class with IReportServerCredentials, but I can't seem to get it to work. Is there some simple example available Marie Hi, i don't mean to but in but i think my problem relates to this closely. I've impemented the above VBcode, and actually i found it on ...Show All
Visual Studio 2008 (Pre-release) DLINQ Nice to have: Returning a unique record
While reading the DLinq Technical Overview document and playing around with Linq I noticed the First method on a Table<T> object, but no 'Unique' method. While the 'First' method returns the first object from your query, I'd like DLinq to have a 'Unique' method that also returns a single object, but also gives a compile time error if the given conditions do not specify an unique record. This way the compiler checks the correctness of the code when you changed the database definition. Here is an example of this Unique method: Northwind db = new Northwind("c:\\northwind\\northwind.mdf"); string id = "ALFKI" ...Show All
Visual C# How do I write to a file on a shared drive on a another server on the same network.
Hello, I'm having trouble finding a way to write to a file on a shared drive on a different server from where my console application is running. I would also like to pass the credentials to access the shared drive as I don't want to have to set up the application in some group or have it added to the folders security permissions. I thought about mapping the drive to the machine manually and then accessing the file that way, but I rather have my application handle all the details. Info: Both servers are W2K3 .NET 1.1 Framework Language C# Any help is appreciated Ruepen Hi, I am also fac ...Show All
Visual Studio 2008 (Pre-release) ShowDialog question
Hey all: I need some help in figuring out how the ShowDialog method works in WinFX. In the code below, I have a loop that shows a Window called Login as a Modal dialog using the ShowDialog method. If the model returns a DialogResult of false, then the code loops and shows the login form again. The problem is that when the code loops, even though ShowDialog is called again, the code is not blocked and continues to execute. Any ideas why Do I need to reselt the dialog result for some reason Thanks Devin bool done = false; Login login = new Login(); while (!done) { //show the login form Null ...Show All
Software Development for Windows Vista Verifying executable
Pardon my ignorance of security matters, but I need to verify that an executable making a request to a host website (or socket server) is somewhat trustable. The application (exe) does some low level stuff so I need it to be written in with the tried and true SDK C++ route. (I've tried doing this with C# and the amount of PInvoke code required was extensive, at least for low level stuff) So knowing this should I... 1. Perform a CRC check against the requesting exe in realtime, and verify this against the CRC value done on the exe before it was shipped to the field 2. Use a "signed" executable for the request and verify the si ...Show All
.NET Development Getting absolute URL from javascript functions without using any browser control
Hi, I want to convert javascript functions Relative URL to absolute URL, this without using any browser control. I have all the javascript urls extracted from a web page this being done from the HTML DOM of web page and the page is being browsed in webbrowser control in my c# project. I want to get the absolute url of a javascript function. Present i am simulating the onclick event on the Javascript function and capturing the url against click of that Javascript function in the IE web-browser control's beforeNavigate event. But that ends up in a chaos as it sends request for navigation and takes up time. This scenario is quite cumbersom ...Show All
SQL Server Continuously Running Package
I need to create a package that will monitor a table in a source system and when a flag is set, load data from other tables in this source system to my destination system. Today this is accomplished with a SQL Agent job that executes every 15 minutes. If there is no work to do the job simply exits. I would like to create a SQLIS package that checks this control table every 30 seconds. Can I create a package that runs continuously Again, thank you SimonS. You have been most helpfull and patient. ...Show All
SQL Server best approach
I've been banging my head for a while now, and it is sore! :-P I'm a best practice/Microsoft approach type of person and want to make sure I do things correctly. I have a database, kind of like a forum. Obviously executing multiple queries in one "batch" (stored proc) would have an impact on the performance. Now, I would like to give a more detailed/specific error back to the caller (either by aid of error code or whatever) with such situations like... "EditReply" Edit reply takes the threadID, replyID and userID. Before actually commiting the changes, it needs to check: 1) does the user ex ...Show All
Visual Studio Express Editions displaying different Time besides local time
Hi I am a newbie to VB 2005 Express actually am a newbie period to vb . The problem that I am having is trying to display local time & another time ie: say london uk. on another clock side by side. On a form Any idea's on how to this is tnx Eze sorry about that was not paying attention as to where i was posting newbies who don't pay attention to where they post Oh well mea culpa ! ...Show All
Visual Studio Express Editions database not saving
Hi, I've been going threw the Visual Basic Guided Tour. I'm in Managing Your Records: Using Data in your Program -> Showing Information to the User: Displaying Data in Your User Interface. The project is to create a user interface to update a local database. The user interface is Project: Addresses1.Form1.vb . That is suppose to update project FirstDatabase.Addresses . When I created the connection using Data Source Configuration Wizard , I got a prompt asking me if I wanted to copy the data file to my project. Following the instructions I clicked yes . In the project Addresses1 I have the fol ...Show All
Windows Forms save contents of picturebox
I'm wanting to save the contents of a picture box to a SQL Server table. How is this done and what field type should I use VB.NET Code samples are appreciated. ...Show All
SQL Server Failed to access IIS metabase
I installed Report Services 2005 on XP Pro, and when trying to access the http://localhost/Reports directory, I receive this error: The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/ kbid=267904 . I ran the aspnet_regiis –ga <WindowsUserAccount> , still nothing. I went in to IIS and checked the settings, and everything for the Reports directory looks just like the IISHelp directory(which I'm able to view using http://machinename/IISHelp I did restart IIS after apply th ...Show All
.NET Development VB Express 2005
I'm doing something that I think is simple but I can't get it to work!!!! I have a checkedlistbox that I want to populate using a table in MS Access. Here's my code: Dim j As Integer For j = 0 To ( Me .Computer_SoftwareDataSet.Computer.Count - 1) Me .CheckedListBox3.Items.Add( Me .Computer_SoftwareDataSet.Computer.Rows.(j).Item(0).ToString()) Next What happens is the listbox is populated with the correct number of CheckBoxes but the info pulled from the DB (which is just computer names (i.e. "c101")) doesn't showup at all. What the heck am I doing wrong Thanks in advance! I ...Show All
.NET Development Windows service gives "Error 1053: The service did not respond to the start or control request in a timely fashion" while start
Hi Experts.... I have unique problem while deploying Windows service build on Microsoft Framework 1.1. When i am deploying this service at a particular machine, i am getting error " Error 1053: The service did not respond to the start or control request in a timely fashion. ", but able to deploy the same service at other machines. On other machines i am not getting this error. We are into deployment stage and facing this problem on perticular that machine only. This machine is a Windows XP professional machine only. I have searched on web also they have stated that this might be problem with application log is full or any depen ...Show All
Visual C++ C/C++
Hello everyone, I'm an "old timer", because I started learning computer languages in 1974 (!) on a VAX system. (Basic, Fortran IV, Fortran 77, Pascal, Assembler, Cobol, C, C++, ...) My preferences are for C++ (still do) programing, but because of my professional duties, I stopped programing since 1988. Now I'm "semi-retired" and would like to restart using C/C++ but... What should I decide to buy, I mean, what kind of language to start with Visual C++ version 6 or C++ or I will appreciate Your professional advice Regards, Jean Hello, Thanks for your information. I'm happy to be able to reuse my "old" codes, which will help me t ...Show All
