Visual C# IDE ForumQuestions and discussions on the C# IDE – including IntelliSense, refactoring, code snippets, colorization, bracematching, smart tags, auto-generated code, etc.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 14:43:15 Z9c7d3d09-a015-452f-9a90-8d30c45cfecahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/8c8d7874-ead1-4dc8-a177-71719c7c3645http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/8c8d7874-ead1-4dc8-a177-71719c7c3645tacihttp://social.msdn.microsoft.com/Profile/en-US/?user=tacipretty TreeView iconsI'm trying to implement a custom System.Windows.Forms.TreeView control using VS 2005 TS and I'm struggling to define the icons for the various tree node types. The problem I seem to have is that the icon editor creates a 32x32 image, which apparently gets scrunched down to 16x16 when rendered on the TreeView and always looks awful. Please can someone give me some hints on the best way to create decent custom icons for TreeView controls?<br/>thanks<br/>taciWed, 25 Nov 2009 14:38:48 Z2009-11-25T14:43:14Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/f261a89f-6089-48a7-9cbf-9e94c3bb54b5http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/f261a89f-6089-48a7-9cbf-9e94c3bb54b5harshu_poochihttp://social.msdn.microsoft.com/Profile/en-US/?user=harshu_poochiRetriving row by row from databaseI want to create a Login form in C#(using visual C# express 2005).<br/><br/> I need to compare the username and password  entered by the user with the values in the database.<br/>   <br/>  Plz help me in retrieving row by row from database using For loop(also what end condition to specify in for loop).<br/><br/> Also,suggest me a good website to guide me in working with database  in C#Tue, 24 Nov 2009 19:24:15 Z2009-11-25T12:16:59Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bb4eddf6-2e67-42c3-99f9-ff93c8a1598ahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bb4eddf6-2e67-42c3-99f9-ff93c8a1598aDa1Gronkhttp://social.msdn.microsoft.com/Profile/en-US/?user=Da1Gronkdebug stops at C# Debug stops at axShockwaveFlash1.LoadMovie any Ideas?debug stops at C# Debug stops at axShockwaveFlash1.LoadMovie any Ideas?<br/> <br/> Here's my code<br/>             axShockwaveFlash1.LoadMovie(0, @&quot;C:\LetterGame\Pix\title.swf&quot;);<br/>             axShockwaveFlash1.Play();<br/>             axShockwaveFlash1.Dispose();<br/> Flash 10 is registered.<br/> And the file is in the correct location.<br/> <br/> There is an error but it is so generic it's useless.<br/> <br/> I tried:<br/>             FlashOb1.LoadMovie(0, @&quot;C:\LetterGame\Pix\title.swf&quot;);<br/>             FlashOb1.Play();<br/> This finished compile but the screen was blank, no movie played.<br/> <br/> This same code works fine in vs05 and converted to 2010 fine, but when I tried rewriting the code from scratch in 2010 I couldn't get it to work.<br/> <br/> I am all out of ideas so I'm hoping some one else could help.<br/> ThanksTue, 24 Nov 2009 21:36:25 Z2009-11-24T21:36:25Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/3ce17c69-2f9c-4b4e-8570-d4af3b3f6a10http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/3ce17c69-2f9c-4b4e-8570-d4af3b3f6a10Anders Lundsgårdhttp://social.msdn.microsoft.com/Profile/en-US/?user=Anders%20Lundsg%u00e5rdVisual Studio Dataset Designer Shows Only Markup<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="" lang=EN-GB><span style="font-size:small"><span style="font-family:Times New Roman">When I double click an *.xsd file in Visual Studio 2008 I only got the markup code. When I rightclick and choose “View Designer” I only got a blank page. I’ve tried to repair the installation and installed SP1. Any tip what can be done?</span></span></span></p><hr class="sig">...and justice for allTue, 24 Nov 2009 11:52:08 Z2009-11-24T15:47:20Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/c16cc89c-b0b5-4c0a-b542-91ce4062a94ehttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/c16cc89c-b0b5-4c0a-b542-91ce4062a94eC-to-OOhttp://social.msdn.microsoft.com/Profile/en-US/?user=C-to-OOXAML Intellisense not working in VS2008SE The Text Editor options for XAML are blocked from edit and empty. WPF projects do not have intellisense active for my VS2008SE. I have checked the registry for  <p style="background:white;margin-left:0.5in"><font face=Symbol color="#080808" size=2><font>·<font style="font-weight:normal;font-size:7pt;line-height:normal;font-style:normal;font-variant:normal" face="'Times New Roman'">         </font></font><font style="font-size:7.5pt" face="'Arial','sans-serif'" color="#080808">HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32</font> <p></p></font></p>and it is assigned the correct value for &quot;default&quot; which I believe should be  -<br><br><font style="line-height:115%" face="'Arial','sans-serif'" color="#080808" size=2>C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll <br><br></font> <hr class=sig> BobMon, 16 Feb 2009 22:18:58 Z2009-11-24T15:42:11Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/5554dc00-5371-4673-81b5-7b1d6a099e70http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/5554dc00-5371-4673-81b5-7b1d6a099e70darkbluwhttp://social.msdn.microsoft.com/Profile/en-US/?user=darkbluwUser Control Property in Properties Window(Design View)Hi, <br/> <br/> I want to add a property to my User Control that will also be seen in Properties Window at Design View. <br/> <br/> The property will be seen as a comboBox in Properties Window and the user will select predefined values for the property. <br/> <br/> I tried this, <br/> <br/> <pre lang="x-c#">[Bindable(true), Category(&quot;Appearance&quot;), Browsable(true), Description(&quot;Choose a value &quot;), DisplayName(&quot;Button Türü&quot;), Editor(&quot;ComboBox&quot;, &quot;System.Windows.Forms&quot;)] public string SomeProperty { get; set; }</pre> I also tried making the type of SomeProperty, ComboBox. it didnt work either. In the Properties window, i see the SomeProperty property and next to it, a combobox. However the combobox is has the value (none).<br/> <br/> I will be glad if you guys help me out.Sat, 21 Nov 2009 17:06:00 Z2009-11-23T20:46:22Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/21040d7c-a56a-4d66-a50d-79767b9c0cd1http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/21040d7c-a56a-4d66-a50d-79767b9c0cd1AlanBirtleshttp://social.msdn.microsoft.com/Profile/en-US/?user=AlanBirtlesVisual Studio post build error messagesI am trying to run some unit tests in a post build step in visual studio for a c# project. One of the tests prints:<br/> &quot;error : function name: message&quot; <br/> to the console. The tests succeed and the test runner returns 0. However visual studio sees the message in the console and decides that the build has failed (&quot;The command &quot;call runTests.bat&quot; exited with code -1.&quot;)<br/> is there any way to modify this behaviour?Fri, 20 Nov 2009 13:32:34 Z2009-11-23T14:34:11Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/79e84cfe-3d4b-43c7-8d86-723208e4a64chttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/79e84cfe-3d4b-43c7-8d86-723208e4a64cdstorchhttp://social.msdn.microsoft.com/Profile/en-US/?user=dstorchundo manager<p>Hi all,<br><br>I have a C# application that was written using VS2003 and has since been converted to VS2005.  When I try to debug the application, I get the following error message:</p> <p>Error connecting to undo manager of source file pagename.aspx.designer.cs</p> <p>Can anyone shed some light regarding what this is?</p> <p>Thanks,</p> <p>Dan</p>Thu, 20 Jul 2006 14:54:01 Z2009-11-23T14:01:52Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/0c1eb2b3-0a9e-4972-9b76-337c542b6546http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/0c1eb2b3-0a9e-4972-9b76-337c542b6546Dee ghttp://social.msdn.microsoft.com/Profile/en-US/?user=Dee%20gVisual Studio 2010 Beta 2 Window Forms Error:The type or namespace name 'Commons' does not exist in the namespace 'MyCustom' (are you missing an assembly reference?)<p>I have created a new window form application in VS 2010 Beta 2 .I have added reference to a dll MyCustom.Commons.dll .<br/><br/>Here is my code<span style="font-family:Consolas;color:#0000ff;font-size:xx-small"><span style="font-family:Consolas;color:#0000ff;font-size:xx-small"></span></span></p> <span style="font-family:Consolas;color:#0000ff;font-size:xx-small"><span style="font-family:Consolas;color:#0000ff;font-size:xx-small"><span style="font-family:Consolas;color:#0000ff;font-size:xx-small"> <pre lang=x-aspx.cs>.<br/>.<br/>.<br/>using MyCustom.Commons; namespace WindowsFormsApplication1 { public partial class TestForm : Form { public TestForm() { InitializeComponent(); } } }</pre> <font face=Consolas size=1 color="#0000ff"><font face=Consolas size=1 color="#0000ff"><font face=Consolas size=1 color="#0000ff"> <p>when I build this application I get error is <br/>Error 1 The type or namespace name 'Commons' does not exist in the namespace 'MyCustom' (are you missing an assembly reference?)<br/><br/>Please help!</p> </font></font></font></span><font face=Consolas size=1 color="#0000ff"><font face=Consolas size=1 color="#0000ff"> <p> </p> </font></font></span><font face=Consolas size=1 color="#0000ff"> <p> </p> </font></span> <p> </p>Fri, 20 Nov 2009 12:40:50 Z2009-11-23T13:24:52Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bcffd8fb-f10a-4326-83b0-029519ecf8b6http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bcffd8fb-f10a-4326-83b0-029519ecf8b6Oren Novotnyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Oren%20NovotnyChanges in the CSC compiler<p>So given that even with multi-targetting, using VS 2010 forces you to use the 4.0 ToolsVersion for building projects.  If you change the ToolsVersion to 3.5, VS will prompt to &quot;upgrade&quot; the next time you open it.  <br/><br/>The effect is that CSC 4.0 is used as the compiler while it's referencing CLR 2.0/3.5 libraries.  If you use MSBuild on the command line, you can override the toolsversion to be 3.5 and it'll use the 3.5 CSC compiler.<br/><br/>So the question/issue is this -- given that 4.0 is still beta software, it would seem that there's inherent risk in using a beta compiler even if the target CLR is 3.5.  I should think that there's a possibility of code-gen errors that could possibly make unit tests pass on the developer's machine.  Certainly the output would have to be treated as suspicious, no?  <br/><br/>Clearly any/all of the build servers shouldn't touch the 4.0 toolset/fx until RTM, and the build process does run unit tests.  Nonetheless, I suppose it is possible some subtle bugs could get through where the developer doesn't notice something because they're in VS 2010 and the tests appear to pass.<br/><br/>My question is what are the realistic odds of this?  Assuming we're talking about the CSC 3.5 feature-set, what kind of changes were there in the compiler and how ready is it?  Or has the compiler been pretty well tested at this point and is essentially frozen?<br/><br/>I'm just trying to get a realistic sense of the risk probabilities and variables.<br/><br/>Thanks</p>Sat, 21 Nov 2009 05:12:00 Z2009-11-23T08:05:27Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/2889a80b-ac17-4f26-b1ad-bc5ef411716bhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/2889a80b-ac17-4f26-b1ad-bc5ef411716bKangSuhttp://social.msdn.microsoft.com/Profile/en-US/?user=KangSuNot properly attaching to a processA have a VSTO 3.0 Excel addin and I'm using VS2010 Beta2 targeting .NET 3.5.  Since I'm actually developing against Office 2010, I manually specify the location of Excel.exe in the Debug Properties page.  When I F5 debug this application it attaches, but doesn't load the symbols for the addin (thus I get the dreaded &quot;no symbols for this document&quot; on my breakpoints).  BUT if I just start Excel from explorer and manually attach to it then I get full symbols (and working breakpoints).<br/><br/>Now one thing I have noticed is that when I manually attach to Excel.exe the type of debugger is the Managed v2.0 debugger.  But when I F5 attach to Excel then it is v4.0 debugger.  Given this is a .NET 3.5 addin maybe that is the problem.  How can I tell VS2010 that on F5 debug use the v2.0 debugger type (if you think that this is in fact the issue)?<br/><br/>Thanks!Fri, 20 Nov 2009 18:39:41 Z2009-11-20T21:14:48Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/98fe27be-83a6-4374-b637-88e36831ff7ahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/98fe27be-83a6-4374-b637-88e36831ff7aKangSuhttp://social.msdn.microsoft.com/Profile/en-US/?user=KangSuError upgrading a C# projectTrying to upgrade a C# solution.  Six of the projects upgrade just fine, but one does not.  Unfortunately, the Conversion Report gives me virtually no information.  And when I try to reload the project I get a message that indicates, &quot;Unspecified error.&quot;<br/><br/><br/>The Upgrade Log is the following:<br/>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/UpgradeReport.xslt'?&gt;&lt;UpgradeLog&gt;<br/>&lt;Properties&gt;&lt;Property Name=&quot;Solution&quot; Value=&quot;App&quot;&gt;<br/>&lt;/Property&gt;&lt;Property Name=&quot;Solution File&quot; Value=&quot;C:\Subversion\Varigence\trunk\App\App.sln&quot;&gt;<br/>&lt;/Property&gt;&lt;Property Name=&quot;Date&quot; Value=&quot;Sunday, November 15, 2009&quot;&gt;<br/>&lt;/Property&gt;&lt;Property Name=&quot;Time&quot; Value=&quot;21:04:27 PM&quot;&gt;<br/>&lt;/Property&gt;&lt;Property Name=&quot;Log Number&quot; Value=&quot;16&quot;&gt;<br/>&lt;/Property&gt;&lt;/Properties&gt;&lt;Event ErrorLevel=&quot;3&quot; Project=&quot;App&quot; Source=&quot;App\App.csproj&quot; Description=&quot;Not Converted&quot;&gt;<br/>&lt;/Event&gt;&lt;/UpgradeLog&gt;<br/><br/>How do I go about getting this project upgraded?Mon, 16 Nov 2009 05:13:53 Z2009-11-24T05:40:35Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/62effd8c-df25-4920-aad0-bb5abfad70efhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/62effd8c-df25-4920-aad0-bb5abfad70efchuckdawithttp://social.msdn.microsoft.com/Profile/en-US/?user=chuckdawitcan't see designer code when viewing a form in VS2005hi,<br/> when I right click on a form I have created and select view designer I get a bunch of html in the window. I don't see any part of the form.<br/> I'm using vs2005 on a 64bit machine. Someone told me that it was a 64 bit error and that it was fine on a 32bit machine. Can anyone help?<hr class="sig">chuckdawitThu, 24 Sep 2009 16:58:01 Z2009-11-19T13:36:23Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/be6a2105-39cc-4d97-aca0-03a116c2a22ahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/be6a2105-39cc-4d97-aca0-03a116c2a22aNullisNullhttp://social.msdn.microsoft.com/Profile/en-US/?user=NullisNullDebugger not workingIm using visual studio 2005 SP1 on a 5 project c# .net(2.0 framework) application.  When there are errors in the code and I click on them it no longer takes me to that line of code.  Any thoughts?<br/>There are 3 of us working on the same project, and I am the only one having this problem. This is a real headache, I havent installed any new software, or made any system changes,,,Thu, 12 Nov 2009 15:50:50 Z2009-11-19T03:12:52Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/9de261e2-8c76-4235-a8c0-95acb7f7ec36http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/9de261e2-8c76-4235-a8c0-95acb7f7ec36Gerry S. A_http://social.msdn.microsoft.com/Profile/en-US/?user=Gerry%20S.%20A_Detected dependencies reappearsI created an setup project which includes about 10 project outputs. When I add the primary output of these 10 projects, the setup project automatically detects the dependencies and include them under the file system and 'detected dependencies'. I removed all of them since they are all third party components, but when I reopen the solution or open the solution in new workspace, these detected dependencies are automatically added again and some of them are even duplicated. This happends even the setup project is not check out which means to get rid of them all, I have to check out, exclude them and check in again.<br><br>If anyone has similar problem, please let me know or guide me to a thread if there is any.<br><br>- Gerry<font face=Arial size=2></font>Thu, 04 Oct 2007 23:12:40 Z2009-11-18T17:14:49Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/a1aa090a-60be-4663-a521-c2d8f8809fc0http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/a1aa090a-60be-4663-a521-c2d8f8809fc0BrunoZPhttp://social.msdn.microsoft.com/Profile/en-US/?user=BrunoZPHtml source not being coloring and verified.Hi,<br/><br/>My Visual Studio stopped coloring and checking, and autocomplete syntax of the HTML, CSS code...<br/>Any suggestion on how to solve ?<br/><br/>When I try to open HTML Designer item at options it gives me an error: An error ocurred when loading this page...<br/><br/>I've already tried to reinstall....<br/><br/>I'm using Visual Studio 2008 with SP1<br/><br/>Thanks<hr class="sig">http://BrunoZP.com.br || http://BrunoZP.comWed, 11 Nov 2009 19:18:22 Z2009-11-18T10:53:12Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/17a92eef-fd7a-4e03-bed8-77900ca55f15http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/17a92eef-fd7a-4e03-bed8-77900ca55f15rayreeveshttp://social.msdn.microsoft.com/Profile/en-US/?user=rayreevesDebugger SteppingVs2010<br/>The stepping icons have disappeared. There are step into and step over buttons but no step out<br/><br/>Tue, 17 Nov 2009 15:06:03 Z2009-11-23T06:16:06Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/5f43e817-e0c8-421b-b75a-cf1ad48729eehttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/5f43e817-e0c8-421b-b75a-cf1ad48729eeAaron K.B. Huanghttp://social.msdn.microsoft.com/Profile/en-US/?user=Aaron%20K.B.%20HuangIDE hangs after OutOfMemoryException thrown in debug mode.Hi there, <br/>the repro steps:<br/>1. Create a new C# console project in VS2010 Beta2.<br/>2. write code &quot;StringBuilder sb = new StringBuilder(int.MaxValue);&quot; in the Main function.<br/>3. Press F5 to run.<br/>4. Click OK to close the Debugger pop-up OutOfMemoryException tip window.<br/><br/>Observed:<br/>the whole IDE hangs after the tip windows disappeared.<br/><br/>OS: Windows server 2008 x64<br/>Hardware: Dell Optiplex 360 with 4GB Memory.<hr class="sig">Tell me smth i dont know everyday~~Sun, 15 Nov 2009 16:08:08 Z2009-11-24T06:46:43Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/343fc646-6039-47b8-80ea-08400b6387e0http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/343fc646-6039-47b8-80ea-08400b6387e0willwanghttp://social.msdn.microsoft.com/Profile/en-US/?user=willwangProblem with the HintPathHi All<br>I use several third party library in my current project, I add the reference to these dll files by the &quot;Add Reference&quot; dialog.When I inspect my project file,I found that almost each reference element has a hint path pointed to the path of the dll file,except one file.Even after I remove the reference and add it again,the hintpath is still not there.<br>This cause a problem when my project is built in the building server. <br><br>Any one encounter some similar problem before?<br>Thanks<br><br>Thu, 13 Jul 2006 08:21:51 Z2009-11-17T10:29:25Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/38488112-5c86-4353-9d1f-c7a9acbe156bhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/38488112-5c86-4353-9d1f-c7a9acbe156bCaptain Kernelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Captain%20KernelWhy no basic "compile" option?This has bugged me for years, why can't I simply get the VS 2008 IDE to compile a specific src file?<br/><br/>I work on very large projects and sometimes I am tweaking a file and jsut want to make sure it compiles cleanly.<br/><br/>Hoeever, the only option I have is to build or rebuild the project and this takes a while.<br/><br/>How about adding this (perhaps VS 2010 has this???)<br/><br/>Thx<br/><br/>Cap'n<br/><br/>Mon, 16 Nov 2009 14:16:51 Z2009-11-20T06:53:06Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/ed8cf090-1556-4b88-96d6-9aa6954e8b0ahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/ed8cf090-1556-4b88-96d6-9aa6954e8b0aJuliaJuliahttp://social.msdn.microsoft.com/Profile/en-US/?user=JuliaJuliaaspnet_compiler.exe error<p>Hi</p> <p>I have been given a batch file by the developer that compiles a website. This works fine when I run it locally on the server, but errors when I run it on my machine. The offending line seems to be as follows:</p> <p>C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v<br/>/PortalWebApp.csproj -p V:\MyApp\PortalWebApp\PortalWebApp -u -f .\TempBuild<br/>Dir\ -keyfile &quot;V:\MyApp\Shared Assets\Corp.snk&quot; -errorstack<br/>Utility to precompile an ASP.NET application<br/>Copyright (C) Microsoft Corporation. All rights reserved.</p> <p>error ASPRUNTIME: Could not load file or assembly 'App_Licenses, Version=0.0.0.0<br/>, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The paramete<br/>r is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))</p> <p>[ArgumentException]: The parameter is incorrect. (Exception from HRESULT: 0x8007<br/>0057 (E_INVALIDARG))</p> <p><br/>[FileLoadException]: Could not load file or assembly 'App_Licenses, Version=0.0.<br/>0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The param<br/>eter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))<br/>   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,<br/>Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boo<br/>lean throwOnFileNotFound, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, E<br/>vidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Bool<br/>ean throwOnFileNotFound, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence<br/> assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as<br/>semblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)<br/>   at System.Reflection.Assembly.Load(String assemblyString)<br/>   at System.Web.Compilation.BuildManager.LoadLicensesAssemblyIfExists()<br/>   at System.Web.Compilation.BuildManager.Initialize()<br/>   at System.Web.Compilation.BuildManager.InitializeBuildManager()<br/>   at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)</p> <p>[HttpException]: Could not load file or assembly 'App_Licenses, Version=0.0.0.0,<br/> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter<br/> is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))<br/>   at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()<br/>   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil<br/>dManagerCallback callback, Boolean forceCleanBuild)<br/>   at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil<br/>dManagerCallback callback)<br/>   at System.Web.Compilation.Precompiler.Main(String[] args)</p> <p>I'm running Visual Studio 2008 (v9.0.30729.1) and Microsoft Web Deployment Projects 2008 (v9.0.21022) on Vista. The server is running Windows Server 2008 with the same versions of VS and Web Deployment Projects.</p> <p>Can anyone give me any advice about troubleshooting this?</p> <p>Julia</p>Mon, 26 Oct 2009 18:28:07 Z2009-11-16T09:00:44Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/d211cc53-afe3-451d-96b5-a23f0de4fc80http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/d211cc53-afe3-451d-96b5-a23f0de4fc80Gil Yoktanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gil%20Yoktanmake utilities file incuded automatically in all my new projects<p>VS 2008 c#<br/>Hello I wrote a nice &quot;utilities&quot; class and I want it to be included automatically to all the new projects I start from now. Is it possible? If not - what would you suggest the best alternative?<br/>Have a nice day  Gil Yoktan</p>Sun, 15 Nov 2009 04:25:39 Z2009-11-17T14:27:25Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bfa2e606-ca67-45f6-8051-39811bfdf8b9http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/bfa2e606-ca67-45f6-8051-39811bfdf8b9Miguel T.http://social.msdn.microsoft.com/Profile/en-US/?user=Miguel%20T.How can I fix this error? After deleting forms in my application I get this error: “Unable to create a manifest resource name for “Presentation\Testing\Form2.resx”. Could not find file ‘F:\Testing Trading Strategies\TTS\Presentation\Testing\Form2.cs’”.Hi, I deleted some forms in my application. Right after that (I don’t if it was related) when I was trying to close Visual C# 2008 Express Editon I get an error something like “Can’t do the requested operation. Out of memory.”. So I had to close the application on the Task Manager. Next time I opened the Visual C# 2008 Express Edition I couldn’t ran my application and I get the following error: “Unable to create a manifest resource name for “Presentation\Testing\Form2.resx”. Could not find file ‘F:\Testing Trading Strategies\TTS\Presentation\Testing\Form2.cs’”. I get the same exact error for Form3 and Form 4. In addition, I see on the Solution Explorer exclamation icons for the following files: Form2.cs, Form3.cs and Form4.cs. When I try to delete these files I get the following error: “The operation could not be completed. O parâmetro é incorrecto”. The last phrase of the error is in Portuguese and means “the parameter is incorrect”. Why am I getting this error? How can I fix it? I can’t work! Thanks. Best, Miguel.Sat, 14 Nov 2009 03:39:11 Z2009-11-14T03:48:10Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e3a513e7-b81f-43b5-a08f-951b96bc7459http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e3a513e7-b81f-43b5-a08f-951b96bc7459Wyckhttp://social.msdn.microsoft.com/Profile/en-US/?user=WyckWhy is .config file deleted when debugging using F5 but not Ctrl+F5?Related post <a href="http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/40b6dcb8-c9e9-41a2-b16d-c4ed63d92440">http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/40b6dcb8-c9e9-41a2-b16d-c4ed63d92440</a> <br/> <br/> Why does myapp.vshost.exe.config get deleted after you run with F5, but myapp.exe.config does not get deleted after running with Ctrl+F5?Wed, 11 Nov 2009 19:38:46 Z2009-11-14T05:07:33Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/7b8dd8e0-a4df-4de5-9023-fbb01ca7ce16http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/7b8dd8e0-a4df-4de5-9023-fbb01ca7ce16Surezsuhttp://social.msdn.microsoft.com/Profile/en-US/?user=SurezsuHow to import ActiveX control in the form?Hi all,<br><br>I'm developing a document processing project using microsoft office document imaging 11.0(MODI) library for OCR in C#. MODI have an activeX control that is microsoft office document imaging viewer control.<br><br>If we have to install the MS office 2003,we can use MODI and their activeX control as references from the COM component dialog.<br><br>The adove all are working fine in my project,which is converted from visual studio 2003 to visual studio 2005. But,when i create a new project in visual studio 2005, and try to add the MODI viewer control in the form,it will thrown the error like &quot;<span style="font-weight:bold">Failed to import the activeX control.Please ensure it is properly registered&quot;</span>. I dont know what i did wrong.<br><br>Now I'm using visual studio 2005.<br><br>So, please anyone help me regarding to this.<br><br>Thanks in advance.Wed, 20 Jun 2007 07:26:37 Z2009-11-13T12:01:08Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/3c529a79-ab80-4a5f-aead-b3f4979263c2http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/3c529a79-ab80-4a5f-aead-b3f4979263c2Jaanshttp://social.msdn.microsoft.com/Profile/en-US/?user=JaansWill "Edit and Continue" work on 64 bit OS under Visual Studio 2010?I know there is a workaround to force compilation to 32-bit and then debug it under WoW64, but with everything going 64 bit is there any change of us seeing native support for Edit and Continue on 64 bit Vista / Windows 7 using Visual Studio 2010 &amp; the .NET 4.0 CLR ?<hr class="sig"> Fri, 22 May 2009 06:33:08 Z2009-11-13T09:20:21Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e4c6a5d0-ff03-436e-a7e9-8f875bdd2014http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e4c6a5d0-ff03-436e-a7e9-8f875bdd2014Superlexxhttp://social.msdn.microsoft.com/Profile/en-US/?user=SuperlexxC#2010 Win7 XPM (Windows XP mode) freezing IDE with C# projectshello,<br/><br/>since I don't feel like installing beta software on real machines, I've put the beta2 on the brand new Win7 XPM Virtual PC, using the seamless mode (kinda-local-app). It worked fine with c++ projects, but creating a c# console program makes the UI hang (Not Responding), also opening this project has same effect. And I cannot even close the IDE window :/.<br/><br/>Any ideas?Sun, 01 Nov 2009 11:34:17 Z2009-11-16T14:47:43Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/4b60fa23-61f4-4c0f-8eda-3f77af145e02http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/4b60fa23-61f4-4c0f-8eda-3f77af145e02Muhammad Ramzanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Muhammad%20RamzanConversion from visual studio 2005 to visual studio 2010 solution Problems<p>I have developed a project in Visual Studio 2005 and i Convert the Project in visual studio 2010 Beta 2 Conversion Succeeded but Refrences are still refrring to .net frame work 2.0 and an error occured when I try to Load form designer that .net framework you are targeting is not available and if I try to open Project--&gt;Properties then the Property page does not display and .net framework error occured any one is here to Guide in this regard <br/><br/>Thanks</p>Wed, 11 Nov 2009 17:00:14 Z2009-11-18T02:57:41Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/2a1e85b8-d57b-479d-b85b-4f407fdfc30ehttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/2a1e85b8-d57b-479d-b85b-4f407fdfc30egrant_kiwihttp://social.msdn.microsoft.com/Profile/en-US/?user=grant_kiwiVisual Studio 2008 (working with Biztalk 2009 projects), losing references to assemblies<p>Problem:<br />When using BizTalk 2009 in Visual Studio 2008 we are frequently losing the references to the reference assemblies of other BizTalk projects within the same solution.<br />We have the copy locally property set to true for each of the referenced assemblies but it appears that it does not always copy the latest version to the project so the solution will not compile.&nbsp; Below is a list of workarounds that we do to get it working again.&nbsp; The workaround that we try first time will not always work so we may have to attempt a number of different things before we get it working again.<br /><br />Workarounds:<br /><br />This page provides a list of work arounds to handle the 'loss' of referenced assemblies from within a Biztalk 2009 project (we are using Visual Studio 2008)</p> <p>- Toggle the Copy Local property of the referenced assembly from False to True, then back to False<br />- Remove the assembly, and then add them back again and recompile<br />- Exit Visual Studio and delete the bin and obj directories for the Biztalk project that has lost its references then copy the dlls to the bin directory manually<br />- If the error is with a call orchestration shape then open the shape, close it and save the orchestration before building.<br /><br />Some links:<br /><a href="http://pim.waaijenberg.net/index.php/2009/08/copy-local-that-biztalk-2009-reference/">http://pim.waaijenberg.net/index.php/2009/08/copy-local-that-biztalk-2009-reference/</a><br /><a href="http://dotnet.org.za/ryancrawcour/archive/2009/07/17/biztalk-2009-amp-visual-studio-2008-annoyance-2.aspx">http://dotnet.org.za/ryancrawcour/archive/2009/07/17/biztalk-2009-amp-visual-studio-2008-annoyance-2.aspx</a><br /><a href="http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/924cc4c0-d013-4d2d-944c-73174ecc14e9">http://social.msdn.microsoft.com/Forums/en/biztalkgeneral/thread/924cc4c0-d013-4d2d-944c-73174ecc14e9</a><br /><a href="http://blog.eliasen.dk/2009/07/21/IssuesWithBizTalk2009OnVSNET2008.aspx">http://blog.eliasen.dk/2009/07/21/IssuesWithBizTalk2009OnVSNET2008.aspx</a></p> <p>Does anyone have a permanent fix for this, or a workaround that works consistently all thet time? Or is there a service pack/hotfix available?<br /></p>Wed, 14 Oct 2009 01:56:53 Z2009-11-12T07:16:58Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e7f1b233-101a-4641-8a6a-8f1be3563b96http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/e7f1b233-101a-4641-8a6a-8f1be3563b96nitroxnhttp://social.msdn.microsoft.com/Profile/en-US/?user=nitroxnpressing F5 in VS 2008 opens up msdn search siterecently whenever i press F5 in VS 2005 and 2008 it opens up a browser tab with msdn search site<br>http://msdn.microsoft.com/en-us/search/default.aspx<br>It is very annoying because it interferes with debugging.<br>Can anyone please find a solution for this.<br><br>Thanks in advance<br> <hr size="1" align="left" width="25%">sandeepThu, 24 Jul 2008 06:08:16 Z2009-11-12T03:09:21Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/f3a5de9b-8b6f-41d8-a596-a8a0a785c8ffhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/f3a5de9b-8b6f-41d8-a596-a8a0a785c8ffMattias Sandsäterhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mattias%20Sands%u00e4terBuild my program to only one exe-file instead of 10 filesI have a small program that I would like to be only an exe-file.<br/>When I build it, it creates a lot of files. config, manifest, pdf, dll:s.<br/>Couldnt I just somehow bundle it to one single file?<hr class="sig">sandsaterFri, 23 Oct 2009 16:07:10 Z2009-11-11T17:04:31Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/cc6f1103-2db4-4e5d-9067-392f875173aahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/cc6f1103-2db4-4e5d-9067-392f875173aaTheLearnerhttp://social.msdn.microsoft.com/Profile/en-US/?user=TheLearnerCreating a templateI have a huge solution with many different projects but whenever I have a new piece of work, I always need to create a folder with 4 class libraries to my solution.<br/> <br/> Is there anyway to create a template that dev's can just select and it creates these 4 class libraries with some basic files etc?Wed, 04 Nov 2009 16:07:35 Z2009-11-11T14:56:11Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/6c3e216a-51ae-44bc-949a-428ca905ee74http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/6c3e216a-51ae-44bc-949a-428ca905ee74wg_selfhttp://social.msdn.microsoft.com/Profile/en-US/?user=wg_selfHow do I get VS2008 to stop stomping on my code?I have an app with a couple hundred textboxes on a dozen tabpages that are bound to various datatables.<br/> VS keeps setting the columns to readonly, I go through and change them back and an hour or so later it is corrupted again.<br/> I can't find what setting|config is causing this behavior. <br/> Does anyone know how to fix it?Fri, 30 Oct 2009 20:12:02 Z2009-11-11T14:38:47Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/0478ce54-9d0b-4000-a495-074abb4347bfhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/0478ce54-9d0b-4000-a495-074abb4347bfGuillaumeMoihttp://social.msdn.microsoft.com/Profile/en-US/?user=GuillaumeMoiMy project Build but don't build for refactoring since VS2008 : CS0122 When I build my project, everything works fine but when I try to use refactoring like &quot;remove unused usings&quot; I got this error:<br>WindowsHelp.cs(13,45): error CS0122: 'WindowsHelp.HelpType' is inaccessible due to its protection level<br><br><br> <div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:Courier New;background-color:white"> <table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0> <colgroup> <col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:Courier New;white-space:nowrap"> <tbody> <tr> <td><font style="font-size:11px">  [HelpAttribute(WindowsHelp.HelpType)]  </font></td></tr> <tr> <td style="background-color:#f7f7f7">  </font><font style="color:blue">public</font><font style="font-size:11px"> </font><font style="color:blue">class</font><font style="font-size:11px"> WindowsHelp  </font></td></tr> <tr> <td>  {  </td></tr> <tr> <td style="background-color:#f7f7f7"><font style="color:green"></font></td></tr> <tr> <td><font style="font-size:11px">...</font></td></tr> <tr> <td style="background-color:#f7f7f7"><font style="font-size:11px"></font></td></tr> <tr> <td>    </font><font style="color:blue">private</font><font style="font-size:11px"> </font><font style="color:blue">const</font><font style="font-size:11px"> </font><font style="color:blue">int</font><font style="font-size:11px"> HelpType = 42;  </font></td></tr> <tr> <td style="background-color:#f7f7f7">...  </td></tr> <tr> <td>  } </td></tr></tbody></table></div><br>Why does it build but doenst build for refactoring ?Tue, 23 Sep 2008 15:48:24 Z2009-11-10T16:18:13Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/99d644dd-9f9f-4a0e-80e7-d11dc3cf067ahttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/99d644dd-9f9f-4a0e-80e7-d11dc3cf067alekfirhttp://social.msdn.microsoft.com/Profile/en-US/?user=lekfir Global.asaxHello,<br/>1. When I run publish from command line (Using Aspnet_compiler.exe ) , it doesn't create the file Global.asax<br/>When I Right-Click and Publish, it generates it!<br/><br/><br/>Here is my command:<br/><br/><span style="font-size:x-small"> <p><strong></strong> <pre>Aspnet_compiler -f -c -v /ProjectName -p &quot;%Source%&quot; &quot;%Target%&quot;</pre> <font size=2><strong> <p> </p> </strong></font></p> </span> <p>Any idea why?<br/><br/>Thanks!</p><hr class="sig">lekfirSun, 08 Nov 2009 16:36:00 Z2009-11-13T03:10:32Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/706cd4be-c5af-47da-a014-0319d1e17a15http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/706cd4be-c5af-47da-a014-0319d1e17a15Carpslayerhttp://social.msdn.microsoft.com/Profile/en-US/?user=CarpslayerVS 2010 Beta 2 - Promote Local to Parameter refactor missingThe refactor, Promote Local to Parameter is missing in beta 2 from the C# editor (menu, right-click, even the keyboard shortcut). Was this pulled from the IDE or just a build mistake?Sun, 08 Nov 2009 15:42:22 Z2009-11-16T04:09:28Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/93ada39f-c755-46dc-af05-5c16cf51c88chttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/93ada39f-c755-46dc-af05-5c16cf51c88cN Lawrence Welchhttp://social.msdn.microsoft.com/Profile/en-US/?user=N%20Lawrence%20WelchDoes copy/paste of a Folder that contains only links to files result in the linked files being deleted?<p>Yesterday I finished developing a set of shared sources for projects I'm working on.  I created a new project to test the shared sources.  I then right clicked the main Shared Sources folder in VS and dragged the folder to the new project.  I expected that it would result in a copy but instead the folders were created in the new project and all linked files were deleted. <br/><br/>I trust this isn't the intended behavior.  Please advise if there is another place I should post this issue.</p>Sun, 08 Nov 2009 16:30:43 Z2009-11-20T15:11:47Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/ec108afe-a2e1-41ca-8deb-2108fed50896http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/ec108afe-a2e1-41ca-8deb-2108fed50896Aung Hanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Aung%20HandebuggingWhen I debug a project, it just run only for the first windows application form. What I want to know is I can run both forms files?Sun, 08 Nov 2009 03:28:01 Z2009-11-12T11:50:08Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/c2eb2b0c-8a70-40d5-9382-1bdd836cf2echttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/c2eb2b0c-8a70-40d5-9382-1bdd836cf2ecJan Vernerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jan%20VernerGet data from Clipboard in macroHello,<br/><br/>I'm writing macro for Visual Studio 2005 and I'd like to retrieve data from the clipboard, but I don't know how.<br/>Thanks for all answersFri, 06 Nov 2009 09:08:17 Z2009-11-13T01:41:04Zhttp://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/85eccc4e-7610-40cd-9af6-c85790531156http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/85eccc4e-7610-40cd-9af6-c85790531156very bad horsehttp://social.msdn.microsoft.com/Profile/en-US/?user=very%20bad%20horseCodeDom and Auto-Implemented Properties Can somebody tell me how to use CodeDom to generate an Auto-Implemented property?  I can generate regular properties with getters and setters, but not sure how to generate the Auto-Implemented get;set; syntax using CodeMemberProperty.<br><br>Thanks!Tue, 21 Oct 2008 20:57:09 Z2009-11-04T20:43:15Z