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


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

MVC 2 in VS2008 blocked by VS2010?

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :ASP.Net
 

Hey there,


At my workplace, I need to use VS2008 and VS2010 as required by different projects. That's cool, except I now need to use MVC 2.

I installed VS2010 and as such have MVC 2 installed, but VS2008 still does not recognise MVC 2 projects. If I try and install MVC 2 using the specific installer for VS2008, it fails because it can see the MVC 2 is already installed!

So (after that windy explanation), is there a simple way I can get VS2008 to recognise MVC 2 projects, or will I need to uninstall MVC 2, install MVC 2 for VS2008, and then again for VS2010! I'm REALLY trying to avoid uninstalling all of VS2010 and reinstalling - there's almost a whole day there!

Thanks,

Thes




View Complete Post


More Related Resource Links

VS2010: Upgrading projects from VS2008

  
I just upgraded my VS2008 solution to VS2010 and have run into a problem. I have a .NET C# application that references a managed C++ DLL, which in turn links to a native static library. All this works just fine. However, whenever I attempt to run the C# application, Visual Studio claims that the native static library is out of date and must be recompiled. It does that even after I've just compiled the native library. When allowing VS2010 to build the native project, the only thing it does is this: 1>  LibraryName.vcxproj -> C:\Bleh\Blah\LibraryName.lib Is there a way I can figure out what's causing VS2010 to think the project is out of date?

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

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

Opening vs2008 solution file in vs2010 - Framework targeting issue

  

Hey guys,

I am opening a vs2008 .sln file inside vs2010 - the conversion wizard shows up, and it goes through with no errors other than a pop up warning me that this solution needs .Net Framework 3.5 and that it is "not installed on this machine" - I chose to target it to .Net Framework 4.0 and to try to switch it later as an option.

I then bring up Properties - >Application -> Target Framework and in the dropdown, .Net Framework 3.5 is not listed - which is strange since in "Add or Remove Programs" I can see .Net Framework 3.5 is installed on my machine.

How can I get Framework 3.5 to show up in the dropdown so I can target this project to that framework?

Can't say I've ever done this, so I'm pretty sure I'm doing something wrong.

 

Update: I tried Method #1 here (http://blogs.msdn.com/b/robvi/archive/2004/02/17/75272.aspx) and I cannot see v3.5 - so where did it go? I'm confused why it is not in my registry but shows up in "Add or Remove Programs" list...

Thanks


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..


problem migrating from vs2008 to vs2010

  

I am trying to evaluate vs2010 and i loaded my project built fully with vs2010

 

while my application runs properly vs2010 does not show the xaml code  for each singlw class

i get the following erros

 

System.TypeInitializationException

The type initializer for 'MS.Internal.Interaction.DesignerResources' threw an exception.

at MS.Internal.GridControl.GridPanelAdorner..ctor(ModelItem gridItem) at MS.Internal.GridControl.GridDesigner..ctor(ModelItem gridItem) at MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem) at MS.Internal.GridControl.AlwaysVisibleGridAdornerProvider.Activate(ModelItem item) at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item) at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions) at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders() at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool) at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.<.ctor>b__0(Tool newTool) at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item) at Microsoft.Windo

problem migrating from vs2008 to vs2010

  

I am trying to evaluate vs2010 and i loaded my project built fully with vs2010

 

while my application runs properly vs2010 does not show the xaml code  for each singlw class

i get the following erros

 

System.TypeInitializationException

The type initializer for 'MS.Internal.Interaction.DesignerResources' threw an exception.

