Converting Web Forms To MVC Project Makes Build Fail
Aug 30, 2010
We are migrating a project from classic Asp.Net web forms to Asp.Net MVC. I have followed the fours steps outlined here [URL] and all is working well. Now I want to get Visual Studio to include MVC item templates in the "add new item" dialog. So I add {F85E285D-A4E0-4152-9332-AB1D724D3325}; to the <projecttypeguids> element in the csproj file. So this succeeds in adding MVC support to the Visual Studio "add new item" dialog, but now the build fails. And it fails in the strangest way. The three projects that make up the solution each complete with "build succeeded" but the process ends with a message
Build: 2 succeeded or up-to-date, 1 failed, 0 skipped
I am able to F5 debug, but I am not able to publish. We are using Visual Studio 2008 SP1 and migrating to MVC 2.0. Anyone have any ideas why the build is failing after adding this project type guid?
View 1 Replies
Similar Messages:
Jul 5, 2010
I thought you might want to know this, the beta of IIS Express will be released soon, and will make use of the best of both worlds: VS build in web server and IIS in Windows itself. Anyways, IIS Express makes it even easier to build, run and test web applications.
View 3 Replies
Jun 20, 2010
I've created a new vs.net project and added all the files from an asp.net website project.
When I compile, it couldn't find a reference to a class.
In the AppCode the class was defined, but without a namespace.
So I added a namespace, and then on the default.aspx.cs (this is where the error was originating) I added the using statement.
The using statement was not picking up the namespace.
View 3 Replies
Jan 24, 2011
I have a vs2005 web application project, Since the server is upgraded to windows 7, so i upgraded this web application project to vs 2008, but failed, the error message is as below, Unable to read the project file XX.csproj. The web appilication project verovaluexmllistener is configured to use IIS to access local iis website you must install all of the following windows components. IIS, IIS 6 metabase and iis 6 configuration compatibility asp.net. In addition, you must run vs in the context of administrator account . by default, windows runs applications in a limited -privilege user account even when you are logged on to the computer as an administrator, To run Visual studio with administrative privileges, right click the visual studio .
View 2 Replies
Jan 3, 2010
I've noticed that my project builds successfully when I hit F6.But when I run it with F5 the compilation errors in my C# surface.Why is this?Is it because the JIT compilation happens when I debug with F5 but not when I build with F6?
View 6 Replies
Mar 6, 2010
does someone know the utility/procedure for converting an ASP.net project containing multiple files into one executable (.EXE) file?
View 3 Replies
Apr 27, 2010
I am not sure if I am using the correct terms. But it is possible to create an asp.net website at least three ways.
1) Where the form and code behind code are in the same file
2) Where the form and code behind code are in separate files, resulting in 2 files for each page (*.aspx, and *.aspx.vb)
3) Where you upon the site up as a project, but insert web pages. This approach results in three files per page (*.aspx, *.aspx.designer.vb, and *.aspx.vb)
My problem is I have a site which is done the third way and I would like to switch it to the second. Is there any automated way to do this, or do I have to do it page by page. What I can do is Open a new site with Create Website, insert a page, and then do some copy and paste.
View 5 Replies
Mar 28, 2010
I need to build and deploy my asp.net mvc project using TFS Configuration
View 1 Replies
Mar 10, 2010
I have created a service project in VS 2005 that is ready for test. What files do I need to move to the test box from my project build?
View 9 Replies
Mar 5, 2010
When working with an ASP.Net application, when I rebuild the solution, I would like it to automatically refresh the current version thats running through the integrated server in the browser.
I have looked through post build commands and afterbuild targeting but I have not been successful so far. I would like to do this straight through VS2008 if possible without needing to install anything extra, put if thats not possible then any solution would do!
View 1 Replies
Apr 22, 2010
I need to know how to add a post build event to a Web Deployment Project.
How can it be done?
View 5 Replies
Feb 13, 2010
I have a solution which contains a website and various class libraries. The exists on the file system like so:
C:Projects MyWebsitedevMyWebsite.sln
C:ProjectsCoreMyClassLibrary1.csproj
C:ProjectsCoreMyClassLibrary2.csproj
I want to move the App.config file from MyClassLibrary1 project to the bin of the MyClassLibrary2. I want to do this on post build in VS or MSBuild using relative paths if possible. This way anybody checking out the projects will not have to modify any paths if they choose to locate the project in a different location.
I have already tried the following approaches but to no avail.
copy /Y "$(ProjectDir)App.config"
$(ProjectDir).. MyClassLibrary2$(OutDir) MyClassLibrary2.dll.config"
View 2 Replies
Sep 6, 2010
I am receiving an error: The parameter 'configFileBaseName' is invalid when trying to build a project on my macintosh thru a windows server 2003 VMwAre fusion virtual machine This solution runs fine on Visual Studio 2010 on my PC running Windows 7 I don't think the platform has anything to do with the error though - but cannot find anything on the web to help me troubleshoot the problem. Something tells me this has more to do with setting up my IIS site configuration - perhaps I missed something?
View 1 Replies
Jun 22, 2010
I got this error in a project I did a while back. I think this was a web site project that i converted to a web app project. This was a while ago. This is an app I'm trying to run on my local machine. I'm not using IIS.
Does anyone know what this means?
Error 2
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
C:UsersKristDocumentsVisual Studio 2008ProjectsWeb AppsKrist Woodard .net tabbedWebApplication1WebApplication1Web.config 46
View 2 Replies
Nov 3, 2010
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..
View 1 Replies
Jul 7, 2010
How do I build a web application project from command line using Web Developer Express 2010?
I am using the same command format that I would use with devenv.exe (Visual Studio), so I can evaluate us moving forward to VS2010. However, I am having real trouble building our code. Our solution consists of 4-5 projects, consisting of assemblies. The last assembly is the web site code. The root .sln file is the one which when opening in the IDE can click Rebuild All, and the DLL's of each project are generated and then brought into the website project.
However, when I run vwdexpress.exe from the command line nothing happens and no Dlls are generated. This is not giving me any confidence to run with VS2010.
the command line is like so:
C:inetpubwwwrootmyprojectvwdexpress /build release mysolution.sln
The in folders of each respective project are empty, but it takes 3-4 seconds for the command to finish, which gives me the impression it did something.
View 6 Replies
Mar 17, 2010
I have an ASP.NET 3.5 website application using C# and SQL 2005 running on a web server. Now the application has the ability to create new aspx pages with content and the relative aspx.cs and design.cs pages needed on the fly and store them in the base directory on the server. Think of it as a crued Visual Studio website on the server for admin to click a few options on a page then the new pages are created for them without the need of a web developer. This all works fine and the code is working 100% (for the moment).
My problem now is the following: When i now navigate to this newly created page i get the following error - Parse Error : Could not load type 'Namespace.PageName'
I've looked into the reasoning and microsoft say "These errors occur if the .aspx page contains a reference to a code-behind module and if the application has not been built." Which now makes sense the application does not realise that these new pages are part of its system even though i can navigate to them.How do i get the system to recognise these new pages and rebuild itself accordingly?Now i cannot rebuild the system localy then reupload to the server, this needs to be accomplished on the server by the system, because the site cannot afford to have down time everytime admin decide to add new pages.
View 3 Replies
May 25, 2010
I want to build a survey system where you can build a form with questions and some answers to these questions and then members who will log in will be able to take the test.
Then i want to present the different results from the test in some diagram or something like that.
View 5 Replies
Oct 28, 2010
I got following error. my project is on Server machine when i try to add any AJAX control and try to build my project.We have SERVER 2008 Enterprise. Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
View 2 Replies
Jun 1, 2010
Just wanna ask every one, does excess use of Ajax in ASP.NET makes website heavy?
If it does, then when to use and when to not use ajax control?
View 4 Replies
Mar 8, 2010
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
[code]...
View 3 Replies
Apr 1, 2011
I have a question regarding a situation that occurs with GridView, ObjectDataSource in ASP .NET application. The GridView is linked to the ObjectDataSource and both are included within an UpdatePanel letting the GridView to fill in an asynchronous way from a form in the same page so it gets more rows as the user enters the data:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True"
SortExpression="Name" />
<asp:BoundField DataField="Periodicty" HeaderText="Periodicty" ReadOnly="True"
SortExpression="Periodicty" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetSessionNames" TypeName="Simulation"></asp:ObjectDataSource>
<asp:Label ID="Label27" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="NewWebSessionButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
I start the project with Visual Studio 2008, fill the form and it works correctly. Then I stop the execution: rerun again and the data I entered in the previous run is in the GridView. Is like some sort of cache saved the data from the session before. I checked that EnableCaching property is set to false for the ObjectDataSource. If I Rebuild Web Site in Visual Studio (not just Build) then it works corretly leaving the GridView empty. Is this caused just becuase of Visual Studio? Can it be turned off? And will it happen in the final IIS it will run on?
View 1 Replies
Dec 28, 2010
I got the following datalist populated with 12 images a page average size is 75kb.If i move the scrollbar in internet explorer up and down it goes very laggy and stuttering, while firefox has noproblem at al fast and smooth. If i remove the images there is noproblem. if i disable the setting smooth scrolling in ie it's a little better but still not good enough. I can't seem to find a way to get this right is there some kind of script or am i doing something wrong. Or maby do i have to put the datalist in a user control?
<asp:DataList
ID="dList"
runat="server"
[code]...
View 4 Replies
Jan 30, 2010
On App_Theme folder I have lots of images, and when I open VS2008 it performs really slowly performance.
it takes about 10 minutes to open the solutopn, and when trying to view site on browser it takes more 10 minutes to view the first page. after that, it is OK.
View 3 Replies
Jun 9, 2013
i have a button,i want when a button is clicked a alert message should be display, i wrote the code like this
protected void btn1_Click(object sender, EventArgs e)
{
Response.Write("<script>alert('Your account has been created')</script>");
}
It work well, but when it pop-up background color become gray,i want when it pop-ups,the background should remain same .
like when we click on button which is associated with confirmbuttonextender..the background become fade but it doesn't go blank..
View 1 Replies