rpreston's Q&A profile
.NET Development SMTPClient Error when sending mail from a windows service
Hello, I'm getting this error when trying to send an email using the SMTPClient from a web service. Unable to read data from the transport connection: net_io_connectionclosed. SmtpMail = New System.Net.Mail.SmtpClient( My .Settings.Default.smtpServer) SmtpMail.Port = 25 msg = "TEST" Dim email As New System.Net.Mail.MailMessage Dim addresses As String () = { "rbrown@aaaaaaaa.com " } My .Settings.Default.emailAddresses.CopyTo(addresses, 0) email.To.Add(Join(addresses, ", " )) email.From = New System.Net.Mail.MailAddress( My .Settings.Default.fromAddress) email.Subject = "System Error: " email.Body = msg Try SmtpMail.Send(email) Catch ...Show All
SQL Server Disarming IDENTITY generation
Ok, suppose I have created a new table with an Identity column, but I want to load the table from an existing table and I can’t let SQL Ev reset the Identity values. In SQL Server I can turn off Identity generation using SET IDENTITY_INSERT biblio.dbo.authors OFF Is there an equivalent in SQL Ev My next question is (if this does not work), can I use ALTER TABLE to disarm the Identity value and re-arm it after the load Bill, no, you cannot disable the generation of identity values as you insert records into a table with an identity column, but you can alter the seed and increment values on the column using ALTER TABLE ALTER COLUMN standard syntax. For example, if the rows you ...Show All
Software Development for Windows Vista Cannot create more than one worklfowRunTime per AppDomain
Hi, In web.config i have < configSections > < section name = " WorkflowRun " type = " System.Workflow.Runtime.Configuration.WorkflowRuntimeSection, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " /> </ configSections > In my asp.net web form i have using System.Workflow.ComponentModel; using System.Workflow.Activities.Rules; using System.CodeDom; using System.Workflow.Runtime.Tracking; using System.Workflow.Activities; using System.Workflow.Runtime; using WorkflowLibrary3; public partial class _Default : System.Web.UI. Page { //private WorkflowRuntime workflowRuntime; WorkflowRuntim ...Show All
SQL Server After install Visual studio 2005 crm 3 Stop working
What ido Alysoft, I'm assuming you mean Microsoft CRM 3.0, My first suggestion is to check the IIS web site for CRM and make sure on the .NET tab that your CRM is under .NET framework version 1.1, this is a common problem after installing Framework 2.0 where CRM web site reside. PS, I hope this is not production. Ham ...Show All
Software Development for Windows Vista Windows Treeview .net 3.0
I need some code sample to reorder tree nodes of a treeview in .net 3.0 Can anyone help Thanks, Shivali ( shivali.sadavarte@tcs.com ) This sounds like a Windows Presentation Foundation question which should be asked here . ...Show All
SQL Server Error 1612 - can't get Express installed
I have done all I can to resolve this on my own and would really appreciate any help anyone can give me. I have run uninstall utilities, followed a few MSDN reinstall methods, but all roads lead back to this vicious cycle: The install hangs trying to install the prereq Microsoft SQL Server 2005 Setup Support Files with Error 1612. So I try to uninstall the Support files using Add/Remove..but the Windows Installer looks for "Microsoft SQL Server Native Client" disk, which of course I don't have because I install from downloads from Microsoft. That's the very short version. I've got a ton of hours reading help groups, MSDN, trying everything. I have posted the error log file below. Thanks in advance. === Verbose logging ...Show All
SharePoint Products and Technologies Upgrade to sharepoint V3
I am trying to upgrade to WSS V3. I have set up a test server as suggested and run the upgrade service pack. The instructions tell me to run a prescan on the live site by locating "prescan.exe" and "preupgradescanconfig.xml" after I have run the upgrade on the test server, problem is that only the "prescan.exe" is present in the "bin" folder, has anyone run into this ...Show All
Windows Forms Small problem (MDI form, ToolStripContainer) but very urgent
Hello to everyone, I have a small problem but it is a very urgent one. I have an MDI form which contains a ToolStripContainer for ToolBars and some others. The problem is appearing when I am trying to open a new child form. I cannot see this ChildForm because it is behind the ToolStripContainer of the MDIForm. Can you give a solution to this Thanks in advance and HAPPY NEW YEAR. I've found an answer to your question by googling: http://www.windowsforms.com/Samples/Go%20To%20Market/Tool%20Strips/ToolStrip%20GTM.doc This document states that ToolStripPanels are not well integrated into the designer, and therefore, they should be used by code. But, for my part ...Show All
Visual C# C# Programming->Structure
HI why we can't initialize the variable inside the structure. Hi I have so many Query regarding structure in c#. please explain all these question in a descrptive way. 1. when to use structure Can any one explain me with real time example. 2. how structure is value type how we come to know that particular type is value or reference. Is there any criteria to identify the value type and reference type 3. why we cant initialize the variable inside the structure. Is it something related to value type. but we can initialize the variable inside the class 4. Why we can't create the parameterless(default) constructor inside the structure. 5 A struct cannot inherit from another struct or c ...Show All
Visual Studio 2008 (Pre-release) Failed to Add a web reference in Biztalk
I have a WCF service that will be consumed by a process in BizTalk 2006, I binded it as a basicHttpBinding. Then I tried to add it to Biztalk 2006 using VS 2005 "Add web reference", an error raised "Failed to add a web reference". Please advice how can I add a WCF service in Biztalk 2006. Best Regards; ...Show All
SQL Server How to get records (In this week) only?
Hi, How to get records from MSSQL database which only recorded from the biging of this week in example my week begin from Sunday.. Weeknumbers are probably the trickiest part of a date. While this works well for US-style weeknumbers, just be aware that it doesn't work as well for those of us who use the ISO week numbering scheme. That is, weeknumbers are dependant on which country's calendar it's applyed against. /Kenneth ...Show All
SQL Server Sizing SSAS2005 Server
Hi! I am looking for a document or formulas on howto size a Analysis Services 2005 Server. I will have a bigger model - guess ~10 GB (howto calculate more exactly if I have it already modelled - this is only relational size diveded by 4) I have some dimensions with 1 Mio members at key level. Performance is highly important I have two small <=5000 Member parent child dimensions I have multiple measuregroups some calculations we want to do dimension update / partition processing / incremental processing on the same machinge we use enterprise edition we will have up to 2000 named users - regulary no more then 50 concurrent (at peak time maybe 75-100) IS there a 2 processor (4 in Hyperthreading) 64 Bit w ...Show All
SQL Server 2005 replication alter table ?
Hi There I am using transactional replication in 2005. I am used to 2000 where if a column was added or changed to had to use sp's to do this and for altering a column you had to drop the subscription change and add back etc. With 2005 is this fully handled by ALTER TABLE, can i safely make any meta data changes to an article with ALTER TABLE and the changes will progate to subscribers no problem. Or are there limitations are there certain changes to articles that must still be done through sp's Thanx Hi, SQL 2005 nows supports to use ALTER TABLE directly to publication database to change the schema. For the things to consider, please see the following documents in BOL: "Making sche ...Show All
Visual Studio 2008 (Pre-release) No endpoint listening IIS hosted WCF Service
I keep getting the No Endpoint Listening at ... error when I try to call a method on my service that is hosted inside of IIS. Any help would be greatly appreciated. Here is my configuration. <system.serviceModel> <bindings> <wsHttpBinding> <binding name="ECommWSHttpBinding"> <reliableSession enabled="true" /> <security mode="Message"> <transport clientCredentialType="None" /> <message clientCredentialType="UserName" /> </security> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfig ...Show All
Windows Forms Owner drawn items for combobox in disabled state
I am implementing a combobox with icon on the either left or right side of the text. I wan to be able to draww it in disable state correctly (greyed). How i do it Umm, ComboBox owner draw only lets you draw the items in the dropdown list. If it is disabled, you can't access that list... ...Show All
