ahmedilyas's Q&A profile
.NET Development Not Destroy COM Object on Release
I have a Executable that needs to interact with another application via COM interop. The application with the interface being used is an executable, but i want the executable to remain running after the COM object of the calling executable has been released. I'm having a hard time keeping the server exe running however. If i use release it closes, or if i wait for the garbage collector it closes. I import the exe into my references, and use an interop object to communicate. Is it the way i have the server COM exe set up, or do i need to reference it differently somehow Thanks for your help. If you want to ensure that your app continues to ...Show All
Software Development for Windows Vista Super Slow Indexing
Hey everyone. My name is Scott, and this is my first visit to ths msdn forums so howdy all. My issue is with three processes that, I believe, are acting in a way that they shouldn't be. Here they are: SearchFIlterHost.exe SearchIndexer.exe SearchProtocolHost.exe I looked them up and I believe they are Windows Desktop Seach. Basically what happens is whenever I try to explore any directory (whether its the root of C:\ or some deep subdirectory) on any drive (even the control panel), it takes about 10-15 seconds to display all the files/folders that should appear relatively instantly. The little green progress bar moves across my navigation bar, and then it works. I discovered that windows desktop search makes periodic updates the the In ...Show All
Visual Basic How do I Create a file from a web page on a web Server
I have built a website using VB.net 2003. It works great on my IIS local host. The problem comes when I deploy it to a server. The problem occurs in my use of lines of code similar to this: Dim file As System.IO.FileStream file = System.IO.File.Create("testfile.txt") When I run the code on my local host it creates a file on my hard drive at C:\WINDOWS\system32\testfile.txt Clearly this doesn't work on the server that I'm renting space on because I'm not authorized to use that directory on the server. When I try to put the file in one of my website folders: Dim file As System.IO.FileStream file = System.IO.File.Create("Http:\\www.MySite.com\Images\testfile.txt") I get an error that ...Show All
Windows Forms How to change vertical scrollbar size of listbox control?
Hi, I develop app in C# that users act on touchscreen. So I want to increase the vertical scrollbar size of listbox control bigger so users can touch it easier. In addtion, I can not change the WindowsOS setting because it will effect other apps. Re-writing the listbox control is the last painfull option. MA Never, really. Touch screen apps tend to run on one-app PCs. If at all, they have the standard MSFT software installed and they seem to be carefully tested to be flexible with non-standard metrics. The only control you got to watch out for is the listview in details view. It is easy to layout the headers so they look good, then get a horizontal scrollbar when you increase the vertical ...Show All
Visual Studio disappearing controls ( VS 2005 SP1 with Vista Hotfix )
Hi there, I am using VS 2005 SP1 with the Vista Beta hotfix. I am running Vista Business RTM version. I have created a form with a tabcontrol on it. I have added multiple pages and some controls on each page. I have saved the project, exited and then reloaded, some of the controls have disappeared. For instance 2 lables and textboxes disappeared. I can find them in the controls list but they do not show up visually on the form. No matter what I do they do not display, unless I delete them and then recreate them. This has happened with other controls as well (toolstripbutton). Any help would be appreciated. Thanks, Garth. Gabriel, Not sure what you mean, I am very new to VS 2005 and programming in general. ...Show All
Visual Studio Tools for Office Adding pages to document based on the same template
Hello I have a simple single page template for a letter that I fill out using a simple C# application. But how do I make multiple pages of that template in the same document, eg. adding pages to a "Microsoft.Office.Interop.Word.Document" document for each recipient. The letters will never be more than a page long. What I'm trying to accomplish is beeing able to make severel letters from one template and then Print them out in one go. How is this possible Questions concerning automation of Word should be directed to the office.developer.newsgroup. This forum is specifically for discussing the VSTO technology, not for general Office automation support. Consider saving the page as an AutoText ...Show All
Windows Forms passing parameter to SQl server in vb2005
i added the code but hw can i declare expdate Dim cmdLoad As New OleDbCommand( " select * from company where compregexpdate = @ExpDate" , conn) cmdLoad.Parameters.AddWithValue( "@ExDate" , Now.AddDays(-7)) Dim da As New OleDbDataAdapter(cmdLoad) da.Fill(ds, "Company" ) Sorry I made a typo in my last message @ExDate should be @ExpDate cmdLoad.Parameters.AddWithValue( "@ExpDate" , Now.AddDays(-7)) ...Show All
.NET Development Cannot find configuration tool for .netframework 2.0
Hi, I just install .netframework 2.0 redistribution package on a Windows 2000 server. The installation went successfully but I could not find any configuration tool. It is not under control panel--administration tools and I could not find any SDK Command Prompt. Did I miss another step..Please help as we need to configure its security. Thanks. There is some additional information that may be useful to you in this post - http://blogs.msdn.com/astebner/archive/2006/01/23/516671.aspx Thanks! Aaron ...Show All
Visual Studio Tools for Office VSTO Excel add-in only working in development machine
Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following installed: 1. VSTO Runtime - Shipped with VSTO 2005SE 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I have done : 1. caspol settings to make it Fully Trusted . 2. set vsto_suppressdisplayalert=0 and run excel.exe from cmd ......Same Results .... I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in." It has been over a week now that I am str ...Show All
Visual Studio Express Editions send file to remote computer
I was tried to following code but it display following error No connection could be made because the target machine actively refused it i was started telnet service on remote machine but it didn't work why IPEndPoint ipEndPoint = new IPEndPoint (IPADDRESS,PORT); Socket client = new Socket ( AddressFamily .InterNetwork, SocketType .Stream, ProtocolType .Tcp); client.Connect(ipEndPoint); string fileName = "C:\\b.txt" ; client.SendFile(fileName); The remote PC must be listening on the same port number (PORT). The TelNet protocol doesn't support file transfers. A typical TelNet utility acts as a client, not a server that accepts connections. The ...Show All
SQL Server What's the best way to present BI/SSAS?
I am just curious, as we are slowly adapting SSAS 2005 for BI, and SSRS 2005 for report We also use SharePoint 2003 now, which is great for presenting SSRS What's the best way to present SSAS though I know I can do a report in SSRS for SSAS, using cube as data source but what if the users want to slice-and-dice , change filter criterias I wouldn't want to create a SSRS report for ALL What-If conditions and it would be great if SSRS' "Report Builder" feature works on cube, does it Other ways I can think of - give users permission to SSAS server, and install 2005 Mgmt Studio on the desktop so they can browse the cube (definitely not installing Visual Studio 2005) - I build every report for every request - build a general one, an ...Show All
Visual Studio 2008 (Pre-release) sample source to return stream from service to client
I've got a service returning IEnumeration<Customers>, and sometimes this set can get larger than the buffer size of 64k. Now, instead of raising the buffer size I'd like to return the data as a stream, but am somehow blind how to achieve this using serialization. My service right now is something like this: IEnumerable < Customers > GetSomeCustomers() { return SomeCustomers(); } My client does call this using a proxy: IEnumerable < Customers > somecust = myProxy.GetSomeCustomers(); Now my Service would need to serialize the data referring to the DataContract of Customers, and return a stream, but I don't know how to serialize and deserialize the return value of my s ...Show All
SQL Server High CPU utilization in SQL Server 2005 SP2 (CTP)
Hi, We are having a big performance issue at our site. Here is the configuration of the box running SQL Server 2005: 64 bit Windows Enterprise Edition + SP1 Dual CPU, 16GB RAM RAID 1 and RAID 5 - internal SQL Server 2005 64-bit Enterprise Edition With SP2 (CTP from December) The "Lock Pages in Memory" is set and is being run under the same account that is being used to run SQL Server Services. We are noticing that under load, the CPU utilization becomes nearly 100%. I have researched this and have come across a couple of posts that indicate that this issue was fixed in SP2 - example: One post talked about the hotfix #716 which is also a part of SP2 but even after the application of that service ...Show All
Visual Studio 2008 (Pre-release) KnownType attribute being ignored on service implementation?
Hi, [AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct, Inherited= true , AllowMultiple= true )] public sealed class KnownTypeAttribute : Attribute I added a couple known types to the class that implements my service interface. When I generate the proxies, there are no proxies created for the specified types. To get the proxies on the client, I had to add the attribute to the base class from which the types derrive. ( The service method accepts the base type as it's argument ) Is this normal If you're working with interfaces, simply use the [ServiceKnownType] attribute. I can't at the moment recall what the actual difference is between the two, but I know that I used [ ...Show All
Visual Studio Team System TF30162: Fails portal creation when creating Team Project
Attempting to create a new Team Project gives the following error. We're using the release version of TFS and MSF for Agile template. Following the instructions in another thread: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=150809&SiteID=1&mode=1 I think I've been able to find the issue. When I try to add a top level site to the "Default Web Site", I get an error that says: "The virtual server that is referenced here is not in the config database." Anyone have an idea what I'm missing here I do find the server in the STS_CONFIG_TFS database in Servers and VirtualServers. 2007-02-19 08:32:58Z | Module: Internal | Team Foundation Server proxy retrieved | Completion time: 0 seconds 2007-02-19 08:32:59 ...Show All
