LenardG's Q&A profile
.NET Development Failure sending mail with ASP.NET 2.0
Hi: I have been receiving a “Failure sending mail” when I try to send an email from a form using the ASP.NET 2.0 code below. It works fine on a test server on our network but the error occurs when I put it on our production server (both Windows 2003 and IIS 6). I also have an upload function on the form that works fine on both sites. The form is on a virtual site under a site using ASP.NET1 and the email works fine on that site. In the Web.Config the authentication is set to none (for anonymous access). When I first set ASP.NET 2 on the site I had to add asp machine user account to the permissions to get the aspx pages to wor ...Show All
SQL Server Small Business Accounting
Using Small Business Accounting with SQL Server 2000 sp4. Tried updating SQL Server to 2005 and updating the instance name for Small Business Accounting but received an sql time out error when starting SBA. Any suggestions how to update correctly. When I installed sql server 2005 some how my (local)\microsoftsmlbz sql server was no longer registered. Since I did not know the username or password to reregister it I had to uninstall small business accounting and then reinstall it. I do not believe the backup functions will work properly with sba if you upgrade to sql sever 2005. ...Show All
SQL Server Missing Distinct Count option in Measure's Aggregate Function property
I am trying to get a "distinct count" aggregate function specificed for a measure that is non-numeric. Is this possible When I use the cube editor, the Distinct Count appears in the drop down list only when the measure is numeric or datetime. If the measure is varchar, the Distinct Count option is not there. Any thoughts Hi, Did you get any reply and/or solution to this problem. I have similar issue. Would appreciate if you can share. Thanks ! ...Show All
Software Development for Windows Vista Deriving, CodeConditions and HandleExternalEvent Activities.
Hi all, Thanks to great help previously, I'm up and cooking with my derived StateMachineWorkflow activity. Hence - another problem. In the 'dervivedWF' I want to call a common 'RunCodeCondition' method from a set of IfThenElseBranch/CodeConditions - however, the method does not display in the drop down Funny enough - from a HandleExternalEventActivity, part of the bindings for input parameters..... inData *IS* selectable for a parameter. I wouldnt have thought I'd have to create a dependant property for this (Mind you, it doesnt compile at the moment - non descriptive error - just fail, so it all could be wrong) Anyone done this or sim ...Show All
Software Development for Windows Vista ServicedComponent shared Transaction
A more general question about how Transactions are promoted and propageted: Considering I have a COM+ Server Application with multiple ServicedComponents, I have a client making use of multiple ServicedComponents and the clients wants the calls to the serviced components to be transactional. The ServicedComponents are not JustInTimeActivated and support therefore not the "old" transactional style. A client would do the following: using (TransactionScope a = new TransactionScope()) { using (Component1 c1 = new Component1()) { c1.DoSomething1(Transaction.Current, ...); c1.DoSome ...Show All
Software Development for Windows Vista Breakpoints not always active
I wanted to clarify how the workflow debugger was designed to work. Assume that I have two projects: ProjectA is a Winforms application (not a workflow project) and ProjectB is a WF DLL project containing my workflow. ProjectA hosts the WF runtime and starts the workflow that is defined in B. I can place a normal Visual Studio debugger breakpoint somewhere in the workflow code, for instance in the code-behind for a CodeActivity. In this scenario, if I start ProjectA in debug, I will successfully hit the breakpoint in ProjectB. All of that works as I would expect. However, if I set a workflow breakpoint o ...Show All
SQL Server Selecting the Current Date or yesterday or previous Year, month, quarter or prevous whatever level in the time dimension ?
Hello Does there exist an intelligent time dimension which indicates eg the current date (, year, quarter, month, day), or the previous date (, year, month, quarter, day) I could make a processing-date dimension which is based on the GetDate function of TSQL (sqlserver) ! because we daily do processing ! Actually, we try to solve this issue in scorecard, maybe scorecard is intelligent enough to select the current or previous date in our time-dimension ! Kind regards ...Show All
Software Development for Windows Vista HandleFault and exception handling
From what I can tell, if I have a custom activity that throws an exception, this activity's HandleFault method is called, but the exception/fault really isn't 'handled' unless there is a fault handler setup for the thrown exception type; right And, in such a scenario, the HandleFault method of any containing/parent activity is NOT called, but the exception is propagated up to them if not handled at a lower level. Is this the way that it's supposed to work If so, is there any way to have the HandleFault method of the parent (or even top-level workflow) activity to be invoked when an exception is thrown from a child activity ...Show All
Windows Forms scheduling
Hi I would like to schedule operations in my windows form, is there anyone that has any experience in that or maybe could provide any good tutorials for this Regards http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vboricreatingconfiguringwindowsserviceapplications.asp http://www.codeproject.com/csharp/windowsservice.asp ...Show All
SQL Server Setting Passwords In Connections Using Script Task
I have a situation where I have to read an encrypted password from a table and set the password and userID for the connections. I wrote functions to retrieve the data from a table, decrypt the password and UserID, and set the connection string for the connection. What happens, though, is that the connection string I wrote to the connection gets changed when reading it back so that the password is no longer included. Also, in testing the connection, it fails, telling me login fails. Can anyone shed any light on this Does anyone have sample code to show the setting of a password for a connection in a script task All of the examples I find are ...Show All
Windows Forms How to set Password as the mode for textbox in datagrid
I am adding a textbox column at runtime in a Datagrid control(not a Datagridview control).This textbox is meant to enter password.How do I hide the text( i mean encrypt this text) while user is entering password in the textbox. Thanks Supriya You must creat a new class that inherits from DataGridTextBoxColumn an implement this feature, see the code below: Option Strict Off Option Explicit On Imports Microsoft.VisualBasic Imports System Imports System.Drawing Imports System.Windows.Forms ' Coluna do DataGrid para senhas Public Class DataGridTextBoxColumnPwd Inherits DataGridTextBoxCol ...Show All
Visual FoxPro report labels
hi all,im making new reports during run time according to users actions.for example he selectes some fields from comboboxes then he puts in a text box a value that is for the "where like.."and i save the results in a temporary table.from that table i create report and the i report form to print the new report..the problem is that the new report has as labels the names of the fields..for example if the field name is costomer_id it shows costomer_id is there a way to change in run time the name of each labe so that when you choose for example costomer_id it will print Identification Of Costomer.. the reason is that if i can change the label i ...Show All
Software Development for Windows Vista Questions for Persistence and Tracking on Lab03
Hi, All, I'm new to the Window workflow and just tried Hands-On Lab 03, it runs ok but I have a few questions for SQLTrackingService on Exceise 2 Task2. In Task2, we addService(new sqlTrackingService(connectionString)) and inside of GetInstanceTrackinfEvents( ) we have SqlTrackingQuery sqlTrackingQuery = new SqlTrackingQuery(connectionString); SqlTrackingWorkflowInstance sqlTrackingWorkflowInstance; sqlTrackingQuery.TryGetWorkflow(instanceId, out sqlTrackingWorkflowInstance); Which SQL stored procedures or tables in TrackingStroe database it use to write or read the workflow instance info here I don't find how it could u ...Show All
Windows Forms Resources use.
Hi all. Please, can some one help me in this questions . -What is the correct way to link resources like Bitmaps, Icons.. with in aplication -How load at run time from resources -Is necesary free this resources after used . Thanks ...Show All
Visual Basic How to download file with vb 6.0
hi i am getting a problem in downloading file from the internat in visual basic 6.0. e.g. i want to download file from www.sitename.com/file.pdf site where sitename is the name of the site and file.pdf if the file which i want to download . If anyone have idea so please help me.Its urgent Thanks. There are a lot of examples on the internet . Here is a little example: Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Const INTERNET_FLAG_EXISTING_CONNECT = &H20000000 Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _ (ByVal lpszAgent As String, By ...Show All
