Migrate A VS Project To A Website?
Jul 28, 2010If you started developing as a project, how difficult is it to migrate into a web site development process?
View 2 RepliesIf you started developing as a project, how difficult is it to migrate into a web site development process?
View 2 RepliesI have an application which has been built in MVC 2.0. I need to upgrade it to MVC 3.0 and that too by using Razor CSHTML engine. All the information which I got on the net was for MVC 3.0 Webform engine but nothing much for migrating to Razor.
View 37 RepliesCurrently we have a bunch of web sites (web site projects) that I think should be converted to web application projects. Everybody agrees.
But a number of custom BuildProviders are used to generate controls and unfortunately MSDN says that
Adding a customized BuildProvider class to the Web.config file works in an ASP.NET Web site but does not work in an ASP.NET Web application project
Are there some ways to migrate though without full discarding of custom BuildProviders mechanism?
I have inherited an ASP.net website that was originally started back in 2007. I believe that a lot of the codebase was written in version 1.1, patched to 2.0 where necessary. The client is still not happy with some features and has requested changes to be made. In "peeling back the onion skin" I found that the codebase is rather outdated. I have asked and received approval to upgrade the entire application (website plus VB library) to ASP.net 3.5. Besides following the standard help instructions in VS 2008 and the advise of other posters on this site, can anyone direct me to specific resources to utilize in reviewing the 1.1/2.0 codebase and selecting the best 3.5 constructs that are most compatible? Do you favor the approach of converting the codebase in VS 2008, or do you start with a clean slate and copy/paste code where necessary? The original codebase uses Anthem and Free Textbox libraries. Do you favor upgrading these libraries to 3.5 where available, or are there other (free) libraries that will do a better job?
View 1 RepliesAt the moment I have to migrate a web-application (ASP.NET 2.0 with Masterpages) from IE6 to IE7/IE8. Where can I find hints and guidelines for this topic? The webapplication looks fine in IE6 but completely awful in IE7 and IE8. In IE8 I cannot see the compatibility button.
View 2 Replieswe are migrating a website from a proprietary system a new system built inSQL 2008. about 6,000 pieces of content with individual hard-coded aliases. How could we go about creating a match table to ensure these resolve with our new system (based on Intellgentsia URL rewriter)?
View 1 RepliesI'm trying create unit testing for an existing website project (not web application project). I cannot access my under test classes unless I use accessor. However, if I use accessor, I have problem to initiate an object with passing arguments. I only want to create unit tetsing for App_Code. After searching web, and I found that I'd better to create a web application project using my current existing website project. From solution explorer, add new project ->using existing website. My questions is: what impact will have for my current website to create the new project? Should I just convert my current website to web application? If do that, will it cuase problems on my website? I am new on asp.net, still learning..
View 1 RepliesI just converted an ASP.NET Web Site Project to a Web Application Project in VS 2010. After I run the application though it seems that my class polymorphism broke. I don't have a clue as to why this could occur.
So in the following code when I call base.OnLoad(e) I am getting errors in the base class because the variable myString is null. In fact all the variables for the Base class are null. I can do
[code]....
I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was working fine in the website project. Today I decided to migrate the website to a web application project as I have learned this is the best way to work in .NET. I split out all my class files into a separate class library and copied all my other content into my new project. Then I updated all the references and web.config.
When I build the class library, everything works great. The problem is happening when I try to build/debug the web application project. It is acting like all the controls are missing and it is also throwing a bunch of compile errors about the public properties I have in my master pages.
Control errors: "The name 'INSERT CONTROL NAME HERE' does not exist in the current context"
Master page errors:'System.Web.UI.MasterPage' does not contain a definition....
It is giving these errors for every single control and master page property in my entire solution.I notice when I add a new web.form to this project, it also adds a filename.aspx.designer.cs file in addition to the .aspx and .aspx.cs file. My existing files do not have these extra files since they were created in a different .NET version.
UPDATE: It seems I was missing the step where I need to right click on the new application folder and select "Convert to web application". I just did that and it seems to be a little bit better...
Now it is choking on Literals that are inside single quotes:
<div class='<asp:Literal ID="CssClassLiteral" runat="server"></asp:Literal>'>
It doesn't see this literal when it does the conversion... Is the above valid code or should I implement that functionality another way?
I was not able to do unit testing for our existing web site project. I converted the web site project to a web application project. I did some unit testing and changes on the converted web application project. However, my co-worker was doing UI testing on the web site project. We need put UI testing and unit testing to the web application project. Is it possible to move the UI testing code that my co-worker did to the web application project I am working? If so, how do you do it?
View 2 RepliesI'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.
What is the difference between Web Application Project and Web Site Project ?
View 6 RepliesI have a new development machine running windows 7 professional 64 bit. On loading up a website project Im getting this error
'The Web Application Project 'websitename' is configured to use IIS. To access local IIS websites, you must install IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibilty
ASP.net
Windows Authentication
In addition you must run Visual Studio in the context of an administrator account
As far as Im aware, I am an administrator of my own pc and I have the .net framework installed.
I'm trying to evaluate an expression stored in a database i.e.
"if (Q1 ==2) {result = 3.1;} elseif (Q1 ==3){result=4.1;} else result = 5.9;"
Rather than parsing it myself I'm trying to use the DLR. I'm using version .92 from the Codeplex repository and my solution is a .NET 3.5 website; and I'm having conflicts between the System.Core and Microsoft.Scripting.ExtenstionAttribute .dll's.
Error =
{
Description: "'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.",
File: "InternalXmlHelper.vb"
}
At this time I cannot upgrade to .NET 4.0 and make significant use of the .net 3.5 features (so downgrading is not an option).
My web will call some form from my friend. i want to ask,can my friend use session in my project?? because when login, i store some username and password in session.
but when we publish,when my form redirect to his form, it not return session in his form. i want to ask you all,is this possible 2 web application share session? i think it possible because still in one browser.
I would like to understand if it is possible to convert a windows application project written in vb.net into an ASP.net website. I'm editing the code of a project, and I want to integrate the code into my WEBSITE written in vb.net I have a solution which when I open, it contains a class library and a windows application. There are only 3 files viewable under each of two folders. The folder Charlotte with Myproject, Assemblyinfo.vb and Charlotte.vb and the folder TestCharlotte with Myproject, AssemblyInfo.vb and frmTest.vb. How do I go about taking this thing and integrating the pages into my website application? WHen I look in the folders on my hard drive, I can see other things including a bin folder and an object folder.
View 4 RepliesI got a website project and found I couldn't assign a fixed port number for the application in development server. (When I debug, the port number following localhost:1194 always changes)
I've been googling it for hours, but the closest one is how to configure port number for web applicaiton, with a web application I know go to property-web-specific port, but with a web site project I can't find such an option anywhere.
All I can get from a website property is
1.references
2.build
3.accessibility
4.start options
5.silverlight applications
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.
i have created a website and a project[containing form1]...in my website a page is der which shud call form1...but i dont know how to do it..is it possible.
View 4 RepliesI have a c# website project in visual studio 2010, and all of my .aspx pages are currently being stored in a ~/Forms directory. The problem is that when I want to go to any web pages, they are all prefixed with "http://localhost:000/Forms/", when what I really want is "http://localhost:000/". So, "http://localhost:000/AboutUs.aspx" instead of "http://localhost:000/Forms/AboutUs.aspx". What is the preferred way to deal with a situation like this? I don't want to rig anything up.
View 1 RepliesHow to make new project and website into only one solution?
View 2 RepliesIs to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change.
View 1 Repliesi have developed simple login form as my web application. I wanted to connect it with database to add some more features. However, my VS 2008 was unable to connect with SQL Server 2008 on my laptop, I thought, I should copy and paste my entire web application folder into my web space provided by university. I have done that through ftp. However, when I have tried to debug my application (through remote desktop connection on my university server) I got some weired error.
Furthermore, when I have tried to debug my application on my laptop, it gave me an error that "Web.config file has been renamed, changed or deleted........."
So, my question is, "Is it possible to copy and paste your project simply like you do with your other files (songs, movies or photos etc...) and can debug (source as well as destination) without doing any further editing or chages?"........If no, what are the other alternatives?......
In visual studio 2005
File -->New --> Project / Website .
What is the difference between this project and website.What we can do using project and with using website.
When I start a new ASP.NET project in Visual Studio 2010, I can either create a new ASP.NET Web Site or an ASP.NET Web Application. What's the difference between these two project types? Why would I choose one over the other?
note: this question is an exact duplicate of this one, but I'm asking specifically about Visual Studio 2010 (there are no answers targeted at VS 2010 in the original question). So are the answers of the other question still valid or are there any changes with VS2010 which results in different answers?