Ehsan Tabari's Q&A profile
Visual Basic Unhandled Exception Error
I get a unhandled exception error when I start the Code Snippet Editor. Is this because I only use c# and have not installed the VB components in VS 2005 Pro Andrew See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at SnippetEditor.SnippetPathsManager.getLocalisedName(String name) in D:\Documents and Settings\lorenzom\Desktop\Snippet Editor 2005 RTM RC\Snippet Editor 2005\Helper classes\SnippetPathsManage ...Show All
.NET Development Combine Visual Studio with Access
Hi All, I have an app developed in Visual Basic 2005 connected to an SQL Server 2005 database (both Express editions). What I would like to do is create an Access .adp connected to the same SQL Server 2005 database. It seems however that Access (I have 2002) does not support developing against SQL Server 2005. Never mind, I can use Visual Studio or SQL Server management studio 2005 to make changes to the database, and I can connect the .adp file to the database and make data changes. However when i open the .adp file i get a connection error when trying to run the VB app and I need to run both simultaniously. Is this due to some ...Show All
Visual Studio ".exclude" files in web project are themselves getting added to Source Control
Hi, I have read various posts about how it's not possible to exclude files from a Web project in the way we could with VS 2003. A bit of a pain in some circumstances, but fair enough. However, the exception to this rule is the dlls in the bin folder, because VS generates associated " .refresh " and " .exclude " files for these files, which in turn should cause them to be excluded. (Happy to be corrected if I'm wrong on this point) However, after getting in a bit of a tangle with VSS bindings, which I have hopefully restored correctly, all the " .exclude " and " .refresh " files in the bin folder are marked in the pending checkins ...Show All
.NET Development connect to SQLSERVER2005
I cannot connect to sqlserver 2005 from vb.net 2005 professional edition, I received the err. sql server not connected, the remote computer does not exist Please take a look at http://blogs.msdn.com/sql_protocols/archive/2005/10/22/483684.aspx Or, search the internet using the error string that is returned when the connection failed. You should reach the same or similar blog. HTH, Jimmy ...Show All
.NET Development Error using the Web Site Administration Tool
I am getting the following error message in Security tab of the Web Site Administration tool: Value cannot be null. Parameter name: virtualPath I have only noticed this error when I host the web site on my local IIS in a directory that is not under c:\inetpub\wwwroot\. That is, I have created a separate folder that I web shared to use as the web application folder. The web application runs fine, showing that the web shared folder is set up correctly on the local IIS, but I cannot set up the security / users/ roles in the Web Site Admin tool. I do not observe this problem if the web site folder is under c:\inetpub\wwwroot. Has anyone c ...Show All
.NET Development System.Web.Mail Help Please...
Hello, I've tried searching and searching, but I've had no real luck. I'm working on sending an email via an external SMTP server (I'm trying to use Gmail.com, could this be a problem ) and then send to another email, which also happens to be a Gmail.com address. Now, before posting my code, I'd like to say, what I'm developing this for is basically a plugin for a program based on .NET 1.1, so I don't believe that System.Net.SmtpClient is an option, so therefore I'm stuck with System.Web.Mail. Dear Vikram & Dmcneil I am Also encountering the same problem as you both guys were, and you both have helped each other and find th ...Show All
SQL Server Format Table Row into XML and Insert into Another Table?
First I am using SQL Server 2000 (I think this is easy to do in 2005) I am trying to do the following: - Format a table row into an XML string - Insert the XML string into another table. Here is what I want to do in a nutshell: insert into Table1(xml_data) select * from customers where customerid = 'alfki' for xml auto, elements However, I get the following error: The FOR XML clause is not allowed in a INSERT statement. I tried a few other formats, such as User Defined Function and etc. Can this be done Any ideas ...Show All
.NET Development threading and debugging?
Hi there. Sorry for posting a daft Q, my apologies. I was wondering if it is at all possible in VS.NET 2005/.NET 2.0 to still step through the debugger when a thread has been started I would like to see what is actually happening in that thread. Or is it best to not implement threading until I have made sure that a method is meant to do what it should do, then implement a threading on that thread Another Q I have is this: when you do a "thread.Start()"... any code after this line does not seem to be executed, is there a way to do so so I may have a method like so: //some Method this.lblMain.Text = "hello"; someThread.Start(); //stops ...Show All
Windows Forms MenuStrip Items Iteration
I want to iterate through all ToolStripMenuItems in the Items collection of a MenuStrip using foreach. It seems that only top-level menu items are returned. For example a "File - Open" menu item is not returned, only the "File" Item. Is this a bug in the control or am I doing something wrong I have inserted the sample code segment below. foreach ( ToolStripMenuItem itm in MainMenu.Items) { // do stuff with the item } Well, MainMenu only contains the top-level items. If you look for items that are in the popup menus displayed by the menu when check the DropDownItems property ...Show All
Smart Device Development Writing to a file in Mobile 5.0
I created a program that writes to a text file for PocketPC 2000 - 2003. It works great, however it doesn't work for Mobile 5.0. It can create the file just fine. I am using streamwriter and it just doesn't write to the file in the Mobile 5.0. My file is blank. Anyone have experience with this Are you sure data is actually written Perhaps, you have an exception before that happens Also, do you flush the stream ...Show All
Visual Studio Team System TF10216: Team Foundation services are currently unavailable
I finished the TFS install, with a lot of problems. I can connect to the server, however, if I go to "Team Foundation Server Settings | Security" I receive the following errors: Failed to query the source control global permissions for [SERVER]\Service Accounts Team Foundation Server foundation does not exist or is not accessible at this time. Technical information (for administrator) HTTP code 503: TF30059: Fatal error while initializing web service I also get error TF30177: Team Project Creation Failed when attempting to create a new project. ------------ Event Type: Error Event Source: TFS Version Control Event C ...Show All
Windows Live Developer Forums Msn seems to be something wrong in my computer>
Hello there, (to everyone). I wanted to ask everybody opinion about these problem i facing. First, there is no question and solution on the help section of msn messenger. Hence, my msn messenger cannot send file, i mean transfer file to my buddy. Is all my friends i cannot transfer any file. ( i scan before my computer and no virus indicate). Continue, for my hotmail i cannot send attachment. ------------------------------------------------------------------------------------------------ I hoping everyone will help me get solution for my msn messenger, or i will being torture cannot send important file to my friends.... well zip ur fi ...Show All
Visual Studio Config Website
I am going round and around (4 days now) uninstalling and reinstalling Visual Studio Web ( I have also tried Visual Studio 2005). Every time I try and access the Admin Site I get the errors below. Please help - I'm going mad..... Thanks a lot, Mark. An error was encountered. Please return to the previous page and try again. The following message may help in diagnosing the problem: System.InvalidOperationException: Method failed with unexpected error code 50. at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections ...Show All
Smart Device Development Application uses too much memory
I'm working on a Pocket PC application in VS 2003 (C#). I'm working with a database(collecting, inserting data). The application has several screens. While testing I noticed that the application constantly uses more and more memory while I navigate from one screen to another several times. I used some threads. I thought that mismanaged threads are the problem and removed them for testing. Even without using threads the used memory increases. Even if I quit the application the used memory is not freed( !!!!). Could someone give me some hints of where the problem might be I tested a little more and I found new quest ...Show All
.NET Development Looking for an absolute definition of "Local Time"
The expression "Local Time" is thrown around a lot in the MSDN documentation. When it is defined, this is the standard definition (example taken from the documentation for TimeZone.ToLocalTime) : Local time is the date and time on the computer you are using Is this absolutely always the case, with no ambiguity In particular, since the Start and End properties of DaylightTime are defined as being in "local time," does this mean that a DaylightTime for Pacific should return different Start and End values in Denver than in Boston (requiring a time zone conversion be performed on the very structure that supports time z ...Show All
