Dennis_x's Q&A profile
.NET Development About SmtpMail.Send() Method
Hi all, This is Hari, In my application I need to generate a report for different people and send it through mail as attachment, and my approach to this task is I will generate a report for single person ,And send it to his Mail ID and then I will delete the report and generates next person’s report and send it. To send the report I am using SMTP server. I am able to send the mails if all the mail ids are correct, if the mail id of a person is incorrect in between I am able to handle the exception but I am not able to delete the report of that person the error I am getting is "Internal system error. Access to the path.... "Even I am not able to delete the file manually .How can I come out of this plea ...Show All
Visual Basic Problems with Evaluation Version
Hi, Turned on the PC tonight, went straight to the Microsoft web site. I was interested in downloading vs.net for 90 day trial, so I made my way to the Evaluation section and enter my details.... until I get to Country... well... my country doesn't exist!, Australia is missing from the drop down list. So I'm posting this here in the hope that someone from Microsoft reads these forums (as this is apparently the only avenue to contacting Microsoft on matters related to the trial version). Also, I have previously downloaded the trial version (twice) in excess of 2.5 gigs per pop, first time I tried to copy the IMG file (using Nero Express v6) I get an "Unexpected file format" error message. So I thought the file might be co ...Show All
Windows Forms Drawing a control to an image
I have a Windows Forms Control hosted in IE and I need to draw it to an image. But if I use the function BitBlt from gdi32.dll (which works fine with an standard application) I get a Security exception. The control is FullyTrusted (set with caspol, and with the control strong-named). I have also tried to use DrawToBitmap but it does not work. What can I do Thanks. I would guess that the security policy for Internet Explorer overrides the one you set with caspol.exe. IE doesn't know anything about .NET permissions. Try playing with your Web content zone; Tools + Internet Options, Security tab. Be sure to try it too with IE7, it has a much stronger "sandbox". ...Show All
Visual C# private new void Dispose()
Hi! I've a class, inherited from SerialPort, i implemented IDisposable in my class, but in the Dispose method warning about this method hiding the inherited Dispose method from SerialPort class. The warning suggest that use the 'new' keyword, and then the warning disappear and my Dispose method work ok too. What's is the explication of this some link I'm looking for documentation that explain it. Regards. Yes , it's the problem that i can't override it because isn't a abstract or virtual method :P However, with 'private new void Dispose()' works fine, i just want know why :) Regards. ...Show All
Visual C# I have 300 + Project Under a single Solution?
Dear Developers, I m workking on an application, i have more than 300 World Document Project ( VSTO ) , i wnat to add them in a single Solution file, and each projet has been binded now i have added more than 280 Projects, but its become too much slow, even if i add another project sum times i t show error and my whole VS 2005 IDE get an error,and shut down Please tell me what should i do is there any restriction for number of projects adding in soltuion, i ll be very thanks full to you Umer Khan Systems Ltd There is no hard limit to the number of projects you can have in a solution (at least, not that you're running into yet). However, as you increase the number of projects, the time and memory VS needs to load the solutio ...Show All
SQL Server Running Custom Business Logic during synchronization
I have a merge replication topology that allows some subscribers (clients) to retreive a number for certain columns (ie invoice number, order number, etc). I have implemented a custom business logic handler to check for inserts from the subscriber and before updating the server, I call a stored proc on the server to generate a new number. I update the data set and call ActionOnDataChange.AcceptCustomData. This works great for the publication db but I am trying to get this new number back into the subscription db. I am using web synchronization so I really don't have a connection back to the subscriber database. Any Ideas I was thinking about keeping track of the updates myself and build a sql string and somehow get that back to the s ...Show All
Visual Studio Sandcastle - System.NullReferenceException related to interface implementation
Firstly, I should note that I have found the solution to the problem I am about to describe, and that what I am querying is if the behaviour I have found is a bug. I am receiving the error message below from BuildAssembler during the processing of several of my assembly's type information. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator.WriteNormalMethodSyntax(XPathNavigator reflection, SyntaxWriter writer) at Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator.WriteMethodSyntax(XPathNavigator reflection, SyntaxWriter writer) at Microsoft.Ddue.Tools.SyntaxGeneratorTemplate.WriteMemberSyntax(XPathNavigator reflection, Synt ...Show All
SQL Server Calling Stored Procedure from SSIS
Hi I am trying to call a stored procedure which akes 1 input param from SSIS. I am using Execute SQL Task->Expressions->"exec s_Staging '"+ @[User::tblName] +"'" @[User::tblName] is the variable with Data Type:String ,Value:My_table SQLStatement->Stored Procedure Name But It throws an error [Execute SQL Task] Error: Executing the query "exec s_Staging 'My_Table' " failed with the following error: "Incorrect syntax near 'My_Table' ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. I have tried adding the following ...Show All
Software Development for Windows Vista Not able to Access IIS 7.0
Hi friends, I have installed Windws Vista RC1 on a clean michine. I have turned off UAC. I installed IIS 7.0 from Programs and Features in Control Panel. It got installed properly. I did not get any Errors while installing IIS. Now when i try to browse http://localhost/ i am getting an error. HTTP 503: Service unavaulable. I am not able to see the IIS 7.0 Manager console also. What might be the problem. Please send solutions or ideas to sravankasyapk@gmail.com or ksravankasyap@hotmail.com . Thanks & Regards, Sravan Kasyap K. ...Show All
Visual Studio Installing VS.NET 2003 on Server 2003
I'm having a probleming installing VS.NET 2003 on Server 2003. Halfway through Step 2,my computer shuts off with no warning. I have isolated my computer and disabled the McAffe anti-virus program and firewalls and it still is crashing. Any help would be appreciated. Thanks, Dean Can you please read the following blog post from Aaron Stebner: Visual Studio .NET 2003 and .NET Framework v1.1 log files And then post the last lines of the relevant log file ...Show All
.NET Development How to copy a file to a folder shared on the network
I am generating a zip file then I have to move it to a folder shared on one of the system in the network. How Can I to move a folder into shared folder on one of the system in the network in C# .net 2.0 The following line moves a file from C:\test.txt to \\LP51\c$\Test\test.txt . System.IO. File .Move( @"c:\test.txt" , @"\\lp51\c$\test\test.txt" ); NOTE: Make sure you have write permissions on NTFS level as well on Share level. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Software Development for Windows Vista StateMachine Workflow event raise after a SetState method call.
Hi, there In a StateMachine Workflow I am trying to do a next event raise after a SetState method call. But it does not work because the workflow did not finish the SetState method. In other words did not yet entered in the state, where SetState sent it. It is not yet on the OnIdle state. It will enter on this state until when I release this UI thread. On that situation I can press Next state, but I need now a NextState after the SetState. Is there any way to wait until the workflow goes to Idle-d state and do not have to release the UI thread Here is simple prototype: public class WorkflowManager { private WorkflowRuntime myWFRuntime_; static ProcessControlServices.ProcessControlBase myService_; private WorkflowInstanc ...Show All
SQL Server SQL 2000 SP4 and SQL 2005
Is it possible to have 2 SQL servers differents in the same machine I need to continue to use a DB on 2000 for an old services on BI and start to use SQL2005 for a new application and all in my laptop in order to be able to use them every where. Thanks It should be ok. I currently have both 2000 and 2005 installed on my laptop and I never had any problems in terms of compatibility. So far so good ...Show All
SQL Server Help writing SQL
I want to select records where a column is null, is not null or is equal to a specific number. How do I do this in one sql statement. My application is an asp.net web site with a business logic layer, a data access layer and sql server. Thank you in advance. ...Show All
Visual Studio Express Editions Left side solicits unassigned variable error
When assigning a value to a variable, I get the error Use of unassigned local variable 'outgoing' The compiler is complaining that the variable on the left side of the equals sign has not had any value assigned. I have two problems with this: First: I understand that the new used in the class should set all array members to zero. And second, this is on the receiving end of the assignment. What does it matter if it has not had a value assigned. Its getting one now. I used the same structure as the incoming argument in that called procedure Update_Raw_Data() and it compiles without error. This is the only error in the project. There simply must be something I cannot see. Please clue me in. If needed, I can zip and email the e ...Show All
