Richard Blackburn's Q&A profile
.NET Development having problem in sending email to Active Directory groups
Hi, I am trying to send email through System.Web.Mail.SmtpMail class. the email is going to individual email addresses but if i try to send it to email address of Active Directoy groups, email goes to individuals but not to groups and no errors. Is there any authentication problem going on. how come i send email to group through a simple code like below: System.Web.Mail.MailMessage message = new System.Web.Mail.MailMessage(); message.Cc = "all@domain.com"; message.To = "adil.hussain@domain.com"; message.Subject = "TEST MESSAGE"; message.From = "test@domain.co ...Show All
Visual Studio BrokenToolboxItem objects: where do they come from?
Is there any way to figure out where a BrokenToolboxItem comes from I have one that keeps getting created. When I drop it on a Form I get an error message. When I catch the exception thrown, by attaching to the devenv.exe process with a debugger, I am able to examine the ToolboxItem that causes the problem -- but it gives no clues. It says its type is simply "Component" and its namespace is System, as if it were a toolbox item just for the System.ComponentModel.Component class. Is there a way to determine the culprit creating this item This problem is now in the product feedback center. I submitted to support as well but don' ...Show All
Visual Basic How Can I Use Flash file (swf) in my vb2005 project as a splash creen
I have created a project using vb2005, I want to make the splash screen as a flash file Instead of images. How Can I do this it is Ok with all forms but not splash I have added item as splash screen into my project and aslo other time s normal form, I add the flash in these forms and I have assigned it as splash screen from (my project --> application) in this case the error comes . but in normal form there is no error ...Show All
Visual Studio Express Editions Error Locating Server/Instance Specified
Visual Basic 2005 Express Edition: I got this error message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) On this line of code: Me .RxTableAdapter.Fill( Me .RxDataSet.Rx) I am not on a network. This is just a dummy test file. The table actually has no records at all in it right now. The program has been working fine. I can't think of anything that I changed that ...Show All
Visual Studio Team System Avg. Response Time
Hi, I am running a load test containing webtests. Each webtest has one webservice request. The avg. response time of each request is aroung 12msec(0.012sec). I see a counter "% Time in Webtest Code" which shows around 45%. My question is if the avg. response time also includes the time spent in the webtest code . If this is the case, is the actual response time 12msec - 5.4msec(45% of the total avg. response time) Please advise. Thanks, The reported response time is just the time between submitting the request and receiving the response from the server. So, the actual response time for the requst is ~12 ...Show All
Visual Studio Express Editions Problem with the Visual C++
Hello. I'm a beginner in C++, and I bought a book to learn it. I reprinted program from this book, and pushed F7 to generate the program, But i saw error: Project : error PRJ0003 : Error spawning 'cmd.exe' What is it Is it problem with download, or something else I have screenshot of this, but I don't know how to upload it May we see a code sample I understand you got it from a book, but I would like to recreate the problem. It should have worked if you created the project correctly. ...Show All
Windows Forms Using ErrorProvider for multiple text boxes
I have a sample program that takes in change (money) amounts and converts them into the largest denominations possible (I teach VB.NET at a college and I made it up for my students to do). I am using the error provider to validate the input in each text box. Unfortunately, I have to duplicate the code for the validating event for each& ...Show All
Visual C# StreamReader & Console Apps
I am using System.Diagnostics.Process to execute an external process. When I set RedirectStandardOutput = true and attempt to read the entire stream either with ReadToEnd(); or looping with ReadLine(); the application freezes or waits continuously on the last read. What do I need to do to read the whole stream and continue with the application String data; Process proc = new Process(); proc.StartInfo.UseShellExecute = false; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.FileName = "cmd.exe"; proc.StartInfo.RedirectStandardInput = true; proc.StartInfo.Redire ...Show All
.NET Development Implementing an IDictionary class
I am working on a class, that implements IDictionary, and the problem is, IDicitionary requires one type of GetEnumerator, and it implements ICollection, requireing a different type of enumerator. I have three options, each generates it's own little error: The most obvious implementation (it gives an error complaining about two implementations of GetEnumerator differing only by return type) public class Configuration : IDictionary { /* implemention required, but [most likely] irrelevant code */ public override IDictionaryEnumerator GetEnumerator() &n ...Show All
SQL Server The path is not valid. Check the directory for the database.
Hi My program in design time preview data and work with Sql Data Base (sdf) activesync connected device. but when run the program This message appear: The path is not valid. Check the directory for the database. help me thank you mahyar what is going on here is that you have a VS2005 designer session connected to a SQL Mobile database which is on a mobile device connected through ActiveSync. As a result, the connection string to the database which is automatically generated with the bindingsource is a special connection string that only works from within VS2005 and it begins with DataSource = Mobile Device\ ...Show All
Windows Forms Site Property
Is it that the Site Property of a Component is not available at Runtime. Actually I have developed a custom Control and placed it on a Windows Form. In one of the properties of the Control I have used this.Site.Name = ..... But whn I run the application it gives me a NullReferenceException saying the Site is null. Can u tell me what can be done&nb ...Show All
SQL Server SSIS 2005 feature request (small things)
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
Visual Studio Parallel build
Hi, I tried to use parallel build feature announced in Whidbey. I created a solution and added several projects (of my own project type) into it. Then I set Tools/Options/Projects and Solutions/Build and Run/maximum number of parallel project builds = 4 After that, I said build solution, but the solution was't built in parallel. What should I do (implement) to support this feature in my package VSIP examples don't support parallel build as well. BTW, if a solution contains at least one MS VC++ project (along with custom projects), parallel build works fine. I wonder why it is happening Thanks, Vadim. ...Show All
Visual Studio Express Editions problems with deplyment
I am using iis 5.1 on a windows xp computer. I have created a webpage in asp that works perfectly, except for when i try to login it says somthing about sql server connection string and how sql server isnt enabled for remote assistance. The only problem with that is i dont have sql server installed on the machine. Thanks J.D. Hi JDaddy, A cordial welcome to the MSDN fora to you. I have a belief that if you were to take a moment and read the post at the top of this forum about how to receive an optimal answer to your question, that it would benfit you and all users of the community. Enjoy! ...Show All
Visual C# Custom types of ApplicationSettingsBase not expandable in property grid
Hi, How can I make the TestSettings class (below) browsable/expandable in the property grid, when it acts as a property of EngineSettings The code below does not work...what might be wrong p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} @page Section1 {size:595.3pt 841.9pt;margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.Section1 {page:Section1;} [ TypeConverterAttribute ( typeof ( ExpandableObjectConverter ))] [ Category ( "Engine Settings" )] [ Description ( "Settings for the Engine" )] sealed ...Show All