at MS.Internal.GridControl.GridPanelAdorner..ctor(ModelItem gridItem) at MS.Internal.GridControl.GridDesigner..ctor(ModelItem gridItem) at MS.Internal.GridControl.GridDesigner.GetDesigner(ModelItem gridItem) at MS.Internal.GridControl.AlwaysVisibleGridAdornerProvider.Activate(ModelItem item) at Microsoft.Windows.Design.Interaction.AdornerProvider.InvokeActivate(EditingContext context, ModelItem item) at MS.Internal.Features.AdornerProviderFeatureConnector.FeatureProvidersAdded(ModelItem item, IEnumerable`1 extensions) at Microsoft.Windows.Design.Policies.PolicyDrivenFeatureConnector`1.UpdateFeatureProviders() at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.UpdateCurrentTool(Tool newTool) at MS.Internal.Features.PolicyDrivenToolFeatureConnector`1.<.ctor>b__0(Tool newTool) at Microsoft.Windows.Design.ContextItemManager.SubscribeProxy`1.SubscribeContext(ContextItem item) at Microsoft.Windo

Upgrading VS2008 to VS2010

  

I apologize in advance, but I don't know where to post this question. I have VS2008 Pro installed on my PC, and want to upgrade to VS2010 Pro. The only "upgrade" for 2010 Pro I see is from 2008 "Standard". Will that also upgrade my 2008 Pro? Or do I have to buy the full 2010 package? The upgrade is about $270, while the full version is almost $500.

 

Any insight into this would be appreciated.

 

Thanks!


javascript issues converting ASP.NET application from VS2008 to VS2010

  

I have encountered some javascript issues migrating an ASP.NET web application from Visual Studio 2008 to VS 2010.

1. When retrieving a value from a control, the following javascript syntax worked in VS2008:

  "document.formname.controlname"

In VS2010, I have to change everything to the following format:

 "document.forms.formname.controlname"

2. I use Master pages extensively.  In VS2008, when the ASP.NET web form is displayed in the browser, the ID for a control in a child form in the content placeholder uses the following convention:

"ctl00_ContentPlaceholder1_controlname"

In VS2010, the ID for a control in the placeholder uses the following convention:

"ContentPlaceholder1_controlname"

The "ctl00" is dropped.  Wherever I have used

GetElementByID(ctl00_ContentPlaceHolder1_controlname)

has to be replaced with

GetElementByID(ContentPlaceHolder1_controlname)

Is there an alternative to modifying reams of javascript code?

Are there any other javascript surprises I should anticipate during the conversion?

Thanks

Bill


 


 


Remove VS2008 after installing VS2010?

  

Until a few days ago, I worked in VS2008. A few days ago, I installed the trial version of VS2010. 

Now I'ld like to upgrade my VS2008 license to VS2010, and it would be nice if I could remove VS2008 from my computer completely to free up some disk space.

Can I safely remove the VS2008 installation without interfering with VS2010?


... is not an implementation of ... when upgrading from VS2008 to VS2010 + .NET 4.0

  

Morning,

I recently upgraded a VS2008 solution to VS2010 + .NET 4.0.

Locally on my development box the solution now in VS2010 builds fine and i can run it successfully + run all unit tests succesfully.

However on our TFS2010 server I cannot build it - the units tests all fail to initialize with the following exception:

Class Initialization method SpawnTest.SpawnAndProcessTests.ClassInitialize threw exception. System.ArgumentException: System.ArgumentException: Type CustomEntLibDatabaseProvider.CustomEntLibCachedDatabaseAssembler is not an implementation of IDatabaseAssembler for DatabaseAssemblerAttribute.
Parameter name: assemblerType.


I.W Coetzer

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..


Converting local report from VS2008 to VS2010

  
I am new to the local reports I have created one report in VS 2008. which has two tables 1st Table has attached to dataset name - dsPRMIQuote_dtblQuotationMain 2nd Table has attached to dataset name - dsPRMIQuote_dtblQuotationPayRoll (both the table contains sub reports).. To view this report I am using Reportviewer 9.0 It is working fine in VS 2008 But my project is moved to VS2010 I just copied reports including xsd files from to VS 2010 In VS 2010 to view this report I am using Reportviewer 10.0 But I am getting following error at Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]&amp;amp;amp; warnings) at Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String&amp;amp;amp; mimeType, String&amp;amp;amp; fileNameExtension) at Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerRenderer.SPBProcessingStub.GetNextPage(RPLReport&amp;amp;amp; rplReport) at Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GetNextPage() at Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.InitializeReport() at Microsoft.ReportingS

Can I send an email from a smart device application in VS2008 or VS2010?

  

I have a smart device application for a portable terminal (terminal has GPRS and a SIM card) created using Visual Basic in VS2008.  I need to be able to send an email from this applicaiton. Can anyone tell me how to do this with either VS2008 or VS2010.


crystal reports on mvc 2 vs2008

  

hi, i'm a new user of mvc 2, so, i need to use crystal reports on mvc 2, actually, i'm developing on visual studio 2008, but i can´t run my reports. it's posible run my reports???


thank you very much.


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.

Verified

  • 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,

Anthony


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

  

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" %>
<html>
<body>
  <form runat="server">
  Hello World!!  
</form>
</body>
</html>

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?


Where is SilverLight Toolkit in VS2010?

  

I read somewhere that MS has integrate SilverLight Toolkit into VS2010. Where is it? I can't find it under Toolbox.


Categories: 
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