.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How can I be sure that my entire project is up-to-date and free of errors in VS2010?

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  <form runat="server">
  Hello World!!  

Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?

View Complete Post

More Related Resource Links

VS2010 Professional .NET 4.0 Remote Debugging ASP Website Project


Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine.  Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document."  This happens for all compiled code though.  I have read this is due to missing PDB files and the work around is to manually copy them, as noted here.  Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.


  • web.config has <compilation debug="true">
  • Debugger is attached to wewp.exe process on remote server
  • Installed VS2010 remote debugger from DVD (as I can remote debug referenced libraries)

This is beyond frustrating.  I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework.  Debugging works when using local host and was stable until deployment to test server.

Thanks in advance,


vs2010 web deployment project restarts w3svc even when restartwwwservice = false


We've updated some of our projects from VS2008 to VS2010.  When these projects are deployed the w3svc is restarted on the target machine, even when restartwwwservice = false in the vdproj file.


This was a problem in 2008 until SP1 (http://forums.asp.net/p/1300097/2534736.aspx).  Does this same problem exist in VS2010?


This is a major problem for us -  we need to be able to deploy projects without restarting IIS.


I've tried creating a new web deployment package and setting the restartWWWService field to false, but this still does a restart when it's installed.


Has anyone come across this problem in VS2010?

Errors building a C# project

I am putting this here because I am pretty sure this has to do with an incorrect setup and/or configuration. I am trying to build one of my first C# sample projectsusing Visual Studio 2008 Professional. I keep getting these errors: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "AppUtil". C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "VimService2008.XmlSerializers". C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "VimService2008". GetVMFiles.cs(8,7): error CS0246: The type or namespace name 'AppUtil' could not be found GetVMFiles.cs(9,7): error CS0246: The type or namespace name 'VimApi' could not be found GetVMFiles.cs(15,24): error CS0246: The type or namespace name 'AppUtil' could not be found GetVMFiles.cs(16,16): error CS0246: The type or namespace name 'VimService' could not be found GetVMFiles.cs(17,16): error CS0246: The type or namespace name 'ServiceContent' could not be found GetVMFiles.cs(143,42): error CS0246: The type or namespace name 'ManagedObjectReference' could not be found GetVMFiles.cs(159,38): error CS0246: The type o

Can I deploy a custom site page from the VS2010 SharePoint project?

Hi We're setting up some demos of our sharepoint plugins and want to easily deploy these into sharepoint so that all members of the company can easily get the demos running on their own machines. This is fine for layouts, web parts and so on - but the demo also has a customised sharepoint home page (which I edited in SP Designer) - how do I make this edited home page part of the VS2010 project so that it can be deployed easily to any site collection?   Thanks  

Should time date stamp on .Asmx file change when project is rebuilt?

I have a web service project. The web service is named Recalc.asmx and it has a code behind file namedRecalc.asmx.vb Now if I make a change to my web service .vb code and then recompile the project, should my Recalc.asmx filebe updated as well? In windows explorer I see that the time date stamp of my Racalc.asmx.vb file changes to the date of the last change.But the time date stamp of the Recalc.asmx file does not change? Why is that? My original thinking was that I would simply need to copy the Recalc.asmx file to the test server. But the date stillshows it's original creation date of 7/1/2010 and not the date of the last rebuild as I was hoping it would do?

Can I add an entire folder to my Web Application Project?

Hi gang, I have been developing my first ASP.Net 2.0 website using the Web Application Project model. I ran into a funny problem and I wanted to bounce it off you guys. I started working with a component called FCKeditor that is an HTML javascript editor. In addition to a .DLL file, you have to add an entire folder of stuff including javascript, CSS, and images. I tried copying the folder as a subfolder under the project root and then tried Add / Existing Item to add the folder to my project, but you can't add folders, only individual files. Am I missing something? Is there a way to add an entire folder of content to my Web Application Project? Thanks,Kevin

How to open project in VS2008 which was created in VS2010?

How to open project in VS2008 which was created in VS2010?

VS2010 Deploying Database Project - Error: Cannot create file [...]MSSQL10.MSSQLSERVER\MSSQL\DATA\m

I had SQL Express from a previous installation of VS2010. I uninstalled All SQL and VS2010 and re-installed VS2010 (without Express) and then re-installed SQL Server 2008 Developer Edition. Now when I try to deploy a database project I am receiving the following error:     Creating EDDY.Cheetah.Database.Server... ...\sql\debug\Server.sql(38,0): Error SQL01268: .Net SqlClient Data Provider: Msg 5170, Level 16, State 1, Line 1 Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\mastlog.ldf' because it already exists. Change the file path or the file name, and retry the operation. ...\sql\debug\Server.sql(38,0): Error SQL01268: .Net SqlClient Data Provider: Msg 1802, Level 16, State 4, Line 1 CREATE

created asp mvc project with framework 4.0 changed to 3.5 and now get errors

I created a small mvc site using framwork 4.0.  I found my hosting company uses 3.5.  I changed my project and compiled and there were no errors.  Now when I run, I get this error on all pages:How can I get it to work in .net 3.5? Compilation ErrorDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0246: The type or namespace name 'dynamic' could not be found (are you missing a using directive or an assembly reference?)Source Error:Line 134:    Line 135:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]Line 136:    public class views_page_home_aspx : System.Web.Mvc.ViewPage<dynamic>, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {Line 137:        Line 138:        private static bool @__initialized;Source File: c:\Users\user1\AppData\Local\Temp\Temporary ASP.NET Files\root\b4d3bd5e\2b9dd07c\App_Web_home.aspx.78bb4944.oap7wvh_.0.cs    Line: 136

Report Server project in VS2008 and VS2010


Hi All,

I cannot open my VS2008 Report Server project after installing VS2010 and Framework 4.0 on my machine. How to run those reports now? I still have VS 2008 installed.. Please suggest..

How can i convert my entire asp.net web site project to asp.net web application project


How can i convert my entire asp.net web site project to asp.net web application project


i want to use Microsoft Ajax Minifier but i could not find how to implement it to the asp.net web site project


so for using this feature i might convert my asp.net web site to asp.net web application


thanks for all kind of help

VS2010 designer errors with x64 configuration


With an empty x64 WPF project I can't import the project's own namespace. Can the WPF designer in VS2010 be used on a x64 project, or what am I doing wrong?

Below are the steps that reproduce this problem.

Using:Microsoft Visual Studio 2010 pro Version 10.0.30319.1 RTMRel
Microsoft .NET Framework Version 4.0.30319 RTMRel

Launch VS2010 IDE
File > New Project > WPF Application
 Targeting .NET Framework 4
 Name = WpfApplication1
 Solution name = WpfApplication1

Open MainWindow.xaml in xaml editor
add (xmlns:local="clr-namespace:WpfApplication1")

Designer error "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'WpfApplication1' that is not included in the assembly."
Build solution (successful)
Error disappears

Open Configuration Manager
Click Active solution platform. Select <New...>
Select new platform as x64. Click OK. Close Configuration Manager.

Error reappears: "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'WpfApplication1' that is not included in the assembly."

Rebuild solution (successful)
Error remains and designer is now useless.

This may be similar to a previous post that strayed off topic.

Add ReportViewer httphandler and entire website errors


I have a site thats working fine - I added a page with a reportviewer control and get the error message

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file.  Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file.

I added this to the system.web section of web.config, and when I do - the entire site no longer works, I get a "500 - Internal server error." 

The web.config currently reads:

<?xml version="1.0"?>
		<add connectionString="Server=server;
         User ID=user;
         Password= password" 

VS2010 used an assembly in the GAC in stead of the project reference that was explicitly set in my p


When running my Windows Forms project in the debugger using F5 it uses the assembly version in the GAC in stead of the actual project referenced, thus ignoring the changes I make to my reference project.

If I remove the assembly from the GAC it works, but I woul like to be able to develop and test my assembly withoud having to remove my installed version first every time.

What is the best way to achieve this? Giving my reference project a defferent version number for instance?

Is this behaviour considered a bug that will be patched any time soon?



reportviewer date parameter and calendar.. not working and javascript errors??



Hi, I've got this ssrs 2005 report that works great passing a few
security related parameters from asp.net codebehind. However, there
are two date related parameters that won't be coming from my web form,
but rather from the report form itself. When I test the report's date
parameters from visual studio it work fine, but when I attempt the
same report from a reportviewer no matter what input I place on the
report's date fields or even if I select the date picker, the report
simply resets to default and reloads. And actually the date picker
from the reportviewer does not not even pop up.


Here's my aspx code:

<%@ Page Language="VB" AutoEventWireup="false"
Inherits="_ReportViewer" MasterPageFile="~/Main/MasterPage.master"
    CodeFile="~/Reports/CashSales.aspx.vb"  Title="Cash Sales" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms,
Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1"

Any issues or concerns in converting VS2008 project to VS2010


I have been working on this project for a few months in VS2008.. now that we are getting closer to the end, one of the other programmers has been working and doing his in VS2010, so when i try to open his projects in VS2008 it just shows up as XML.. so i have to open in VS2010.. thats fine..

But if i try to open my project in 2010, it prompts to use the conversion wizard..

Should i be concerned or are there any issues with doing the conversion? Being the end of the project, i dont want to cause issues at this point.. So would like to know if converting the project file at this stage in our project a good idea? Will there be any issues using his code with mine since they were developed in 2 different versions..

XAML intellisence not working for one VS2010 project in Solution


I've got a WPF solution with 5 projects in it. For some reason...the XAML intellisense quit working and it's driving me nuts. All other intellisense is working just fine (C# for code behinds). I am "not" using any network shares as I saw on other forum posts that this might be the problem. Again...this solution was working fine before. Problem exists where ever I take it XP, W7....Please help!!!


Paul Reed
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend