tugboat90's Q&A profile
.NET Development SOA using web service
I've been trying to develop an application and I've been running into issues when I expose methods from a business layer assembly using a web service. The problem is that when a client references the web service, a new set of data entities are created. What I want to do is to be able to pass the entities from a different assembly through the web service because these would be used by all of the applications that would consume (as well as any 3rd party consuming the web service). Data Entities are located in "SOA.Entities.dll". This would contain a class called customer with a name and address object along with other miscellaneou ...Show All
Visual Studio Tools for Office Reading paragraphs within word document
Hi, I need to read a word document onr paragraph at a time programmatically. How can it be done. I believe it can be done by selecting the paragraph contents in a range and then copying the range on to a clipboard. Is there a easier way. How do I select one paragraph as my range each time. Thanks, -Suri Hi You can do something like this to read the Word document paragraph-by-paragraph: foreach(Microsoft.Office.Interop.Word.Paragraph p in Microsoft.Office.Tools.Word.Document.Paragraphs) { // Manipulate p } Hope this helps! -Nikhil ...Show All
Smart Device Development Microsoft SQL Server management studio
Hi.. Can any1 tell me how to fix the error below prompted by Microsoft SQL Server management studio Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). (Microsoft.VisualStudio.OLE.Interop) it appears when i wanna connect the database..and make my whole program prompted "no such interface supported" ...Show All
Visual Studio Team System Team Build unable to Run Auto Builds now
For some reason today, when I run a build type (automated build) thru the VSTS Interface. I get the following message back: "Failed to retrieve data from the server. Please verify the network connection and try again." I have no problem building the Solutions manually. Only encounter problems thru the Build Type. I see the following in Event Viewer on the Team Foundation Server log: " An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date ...Show All
Visual C++ Help with compiler error
After discovering the code I would need to write my version of IPCONFIG from MSDN I quickly realized that when I tried to compile what I had written mixed with what I am using from open source that my program wasn't compiling right. I have looked over the code several time, but I am unable to come up with a solution. I figured instead of scrapping the idea I would run it by you guys to see if you have any insight or ideas for my code. Thanks ---------------------------------------------- [c++]#include <stdio.h> #include <windows.h> #include <stdlib.h> #include <Iphlpapi.h> int main() { PIP_ADAPTER_INFO pAdapterInfo ...Show All
Visual Studio VS2005 Beta 2 install from CD
So I ordered the VS2005 Beta 2 CDs and received 3 CDs named VS2005-Team Suit, VS2005-Team Foundation Server, and SQLServer2005-Developer Edition. I assume that the actual IDE program is contained on the disk named VS2005-Team Suite but that CD is blank. I'm surprised to only receive 3 disks as Beta 1 was 5 if I recall correctly. I called M$ and they very quickly sent anther copy of the 3 CDs (very surprised!) in which that same disk is empty. Do I have the correct CDs Should I ask for yet another set http://lab.msdn.microsoft.com/vs2005/ ...Show All
Visual Studio .Net Framework CANNOT uninstall or reinstall
Hi All, My .Net Framework 1.1 does not give me the option to repair. I tried to reinstall, but it did not work because it gives me a message saying that I already have the current version installed. I'm trying to uninstall previous version of .Net Framework before doing a clean install of SQL Server 2005. When I tried to uninstall in Add/Remove, the following file it asked for, and I don't think it is on my harddrive - tmp1DD.tmp - any help that I could manually remove .Net Framework, I would appreciate it!!! or a tool that I can manually run to uninstall all files associated with .Net Framework, I would really apprecate that! Sincere ...Show All
SQL Server Re-Create All Indexes in database
First, I'd like some help stablishing if it's a good idea or not what I'm thinking, and second is what would be the easyist way to achive the result. Background. We have a multicompany ERP system (200GB, 200+ tables). All data tables have a companyid, counter1id, counter2id, fields. Each table has a primary clusterd index on these fields in that order. And also has multiple other indexes that usually include companyid filed first. ( Note we have 10 companies, ids are 1..10, companies 2 and 5 are the most active, inserts, selects ). MY GUESS IS THAT THIS IS VERY BAD HAVING COMPANYID FIRST. AM I CORRECT LEADS TO AL LOT OF FRAGMENTATION VERY ...Show All
SQL Server File permissions
Hello, SQL 2005 resets the file permissions for database files when they are attached. Documentation shows that this is for security purposes. Is there any way to turn off/override this feature Basically, I need a way to attach a database file while preserving the user permissions with that file. Thanks. Just a follow up, but I have not found a way to override the reset of file permissions, so I will try to find another way around the problem. ...Show All
Visual C# Problem with winspool OpenPrinter DllImport in 2005
Hi, i have a component which scans the spooler of a printer. in Framework 1.1 it works fine but in 2.0 i got the following exception when i open the printer: PInvokeStackImbalance was detected Message: A call to PInvoke function 'Dornbracht.Odis.Server.PdfPrinter!Dornbracht.Odis.Server.PdfPrinter.Spooler.PrinterSpooler::OpenPrinter' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. My import looks like that: [ DllImport ( "winspool.drv" , Cha ...Show All
Visual Basic how to read disk drive like reading a file
how to read boot sector , MFT in NTFS , ... , return byte array like read a file ...Show All
Visual Studio Team System Distributed automation of non web applications
I need to use Team System as a framework to automate tests across multiple machines. These are not load tests or web tests. They would be basically the equivalent of Unit Tests, but on a larger scale. I want to launch the test suite from Team System to get the full value of the reporting and integration with the development environment, but the tests need to actually run on machines in a test lab. I'm sure I'm not the first to have this problem, but I don't see an obvious solution other than using the extensibility SDK to creat create a custom test type that calls a homegrown tool that would actually handle running the tests on the target ...Show All
Visual Studio Express Editions ROSys.SYS Page Fault when trying to start c#
Hi I have installed C# Express but when I try to start the editor it crashes my machine with a blue screen and page fault at F7E43D0F Base at F7E3F000 - I have now completely de-installed and reinstalled but get the same error. I cant find anything in the registry for ROSys.sys so dont know what its complaining about. I have Pentium 4 1.9Ghz, XP Home service pack 2 and 500Mb with an NVIDIA 64Mb graphics card. Any suggestions would be welcome. Searching on the web doesnt give any clues either. ROSys.SYS come from ReachOut (remote control tools) that is no more supported and is incompatible with WINXP ...Show All
Windows Forms ListBox question -- is there an 'ItemAdded' event or similar?
I need to do some processing whenever an item is added (or indeed removed, so changes generally) to a listbox. From a cursory glance at the documentation I do not find relevant events. I would be grateful however if anyone could point out that I am missing something. Or do I have to add a custom event If so, if anyone has code that could get me started I would again be very grateful. Thanks. There is no event or protected method that is invoked when the items change. There are a couple of alternatives however. The first option is to use a DataSource or BindingSource and handle the events within these object ...Show All
Visual Studio Express Editions Getting the current logged on user and NOT the user running the App
G'day I'm trying to find a way to get the current Username of the person logged on. I ahve tried the following: I've read your question three times and I'm afraid I don't understand the description of the problem. Could you post a small snippet of code and identify where the failure occurs ...Show All
