teamels's Q&A profile
Visual Studio 2008 (Pre-release) How to apply behavior configuration section in app.config/web.config while coding
Hi All: I will create a ServiceHost, the problem is how to apply "returnFaults" behavior section The configuraiotn section: <behaviors> <serviceBehaviors> <behavior name="returnFaults"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="true"> </behavior> <serviceBehaviors> <behaviors> Thanks, Zhihao In that case, you can just do the same thing imperatively, e.g. ServiceMetadataBehavior smb = new ServiceMetadataBehavior(); smb.HttpGetEnabled = true; host.Description.Behaviors.Add(smb); host.Description.Behaviors.Find<ServiceDebugBehavior>().IncludeEx ...Show All
Visual Studio 2008 (Pre-release) Moving images but no redraw
I have 5 images (image controls) on a canvas and I want to move them from one side of the screen to the other. As if they were sliding in. This is done by changing the Margin in a For..Next loop x times. The problem I have is that they are not drawn as they move across the screen. In old VB a Doevents would solve this problem but I can see from other posts that that is no longer an option. Some have suggested using the Dispatcher but I can’t quite figure out if Microsoft thinks this is a good idea or not. What else is there. Maybe moving the For...Next loop into a new Thread. Surely not... Any ideas All code bits in VB please. rune you can do something like this <Canvas&g ...Show All
.NET Development upload app to website
Im not sure whether this is the right place to go.. but my problem is how to upload app ive developed using visual basic 05 express to the website. To which website Your own Is the web server on your local machine Based on the wording of your question Im guessing you don't really know what you're talking about (no offense). Do you want people to be able to download your application to use on their own machines I will assume it is a remote webserver. You need to use a FTP program (assuming the web server has FTP enabled) such as WS-FTP or CuteFTP to upload the file using a provided username and password. And yes, this is the wrong place to be asking your question. Just google "uploading files" or ...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 Events for LoadFromSqlServer method???
Hi everyone, I was wondering what kind of events fires when you do a LoadFromSqlServer method I've got defined a Events class but debugging with F11 never get in touch with any event (apparently or mabye the problem is that I haven't declared that concrete one) Let me know if possible or not. I provide you my snippet of code: Dim pkg As New Microsoft.SqlServer.Dts.Runtime.Package 'Para que no choque con el objeto APPLICATION DE SYSTEM.WINDOWS.FORMS Dim app As New Microsoft.SqlServer.Dts.Runtime.Application Dim EventsSSIS As Eventos EventsSSIS = New Eventos() .. .. pkg = app.LoadFromSqlServer(ObjSSIS.sRutaDts & "\" & ObjSSIS.sSSISName, ObjSSIS.s ...Show All
Visual Studio Undesirable behaviour when doing a search on ReportViewer using the Find button on the Toolbar
I have a ReportViewer control on a Window Form. After I have rendered the report on the control, I tried to search for a particular text string in the report. In that case that there is no match on the report, a popup dialog box is shown with "No results were found that match your search criteria.". If I click "Enter" key, the same dialog box keeps coming up. It is because the form focus is still on the SearchString textbox. Clicking on "Enter" will resend the search event again. I tried to cancel out the Search event by placing custom code in ReportViewer_Search event handler. private void reportViewerPPRpt_Search( object sender, SearchEventArgs e) { if (reportViewerPPRpt.Find( ...Show All
SQL Server SP2-specific features of Excel 2007
You can read in many places that Excel 2007 disables a number of features when it's not connecting to an SSAS 2005 instance that hasn't been upgraded to SP2. However, I couldn't find a list of such features anywhere. My question is: what are the new Excel 2007 features that are available to us now that we have upgraded our SSAS server to SP2 Hello Alan. I have not found any information about disabled SSAS2005 SP2 features in Excel 2007. I frequently visit this Blog and have noy found anything about disabled features. http://blogs.msdn.com/excel/default.aspx This is another site that I have discovered recently. Perhaps you have seen in before. http://www.exceluser.com/ I am currently tes ...Show All
SQL Server Problem with non multi-value paramters after installing SP2 CTP
Hello, I just installed the new SQL 2005 sp2 CTP on my stand alone report server. Now whenever a parmeter is not multi-value I get One or more data sources is missing credentials when clicking off the parameter. If I set the parameter to multi-value it works fine but confuses the users. Does anyone know how to debug this or if a fix is available Yes it was working before I installed the service pack. This is a known regression with CTP2 that will be fixed before SP2 is released. The problem is not specific to multivalue parameters. It has to do with dependencies between parameters. In some cases, you can work around the issue if you give the dependent parameter a defau ...Show All
.NET Development .NET encourages poor coding?
The more I look at .NET error handling, and how to deal with it, the more frustrating it gets. Take this class for example. It has a single boolean property. You have to know on which side of the call an error will be raised… by the caller or the callee… well here’s a prime example. Say you have to read data from somewhere like a text file and you cannot ensure the format of the data is proper. Well, you cannot depend on a property to check that data for you if you strongly type the property. Read the orange comment to see what I mean, and please let me know how you deal with this situation since to me it appears to require horrible program design. Public Class ...Show All
.NET Development Acccess denied on IpcChannel
Hi, I developing a windows service running under the NetworkService account, and need to control this service at runtime from a separate client app. I have chosen to do this the remoting way. So i have set up a pair of IpcChannels (a server channel in the service and a client channel in the client app) - but when the service is running under a system account I get a access denied exception when trying to instanciate the remote object from the client. When running the service under my user account it works fine. When using TcpChannels instead of IpcChannels it also works fine! How do I get around this issue Kr. Soren Hi This is probably causes by an ACL issue. Try setting a custom ACL ...Show All
SQL Server 2 simple questions ...
When I'm designing an Integration Services package, the drag and drop doesn't work. It did at one time but doesn't now. What did I change Driving me nuts!!! Also, this is a simple package. I'm exporting 6 colums from a view (db --> csv). I only want the first initial from the middle name. What data flow transformation object do I use I know it's not the data conversion because that concerns the column type. Thanks kinny_k wrote: When I'm designing an Integration Services package, the drag and drop doesn't work. It did at one time but doesn't now. What did I change Driving me nuts!!! Drag and drop of what Try closing BIDS and reopening it. kinny_k wrote: ...Show All
Visual Studio $(MSBuildProjectDirectory)
hi, i have a questions regards $( MSBuildProjectDirectory ) property, for example when I create <DevSourceDir> tag in the msbuild file I want to assign it to my current project Directory, which is very simple just use MSBuildProjectDirectory but my problem is, I don’t want to use the full path that is coming from MSBuildProjectDirectory I want to actually delete the last part of the path, for example MSBuildProjectDirectory = c:\program file\software1\source\BuildScript But all I need from MSBuildProjectDirectory is = c:\program file\software1\source So I don’t want the last part (\Build Script), so in my case I want to do this <DevSourceDir> $(MSBuildProjectDirectory) excluding this part (\Build ...Show All
Windows Forms DataGridView - stop changing current row - when using the 'Enter' button
Hello, I have a small datagridview (datagridview1), which on this form has only one editable field. The issue I am concerned with, when editing the data in the only column/row in datagridview1 and hitting the 'Enter' button, it forces it to the next row. How do I stop this Thanks Basically update the dataset and move the focus to another control. In testing different scenarios, I have the update command on the 'CellEndEdit' event. That does fire. And it does shift the focus to another control, but it seems like it does this after it moves to the next row. So far I am unable to trap the keystroke when datagridview1 has the focus. I have tried the datagridview1 keypress and keydown event and neither ...Show All
Visual FoxPro Does a table automatically open exclusive during an SQL
I have tried to create an application that uses SELECT statements to populate controls on the form. After the SELECT statement runs, the table remains open, exclusively, is there a way to preform the SELECT and have the table open SHARED If you didn't specify an INTO clause, then you're probably using a cursor which resides only in the memory of the machine that issued the SELECT command. You could try the INTO TABLE clause that will create a table on disk which you can share. ...Show All
Visual FoxPro How to handle transaction consisting of different data sources?
I want to know how to handle transaction consisting of different data sources (e.g. VFP dbfs and MS SQL tables). Thanks, Peter Seems to me you'll need to handle this yourself. Your best bet is to create your own StartMixed, CommitMixed and RollbackMixed functions or methods. (I'd use methods of an object to which I'd give information about what servers and tables are to updated.) Then, in those methods, handle starting, committing or rolling back all the relevant sources. Tamar ...Show All
