MVC :: After Installing MVC3. MVC2 Project Will Not Work?
Jan 5, 2011
I am working on 2 projects. One that is in MVC2 that is an existing application, and then I have the MVC3 application that I am trying to build. After hearing that I could get intellisense for my work in VS2010, I went to install the VS tools for MVC3. Now my old project will not work. I'm not trying to move my MVC2 project to MVC3 right now either.
I didn't actually change anything about the MVC2 project, but now I get this error whenever I try to open a page:
Server Error in '/' Application.
Parser Error
Description:
An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message:
The type 'System.Web.Mvc.ViewMasterPage' is ambiguous: it could come from assembly 'C:WindowsassemblyGAC_MSILSystem.Web.Mvc2.0.0.0__31bf3856ad364e35System.Web.Mvc.dll' or from assembly 'C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Mvcv4.0_3.0.0.0__31bf3856ad364e35System.Web.Mvc.dll'.
Please specify the assembly explicitly in the type name.
Source Error:
[Code]....
View 6 Replies
Similar Messages:
Feb 8, 2011
I tried upgrading the solution to MVC3 in VS2010 by using an upgrader tool I don't know what it does exactly but it didn't work. My "System.Web.Mvc" is not being recognized in my project. Is there anything specific I should be doing with my web.config? I don't quite understand the underlying details about all the places I should be referencing dll's or what "binding" even means and when I should use it inside the web.config So I have to ask, what is the best method for upgrading to MVC3 and what have you done that works?
View 1 Replies
Oct 24, 2010
I am Rupesh B S. I am going to upload my first asp.net project on internet server. I have a doubt on uploading area. In my computer I installed - Visual Studio 2010 SQL Server 2008 No IIS Installed by myself My first doubts is Because of not installing IIS in my computer while I was developing my project and I did not stored Project folder in "inetpubwwwroot" Folder, will it cause any problem on running my project on internet. In My computer, my project is working smoothly Now.
My Second Doubt: Under which folder in server I should upload my project folder. area showing in my hosting server control panel. My Third Doubt: Anything I have to configure such as database for to upload in server b4 uploading my project folder into the server? MY Fourth Doubt: Just upload my project folder as it is as it in my computer - Right?
View 1 Replies
Oct 24, 2010
I am trying to use Domain Driven Development (DDD) for my new ASP.NET MVC2 project with Entity Framework 4. After doing some research I came up with the following layer conventions with each layer in its own class project:
[code]...
Currently my Repositories layer holds a reference to the Domain layer.From my understanding injecting a UserRepository to the UserService class works very well with unit testing as we can pass in fake user repositories.So with this architecture it looks like my Web project needs to have a references to both my Domain and Repositories layers.But is this a valid?Because historically the presentation layer only had a reference to the Business Logic layer.
View 3 Replies
Mar 2, 2011
, i created a html helper in mvc3 project with razor view
[Code]....
and i am using this in view but error is occuring.
but it works in aspx view engine and mvc2.
View 10 Replies
May 7, 2010
Visual Studio 2008
I've been using AJAX for a while now, and have installed it on a few computers before to run with Visual Studio 2008. I am now setting up a new computer to develop websites using the AJAX control toolkit. However, I cannot find ANY documentation in Microsoft to install AJAX. Everywhere it says "Install Toolkit" all instructions say install toolkit. Howerver, installing the toolkit does nothing it just adds the toolkit then does not work since the ajax extensions are not installed. So you obviously need to install the extensions or whatever first so Visual Studio can work with AJAX. NO where does it say this or how to do it. I'm amazed that any programmer can use AJAX at all, how the hell do I install ajax to work with visual studio, NOT the toolkit!
View 1 Replies
Nov 16, 2010
I currently trying to convert a ASP.NET MVC2 application to ASP.NET MVC3 razor. I have a lot custom Html helper methods, which render html output, like the one below, which renders a button with some markup :
StringBuilder sb = new StringBuilder("<input type='submit' id='") .Append(buttonId) .Append("' name='" ) .Append(buttonId) .Append("' value='") .Append(buttonValue) .AppendLine("' class='myclass1 myclass2' />");return MvcHtmlString.Create(sb.ToString());
View 5 Replies
Feb 27, 2011
I want to use ajax toolkit for MVC2 project.
View 2 Replies
Oct 22, 2010
I can not publish my MVC2 project on my server.
My configuration is: VS 2010, MVC2, IIS 7.0
I have 6 different service clients in one project and as we all know when I debug the WCF client hosts them and all is working great.
If i publish up to my server the site will run but i keep getting this error after login.
There was no endpoint listening at http://localhost:8731/Design_Time_Addresses/CISS.Services/SecurityService/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
This is suppose to be easy to publish your site correct? what settings do I need in VS 2010 and what is required on IIS 7.0 to get it to work?
View 2 Replies
Jul 14, 2010
I'm so excited about the webmatrix, because it makes all the works to be easier than ever before, so I make a try, but I met a problem when I deployed the project membership db to remoting host (I chose the cytanium.com), and I had deployed the project files and another database sucessfully, only the membership related database failed, the error message is below:
[Code]....
I thought that the problem source is about the collation of the database, so I change my database collation from "Chinese_PRC_CI_AS" to "SQL_Latin1_General_CP1_CI_AS", but the problem is the same, I had search a lot of articles, but I didn't find a way to resolve this issue.
View 2 Replies
Jan 27, 2011
I've looked all over the web for the best way to organize an ASP.NET MVC2 project. I've only seen examples of people using the default template for MVC2 projects. But is this the best way to organize your project if it is going to contain a large number of files?
We're in the process of building an application that is heavily built around jQuery for UI and ajax using JSON. So, as you can imagine, we will have many custom .js support scripts.
In our solution, we have placed all our support libraries (3rd party and custom) into respective projects. The MVC2 project that is also in the solution is using the default MVC2 template.
In the MVC2 project, the "starting" structure is still pretty much unchanged. Under the Controllers directory, we have each controller AccountController.cs and HomeController.cs (for example). Under the Views directory, we have three subdirectories named Account, Home, and Shared. In the Scripts, directory we have also divided that up with three directories, Account, Home, and Shared. And finally we have the Models directory, that is also divided into Account, Home, and Shared subdirectories.
As you can see we haven't deviated from the basic template that much. But, as we start adding stuff to this, we're realizing how cumbersome this might become when we get upwards to 20 or 30 views and 100 support .js files.
View 1 Replies
Jan 11, 2011
A web application works with the database. Once a day, the database should be scanned and alerts should be sent to users. From what I've seen out there, additional project has to be created which will be installed on the server and will work with the same database. Executable created by this project has to be installed in Windows scheduler to be activated once a day.This seems complicated and inefficient: starting additional executable and working on the same database.
View 1 Replies
Apr 11, 2010
I have a project in ASP.NET MVC1 using VB.NET controlers and JqGrid. it works fine under MVC1. After migrating the project to ASP.NET MVC2, the grid is no longer populated. It seems that there is some new restrictions on returned Jsonresult in MVC2. How to solve this in VB.NET. Controler function populating the jqgrid is something like this :
Function GetGridRecordset(ByVal qry As String) As JsonResult
Dim result = New JsonResult()
...
...
Return result
End Function
View 3 Replies
Apr 29, 2010
I have a VS 2010 MVC2 .NET 4.0 web application. ASP.NET tracing is enabled both in the Page directive (Trace="true) and in the Web.config:
<trace enabled="true"
requestLimit="10"
pageOutput="true"
[code]...
View 1 Replies
Jul 25, 2010
I have an MVC 2 web application which uses models auto-generated by LINQ. When I add a Silverlight project to my solution, generating a new strongly-typed View fails with the message:
Compiling transformation: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?). I understand this is most likely because Silverlight does not access the System.Data namespace (at least, I can't add the reference to my Silverlight app). However, it's not really important - I'm just trying to generate an .aspx View at this stage, not a Silverlight View.
Is there any way to get this template generation to work, or do I have to create my Silverlight project outside the solution and build it separately? I was kind of hoping to take advtage of WCF RIA and some of the other goodies one gets from including the Silverlight app within the main solution... anybody got a fix?
View 1 Replies
Apr 26, 2010
My test shows it doesn't work. It ignores the nested data in model.
View 1 Replies
Jan 18, 2010
Why does the Web Platform Installer force you to install SQL 2008 Express?
I have a production server which already has an installation of SQL 2000 but no web development tools are installed. I would prefer not to add SQL 2008 Express if it is not necessary. The server in addition to being the primary intranet webserver is also DC, APP SERVER, FILE SERVER and basically does not need to handle an extra instance of SQL.
The main purpose of this is just one of convenience to have the web development app on the RDP Desktop instead of attaching to the server in some manner (ftp/unc share).
View 3 Replies
Nov 7, 2010
I am developing and app to find automatically characters stats with the 2nd edition dnd rules to be easy for my party to create characters when we play.
I am using Visual studio 2010 c sharp express and Sql 2008 express R2.I have added a database in the project to have all the data needed. When I use the release folder or the debug folder on other pcs the app doesn't run. Wherever I install SQL server (database and management) things are fine. I googled but I am not sure what to look exactly for and made a brief search here but with no results. I am trying to make sth that has almost no dependencies but well I can't avoid installing .net framework 4 everywhere...
Is there anyway to make database work without installing SQL? Is there any workaround like a dll or sth?
View 5 Replies
Aug 17, 2010
I've started working on my master's project and decided to try something new and use ASP.NET MVC 2. I have Windows 7 Pro and Visual Studio 2010.I've been following this tutorial [URL] and what's driving me insane is that I cannot even get past the first step. I setup my project exactly as the tutorial says, start debugging and all I get is: Server Error in '/' Application.The resource cannot be found. Description: HTTP 404.What the hell? I checked the default MVC application that VS01 builds when you choose "ASP.NET MVC 2 App" instead of "ASP.NET MVC 2 Empty App" and it works.
View 3 Replies
Jan 18, 2011
We have an Intranet site so each developer has our own development site on our computers. We were using XP and IIS6 but are trying to move to new computers running Windows 7 and IIS7.5. Our website starts with classic ASP in the root and has 2 virtual directories turned into applications with .NET code. One is projectless .NET and it works perfectly. The other is a .NET project and we cannot get that running on Windows 7. It compiles fine with Visual Studio 2008 but when trying to access the files through the browser it just runs and eventually times out.
I have tried various things:
- both Integrated and Classic pools for this problem application and the entire website
- even installed framework 1.1 just in case
- various IIS settings including installing all IIS6 Management Compatibility items
I am guessing perhaps something has to change in web.config or some other file, but not sure what. We are running the 32 bit Windows 7 Enterprise.
View 4 Replies
Nov 15, 2010
After a long process of configuring IIS inhttp://forums.asp.net/t/1622627.aspx ...In iis project the jquery doesnt work ...but when i run the same in vs2010...it works
<
script
type="text/javascript">
[code]...
View 2 Replies
Jan 28, 2011
I have been usiing thr profile provider in a net2.0 application and it works fine. I am now working on a 4.0 project and the profile doesnt work. I have the aspnet_Profile table in SqlServer and I have the code in the config.
[Code]....
But I don't get a Profile.XXX in the intellisense? What am I missing?
View 2 Replies
Apr 9, 2010
I'm trying to work with HandleError attribute in a MVC2 application and found some weird feature.When you create a new project and choose "ASP NET MVC2 Web Application" (the one that comes with Home and Account suppport) the following code works well:
[Code]....
I believe that is a configuration issue, but I don't kwon how search about.Anyone has an explanation for this?
View 7 Replies
Dec 24, 2010
I just finished programming a web application, and I want to upload it to a host server so that it works online. However, I faced some problems.When recalling functions from class files, server can't approach them, and the following error appears: (BC30002: Type 'db_class' is not defined)I know that there are steps I have to do in this stage in order to make the project working. I want your help letting me know what these steps are!
I have reviewed many references and posts in this forum, but I couldn't reach a solution.I built a small project that contains ( default.aspx, app_code/class1.vp and web.config). It would survive my graduation project if you would downloading the project and fix the error appearing, and return me back the modified code. I tried many things on my hand to get fixed, but with no result.[URL]
View 1 Replies
Jan 14, 2010
How do you modify a ASP.NET MVC 2.0 project to work with the Spark View Engine?
I tried like described here:
[URL]
But somehow it still tries to route to .aspx files.
Here the code of my global.asax:
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(.......
View 5 Replies