#pragma's Q&A profile
Visual C# View console app before termination
Hi everyone..... I have a very basic and probably stupid question. I am just learning C# using the C#Express software and have a problem trying to view the output of my console apps. I have started a console app project, compiled and run. I see a brief flash and then the app closes and terminates. Q. How can I prevent the console closing down so that i can actually see somthing. Thankyou all for the replies .... Akbar and Grant I like both your solutions, thanks once again for the fast and accurate replies to my problem. Both these solutions worked. Adam i am just starting out with c# so i could not fully understand your solution, which may well work, but i am not that advanced yet. thanks ...Show All
.NET Development error connecting using the config file
Hello I'm having difficulties connecting to a database when I have the connection string on a web.config file. I know that it connects if not using the config file. here's my config setting: <connectionStrings> <add name="dummyConn" connectionString="Data Source=dummy;User ID=user;Password=pass" providerName="System.Data.OracleClient" /> </connectionStrings> and here's my code Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim connString As String = ConfigurationManager.ConnectionStrings("dummyConn").ConnectionString Dim conn As New SqlConnection(connString) Dim locDataSet As New DataSet() conn.Open() Dim locDat ...Show All
Software Development for Windows Vista Exception in .NET 3.0 SDK WorkflowMonitor Sample
I get the following exception every time I run the WorkflowMonitor sample (it's never run successfully). Any ideas exception = {"Could not load file or assembly 'Hosting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Hosting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"} Copying my workflow DLL into the WorkflowMonitor executable directory worked... ...but I'm not getting the correct layout for my state machine workflow ...some sort of ugly default layout. Any ideas ...Show All
Windows Forms Question about Logical containers
What is the best control or method to use when you want a label & combobox to always display, but a third-party control to occupy whatever the rest of the drawing surface might be (dependent on whether the user resizes or moves it about etc.) I used to know this, but wrestling with some fairly arcane object models has caused me temporary amnesia. Thanks in advance! ...Show All
SQL Server Issues in using reporting services
My coleague is having these problems could any body help 1:- There is one Main report having 2 subreports in it, each sub reoprt has it own header and footer but when its called from Master report, the header and footer of the sub report doesnt show on the Master report, how to make them visible. 2:- If we need to add some customize code for the report, we used the CustomCode tab that appear when Properties link of that report is clicked, how can we acess the items on the report under that code like if the report has the subreports, tables and want to acess their visibility is there any way. 3: -How can we check in the cutomcode of the main report that which subreport is being runned, is there any property through which subreport ...Show All
Visual Studio Tools for Office Deploying VSTO Word Project: could not find or load customization assembly
Hello! I developed a custom task pane with VSTO for a Word2003 report and now I would like to enable access for my clients to this document. I copied the document to a server folder in my intranet and tried opening it, but I got the following error:: "The customization assembly could not be found or could not be loaded" "The customization does not have the required permissions to execute." Therefore, I need to grant access to a server folder where the document and the assembly will be located. I checked http://msdn2.microsoft.com/library/k64zb6we(en-us,vs.80).aspx and followed the "How to: Grant Permissions to Folders and Assemblies" procedure step by step. However I still keep getting the same error! I noticed this note "You must be ...Show All
Software Development for Windows Vista Temporarily Registering ActiveX Control
We have an application that runs off a CD and uses an ActiveX control stored in a DLL (or .ocx, does not really matter). The CD is to be run on the client's computer, and the client may not necessarily have administrator privileges. Is there a way to temporarily register the ActiveX control for the duration of the application Basically do something like "regsvr32" on the DLL while the app is running, and "regsvr32 /u" on exit. Basically we would like to force the ActiveX Control (identified by a CLASSID) to load from a particular DLL, and that DLL is on the CD. Have a look at this article: http://msdn2.microsoft.com/en-us/library/ms973913.aspx -- SvenC ...Show All
Internet Explorer Development IE7 protected mode hWnd problem
hello, i'm trying to get the hWnd of a IWebBrowser2 control. if i'm working on xp, everything is ok. but with Vista - things different. hWnd returned is not valid. (IsWindow - fails) any ideas why It seems to me that because if you run iexplorer.exe in Protected mode, it runs ieuser.exe and it runs in its turn iexplorer.exe (with another Process ID). It seems that the hWnd is not of the second process... How can i solve this Hi there, Sorry for the delay in replying. As I understand it, the problem you running into occurs after the call to Navigate. When this is finished, a new instance of protected mode iexplore is started to handle the request. As a result, the spWebBrowser pointer is now d ...Show All
Software Development for Windows Vista Why can't I inherit from InvokeWebServiceActivity?
Hi I want to add som custom behavior to the InvokeWebServiceActivity but realize that it is marked as sealed (oh horror!) First. why is that Second. What to do then Do I have to recreate to whole InvokeWebServiceActivity behavior and add my extensions to this I guess i could reverse engineer with Reflector but come on. Im lazy :) If the ONLY way is to do it my self how do I get the "Web service Add url dialog" to show up for my custom activity. Second. How do i genrate the proxy regards Anders If you just need to work with the proxy, you can use the Invoking event and cast the proxy on the eventargs to your proxy type and then set properties on it. If you want to interact wit ...Show All
Visual Studio SourceSafe integration and "Show Differences" dialog
Having successfully developed a C#-usercontrol "VSSBrowser" using VSS OLE Automation, I was sad to see that it's impossible to invoke "Show Differences", "View/Edit" and "Properties" dialogs via OLE. And that's the last thing left to get a fully functional control. I googled a bit and found out that "Microsoft SourceSafe SCC Provider" (SSSCC.DLL) should be used to invoke those dialogs. I examined this DLL with "Dependency Walker" and seems I even found the necessary functions; at least two of them - SccDiff ans SccProperties. The problem is that I have no idea of how to use this API in my C# project. I couldn't find any samples or articles in the Net; at the same time I remember t ...Show All
SQL Server DROP USER
Hi, I’m having problems dropping a user this is my code: Public Function DropUser() As Boolean Dim conn As New ServerConnection( "STATION01\SQLEXPRESS" , wContainer.Username, wContainer.Password) Dim myServer As New Server(conn) Dim myDatabase As Database = myServer.Databases( "VideoDB" ) If myServer.Logins.Contains(“username”) Then Dim db_user As New User(myDatabase, “username”) db_user.Login = “username” db_user.Drop() Dim db_login As New Login(myServer, “username”) db_login.Drop() Return True Else Return False End If End Function ...Show All
Visual Studio Team System Recreate TFS site
We were having troubles adding components to an existing TFS project so I thought I could delete the site and recreate it to the basic template. Is there a way to recreate the sharepoint / WSS again based on an existing TFS site We have files in source control so it will be difficult to create a new team project and migrate to the new project. Does anyone have any suggestions Thanks From Dennis Habib: One thing that can be done is to create a new top level site collection with the same name as the project, manually create the document libraries, then copy/paste the files from the process template into the appropriate document libraries using Windows Explorer. ...Show All
Smart Device Development How to set Pocket outlook thread safe
n my application there are three thread runing.I have assign Name to all of them.Let Say Name are A B[launches after each 1 minute] C Now in one of the method of thread A I modify pocket outlook.While suddenly thread B launches and start doing some modifiaction in outlook.And then my application crashes Most of time it happend when I am doing something with tasks How canI work around this problem. Kamii47 wrote: n my application there are three thread runing.I have assign Name to all of them.Let Say Name are A B[launches after each 1 minute] C Now in one of the method of thread A I modify pocket outlook.While suddenly thread B launches and start doing some modifiaction in outlook.And then my application crashes Most of tim ...Show All
SQL Server OLEDB Destination Error in SSIS Package not returning error column/desc
I have a SSIS package that reads data from a dump table, runs a custom script that takes date data and converts it to the correct format or nulls and formats amt fields to currency, then inserts it to a new table. The new table redirects insert errors. This process worked fine until about 3 weeks ago. I am processing just under 6 million rows, with 460,000 or so insert errors that did give error column and code. Now, I am getting 1.5 million errors. and nothing has changed, to my knowledge. I receive the following information. Error Code -1071607685 Error Column 0 Error Desc No status is available. The only thing I can find for the above error code is DTS_E_OLEDBDESTINATIONADAPTERSTATIC_UNAVAILABLE To add to the confus ...Show All
.NET Development Porting part of a large COM+ application to .net
I'm a litle currious that I can't find anything on this subject in the forum. There should have been written lots of COM+ application, and it's very unlikely that they all are trown away, just because .net is the current technology now. Anybody have any experince with using COM+ component in a .net application (It's simple enough - in teory - but reality usally is not so simple. Is this the right forum to ask such a question BTW Thanks for your answeere. We have problems with a 3. party com component that we can not get to register, and this is used all over the application. (To make it possible to use Unicode chars in the program.) If we can not solve that, it should be possible to write a .net component that supports u ...Show All
