Nfrf's Q&A profile
Visual C# NullReferenceException was unhandled.
I was sending a pictureframe to a client in synchronous mode which meant, the program gets blocked until the client is found or transfer is complete. Consequently, I shifted to asynchronous mode. Now as far as i can see, there's nothing wrong with the client/server bit of the code but the part, where I am copying the picture frame from a clipboard throws this exception. It's utterly preposterous ! Apparently NOTHING gets copied from the clipboard and the IDataObject ends up having a null status. This never happened in the synchronous communication mode, hell, i didnt even touch the frame grabbing portion of the code. Anybody know whats wrong See the problem is that the data which i'm copying from the ...Show All
.NET Development Sending digital signed mail with .net 2.0
I see the solution in this forum that works fine: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=943659&SiteID=1 That solution sign and encript a message. But I need only to sign a message whitout encription, to send a mail like with outlook with the follwing options: "Add digital signature to outgoing messages, and Send clear text signed message." Can anyone know the option to do this Thank you, The digital ID was not sent encrypted. It is the public key + chain information so that the receiver can trust. I don;t know the red or green icons, but the whole envelop is the way it should be. ...Show All
Visual Studio Express Editions VS .net 2005 vs express
As far as the implementation of VB goes does studio .net pro have any advantages over express that would be worth spending the money well with express its limited to what you can do within the IDE, such as only 1 dev language for Winforms and no mobile development features and no reports like crystal reports. VS.NET full has all these features and you can use multiple languages in 1 environment and solution as well as being able to create ASP.NET sites in the same environment. ...Show All
Software Development for Windows Vista entry in workflowinstance table missing
Hi, We are very new to WF and trying to implement state workflow in one of our applications. We feel that the workflow instance persistance is not stable in workflowinstance table. The entry for some workflow instances automatically moves out from workflowinstance table. So we are getting "workflow with id xxxxxx not found in state persistence store" error message. Am I correct to say that, the record will be deleted from workflowinstance table only after the termination even is fired A custom persistence service is a persistence service written by a third party that inherits from "WorkflowPersistenceService" and provides persistence services in however manner the developer ...Show All
Visual Studio send datatable to report as report source
hi, see this code: ------------------------------------------------- Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\programmi\Magazzino Gestione +mag oledb\Magazzino.mdb;Jet OLEDB:Database Password=q") conn.Open() Dim cmd = New OleDbCommand("select * from qualifiche where codqualifica=1", conn) Dim dta = New OleDbDataAdapter(cmd) Dim dt = New DataTable() dta.fill(dt) conn.Close() Dim l As LocalReport = Me.ReportViewer1.LocalReport l.ReportPath = "C:\Documents and Settings\Administrator\Documenti\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Report1.rdlc" l.DataSources.Add(New ReportDataSource("qualifiche", dt)) Me.ReportViewe ...Show All
SQL Server retrieve the value that occurs the most
Hi, I am trying to retrieve the value that occurs the most at a dimension level. For example, I have to analyze the product type mostly used in a specific target segment by number of products. The mathematical function normally used is MODE. However, in AS2005 there is not such function. I tried to use TopCount but it is not as easy as I thought. Any suggestion Thanks! I think TopCount would only get you a mode if you were to use it against a count measure. I am guessing that you want to find out which member from the product dimension has the most transactions against it for a given set of criteria. Depending on the granularity of your dimensions you may have difficulty doing this with ...Show All
Visual FoxPro Error loading file
Hello, I can't open same forms and report, I getting error "Error loading file - record number n. "object" <or one of its members>. : Memo file c:\mypath...\my database.dct is missing or is infalid Is there a way to open these file I will deeply appreciate advices or ideas.. Thanks. You can check: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp/html/err1881.asp ...Show All
Visual Studio 2008 (Pre-release) WPF System Tray Application
G'Day I'm trying to build a WPF application that will sit in the system tray until a specific event occurs which will cause a WPF window to magically appear. I have googled and searched the forum for more information about using the NotifyIcon but cant seem to get it working. Currently I have got my form set to ShowInTaskBar=False and I can make it invisible easily enough, however I just need to get an icon into the system tray so I can handle the activation events. Any tips Here's a quick example to show how to minimise to the notification area. You need to add references to the System.Window.Forms and System.Drawing assemblies. public partial class Window1 : System.Windows. Window { ...Show All
Visual Basic Shared Classes: Good Idea or Bad Idea
I wanted to solicit some opinions on this topic since we're laying some ground rules for VB.Net development in our organization. My observation so far is that shared classes are good for function libraries where the calls are stateless. For example, you might have a set of functions that performed common operations on a passed in value or object. It seems like this would be a good way to group this kind of functionality throughout the app or multiple apps. However, I’ve run into a few pre-built shared classes that required setting properties before calling functions and results from functions were available by getting a property with the function only returning a boolean. Making a shared class stateful like this seems like a re ...Show All
Visual Studio Team System Error with creation Project "SharePoint"
Any Idea, ---begin Exception entry--- Time: 2007-02-07 20:32:35Z Module: Engine Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: The Project Creation Wizard encountered an error while uploading documents to the Windows SharePoint Services server on ServerName. Exception Details: The Project Creation Wizard encountered a problem while uploading documents to the Windows SharePoint Services server on ServerName. The reason for the failure cannot be determined at this time. Because the operation failed, the wizard was not able to finish creating the Windows SharePoint Services site. Stack Trace: at Microsoft.Vis ...Show All
SQL Server Attach MySql database via internet
Hie ! Please, how to manage (attach,connect to) MySql database located on host server http://www.avanti.si from my home PC with Microsoft SQL Server Management Studio Express This " http://www.avanti.si:8080\MySqlDatabaseName,3306 " fail ! Thenks! hi, you should ask you provider about connection info.. assuming the "server" is named and available as " www.avanti.si " and 3306 is the port you have to use to connect to, you should provide that info in the SQL Server MAnagement Studio Express connection dialog as www.avanti.si,3306 in the server property, and provide your SQL Server standard login and pwd.. in the "options" tab you can, but is not mandatory as the <default& ...Show All
Visual Basic Data Access Question
I have two forms a login form and a information form....How i have it now u use your firstname as username and lastname as password...Then I want Form2 to take the firstname and the lastname u use to login and run that cmd and send that information to those txtcontrols....When i hardcode some strings and assign those to the where the login txtcontrols go it works from but when i have login.TextBox1.Text it does nothing....any help on this Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim login As Form1 = New Form1() Dim str As String = System.Configuration.ConfigurationManager.AppSettings( "conn" ) Dim Sqlconnect As SqlC ...Show All
.NET Development What is wrong with following code to get webrequest and save it locally
I am working on a desktop application.I have to download some file from the web then replace some token in the stream and then save it to locally. Some time source will be xml some time it will be html and some time csv so the content type is not strict. My code is following HttpWebRequest request = (HttpWebRequest)WebRequest.Create(" http://localhost/xml/mytest.xml "); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); System.Text.StringBuilder strb = new System.Text.StringBuilder(); strb.Append(reader.ReadToEnd().ToString()); strb.Replace(" ",""); reader.Close(); StreamWriter sw = new StreamWri ...Show All
Windows Forms How do i bring my application to foreground
I am facing problem when my application icon is clicked in the taskbar then it does not come into foreground as any other windows application does.Even though i have written code for window activate method.This is on c#. Ya this is the code i am using. private void MainForm_Activated(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal; this.Activate(); this.BringToFront(); } ...Show All
Visual Studio Express Editions setup IE vi vb net
1. I need to setup IE for a lot of users. The best way for me is to write a program that do that. I dont know Where to start 2. I need also to run "clear files" and " clear SSL STATE" for alot of IE users how to write a program to do so Thanks you may want to start here http://www.microsoft.com/technet/desktopdeployment/default.mspx because the topic really is system deployment and administration. ...Show All
