MVC :: Upgrade From 2 RC2 To 2 RTM?
Mar 17, 2010I have VS2008 SP1 installed with ASP.NET MVC2 RC2. Do I need to do anything to upgrade to ASP.NET MVC2 RTM?
View 1 RepliesI have VS2008 SP1 installed with ASP.NET MVC2 RC2. Do I need to do anything to upgrade to ASP.NET MVC2 RTM?
View 1 RepliesI upgraded my site to works with Microsoft Visual Web Developer 2010 Express, works with .net 4.0 and new ajax tools. My site is manage on our site . Now it work on win server 2003 sp2 frameworks 2.0 ajax ast.net 2.0
Is the new upgrade site will work on the web sever ?Should I Upgrade the server to framework 4.0 ?
I am using windows 7 with 7.0 while the server i have to work parallely on contains II6.0 so how can i upgrade it to IIS7.0.
View 5 RepliesI am currently using VS2008 SP1, working on an ASP.Net project. The project was in 2.0, during first time I run it in VS2008, wizard asked me if I want to upgrade to v3.5, I clicked no. Later on in the project's property page, I set the 'Target Framework' to v3.5.
However, when I add this code to my project,
[Code]....
it returns "2.0.50727.4927" Why?
my current version of .net framework on web server is 2.0 and now i want to run web apps of .net framework 4.0 on same web server. before doing so i wants experts advice that if i will install .net framework 4.0 on my webserver then my webapplications of .net framework 2.0 will be affected or not and if yes then what should i do to handle both (2.0, 4.0) on my web server at same time.
View 2 RepliesI currently am running ASP.NET 3.5 and Visual Studio Express. How do I upgrade to 4.0 ?
View 1 RepliesI need little advice from you who has experiences in EF4 and IBatis. I would like to upgrade my applications that used IBatis technology and VS2005 to VS2010. The reasons of upgrading are i would like to use the latest technology and also enhance my applications with features that not provided in .Net 2.0
I already try EF4 in VS2010. It looks like nice feature to create application but i need more information about it advantage and disadvantage in performance,security,stability etc. As information, i was using generator to wrap IBatis.Net and VS2005, so it seem the .edmx file similar with classes that my generator was created
I have a simple user control:
[Code]....that worked fine in MVC 2. After the upgrade to MVC 3, this same control does not error out, but the rendered action link does not have a route nor variables any more.
This could be an existing issue that was "forgiven" in MVC 2. my routes in 2 were rendered like this:
Products/Browse?MainCat=12&SubCat=0&Product=0. Note there are no slashes.
I am getting an error mesage about my membership I have included System.Web.ApplicationServices
Error 2 Type 'System.Web.Security.MembershipUser' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has been forwarded to assembly 'System.Web.ApplicationServices'. Either a reference to 'System.Web.ApplicationServices' is missing from your project or the type 'System.Web.Security.MembershipUser' is missing from assembly 'System.Web.ApplicationServices'. C:Users###DocumentsVisual Studio 2010JobTrackerusersNewJob.aspx.vb 82 29 C:...JobTracker
do I need to amend my web.config file
I have developed one software for my client which works very fine on windows xp rather on 32 bit os.
When i deploy that same software on Windows 7 /64 bit os then it gives me some error or some exe are not working properly.
i want to migrate or i want same software running very finely for windows 7.
what should i do.
i am usng .Net 2.0 framework and VS 2005.
I have just upgraded to MVC 2.0 and I have noticed a difference in the model binding when posting a form back to an action. In MVC 1.0 if I had a posted a blank form back to my action and then looked at the populated model class my empty string values would show as empty strings, in MVC 2.0 doing the same thing and then looking at my model class shows my empty string values as null, why has this changed?
View 2 RepliesI've been given the task to update an existing website. Currently the website has a login only for administrators. They administer everything on the site, including all "Artist" data. This is done using simple form authentication and custom user table. Right now the "users" table only has one record since all administrators use the same username/password (not good, I know). As the "new" developer, I've been asked to update this site to allow the "Artists" to register themselves, and be able to update their own information. Ideally I want to get rid of all the current security, and use the SqlMembershipProvider. My issue? I have the database added to my schema, but I'm assuming something else within the site is confused. When I try and use the ASP.NET I get an error: "Configured settings are invalid: Hashed passwords cannot be retrieved. Either set the password format to different type, or set supportsPasswordRetrieval to false.(C:Inetpubwwwrootsitessite1web.config line 21)
Right now there are no users, no applicatins even set up in the sQLMembershipProvider tables. I've been following the MSDN site, as well as some secuity tutorials on this site (ASP.NET), but none of the solutions suggested works for me. I've created a "Register.aspx"
page, and when I load it I get this error: "Configured settings are invalid: Hashed passwords cannot be retrieved. Either set the password format to different type, or set supportsPasswordRetrieval to false."
Here's part of my web.conf file:
[Code]....
Is there any tool out there which can upgrade an MVC project from MVC2 to MVC3 and at the same time upgrades to the ViewEngine Razor or must I do this work manually everytime a new MVC version is released?
View 5 RepliesI run the preparaion pack then successfully run the installation of SP1 I do not see verification on the 'About VS 2008' page.
Consequently (I think) my attempts at installing SQL Server Management Express 2008 constantly fails due to the lack of SP1.
I have a project who build in MVC 1 and i make a new fresh project to migrate them in MVC 3. so it's work fine. but whenever it's come to done or complete we hear that not make changes in Admin panel.so i copy paste the model [logic module] from MVC 1 to MVC3 and now many of code was not worked. they used dll to use logic. when i try to use them in my project who is new version that's not worked.now i thing to migrate the MVC 1 project to MVC 3 and the taks and changes i do last days i integrated in old one.well tell me the way i can use to migrate the MVC 1 project to MVC 3 razor without making new project. means changes in old and make them work fine in razor.
View 2 RepliesRecently, I upgraded my solution to 4.0 and everything seems to have upgraded smoothly but for ASP.NET AJAX.
I have an UpdatePanel like so:
<asp:UpdatePanel ID="pnlAdvSearch" UpdateMode="conditional" runat="server">
<ContentTemplate>
<asp:Button ID="btnHidden" Runat="server" OnClick="btnHidden_Click"
ClientIDMode="Static"/>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnHidden" EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
I have a type-ahead textbox which triggers the btnHidden_Click event on Click/Enter etc. I'm calling the following method on textbox click/enter.
function getSelectionId() {
__doPostBack(
'<%=btnHidden.ClientID%>',
document.getElementById('<%=txtLocation.ClientID %>').value
);
theForm.__EVENTARGUMENT.value = "";
I can see a postback happening and the Page_Load executing. However, the server-side btnHidden_Click never gets fired. I do not want to disable event-validation at the page-level. What am I doing wrong here?
I upgraded a MVC1 project to MVC2, now all my calls to RenderPartial are throwing
System.ArgumentNullException: Value cannot be null.
However this does works:
<% Html.RenderPartial("~/Views/Shared/LogOnUserControl.ascx"); %>
And this does not (works in MVC1):
<% Html.RenderPartial("LogOnUserControl"); %>
Did the behavior of RenderPartial change?
We upgraded our project to 4.0 yesterday and did a live release. Unfortunately for some reason on one of our pages the tab container does not display anymore. I've set a breakpoint at the end of code execution and the .Visible property of the container is True, but the generated HTML has a CSS tag set to make it invisible:
<div class="ajax__tab_xp" id="ctl00_PageBody_tbcTabs"
style="visibility:hidden;">
If I use the IE8 development tools to remove the style property then everything displays correctly. why the container is set to be invisible even though the code behind is setting it to visible?
I am posting this here after not getting any responses on StackOverflow.
Last night I upgraded my MVC2 project to MVC3 RC. I followed all the instructions in the release notes and upon running my project (With the Index action of the home controller coming up by default) the following exception occurred:
"Exception Details: System.InvalidOperationException: The view at '~/Views/Home/Index.aspx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl, or ViewUserControl<TModel>."
All of my coding so far has been in areas, and I have not touched the Home/Index view in any significant way, and it worked last night prior to the upgrade. For reference, my view has the following code:
[Code]....
As you can see, I am inheriting from ViewPage even though it claims I am not. The HomeController.Index() view is exactly as what gets installed via a new MVC2 project. I did get pointed to the post here, and upon seeing that I tried a few things. First I tried to manually set my view engines in Global.asax like so:
[Code]....
This doesn't change anything, I still get the exception (even commenting out the RazorViewEngine call). Next I tried to go into the Home controller and did:
[Code]....
And this didn't work either. As of right now I"m at a standstill, as I can't run any of my pages currently. I use source control, so I can revert but I do want to take advantage of things in MVC3.
I have upgraded my project from .NET 3.5 to 4.0 and my views will no longer compile.I have a data layer that is a Linq to SQL data context in an assembly.My problem is when I pass in an entity to the model of my view and then try an enumerate a property that is an entity set of foreign key values I get a compilation error ofThe type 'System.Data.Linq.EntitySet`1' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral,ublicKeyToken=b77a5c561934e089'.I have added a reference to the project for System.Data.Linq and I can enumerate the entity sets in my controllers, it is just when trying to do it in a view I get the issue.This works fine in a .NET 3.5 project and thought I may have upgraded incorrectly but I get the same issue if I start a new project from scratch.
View 12 RepliesAn Ajax Toolkit SlideShow used to work in .NET 2.0. After being upgraded to 3.5 the same slideshow stops working as before. It always pops up "Object reference not set to an instance of an object.". Different rewrites cause different errors at embedded Jscript level that cannot be fixed. I have added the AjaxToolkit.dll 3.5 under bin folder and placed its items in the VS2008 toolkit.
View 5 RepliesI upgraded today to AjaxToolkit version 3.5.40412.2 and as soon as I did my TabContainers stopped displaying ina browser. They look fine in design view and I do not get any errors.Has anyone seen this or know if there is a post already addressing this?
View 2 RepliesMy previous development PC was running Windows Vista Home Premium 32-bit and Visual Web Developer 2008 Express. My new PC has Windows 7 Home Premium 64-bit and Visual Web Developer 2010 Express. My Solution contains 3 projects. The Solution has been converted from VWD 2008 to 2010 fine. There are no errors when I build either of the projects. One of them is not working though. When I start debugging, my default browser does not open (problem 1). When I browse the the website manually, pages of that specific project
View 6 RepliesI have a solution of VS2008 with 60 odd porject with targetted framework 2.0.
Now I wanted to Upgrade all proejct framework at once from .net 2.0 to 3.5 in and exhisting VS2008 solution
I don't wanted to upgrade each project one by one.
How can i do it
I have a web application in asp.net 3.5 where i have been using some third party controls i.e. Devexpresv9.2 and on the pages where i am using these controls i normally has to call the register tag on the page markup like for ex:
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2.Export, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
Now i have updated the version of devexpress controls installed on my machine and it has stopped working because the version installed on my machine is v10.0 but my code is looking for v9.2 how can i modify my code in such a way that in future if i install another version then i don't have to modify all the pages and references again.