C# - Debug Wrong Copy Of Project In MVC?

Feb 10, 2011

i just upgrade my MVC 1 project to MVC 3. and now in my current project [MVC3] have no views as old have.

when i run them or debug i found that everything i can see means all pages i can see by debug this blanks views project who still not have any views. i am wonder. i restart them and try by disk cleaning but their is nothing goes right. don't wonder if you not understand it:-

i have two project [first in MVC1 and 2nd in MVC3] MVC1 project have views. MVC3 project still not have any views but for testing i make blanks page. i wonder by debugging blanks views MVC3 project i can see everything who already My MVC1 project have. why this problem come are reason is that same name of both project. i am trying this when i run only project MVC3 [no-views] but they show me everything i can see in MVC1 project. well are their any way to solve this problem

NExT STEP:

i found that the problem is that i have two copy of a project. first in MVC 1 and 2nd in MVC 3 [razor] i found that when i run in MVC3 project who is in D drive the code they debug is MVC1 who is in C drive. i find out this by checking server.mappath i wonder how they debug mvc1 project when i debug MVC3 project

View 1 Replies


Similar Messages:

Visual Studio :: Debug-Start Debugging/Debug-StartWithoutDebugging OR Project Configuration Launches Dream?

Jan 3, 2010

Debug-Start Debugging/Debug-StartWithoutDebugging OR Project ASP.Net Configuration launches Dreamweaver. It started lastnight, I had both Deamweaver and VWD 2008 express open at the same time - (I was looking at JQuery in the Microsoft and Dreamweaver enviroments simultaniously). After the first tie this happened, I closed down Dreamweaver (CS3) and it opened when I tried to run my VWD project. I reinstalled VWD 2008 express, IIS and disabled Dreamweaver (renamed the exe). Dreamweaver still came up.

View 4 Replies

Window.debug.isDebug Is Null Or Not An Object - Something Wrong With The Animation Extender

Aug 22, 2010

I have a Page that conatains a panel and an animation extender attached to it, when a button is clicked the panel appears but it gives me the above error in the title.. I know there's something wrong with the animation extender but really i don't have any idea from where to start

View 1 Replies

How To Debug Web Project And Wcf Project On Same Vs 2008 Instance

Apr 6, 2010

I have two projects in my solution
1- asp.net web project.
2- wcf serivce project.
3- other common projects between two listed above

Current on the local dev machine I have to run two visual studio instance to run both projects in debug mode. That makes the system run out of resources as these projects share some other project in the soultion which are heavy in files.

Is there a way i can hookup the wcf project on a sinlge visual stodio instance and also be able to debug my asp.net web project. ? I do not want to combine the web and wcf project in to one. Have already considred this option.

View 2 Replies

State Management :: Data Being Saved To Wrong Table In Wrong Instance Of Sqlserver Of Wrong Database?

Aug 1, 2010

I have a weird thing happening. I have two identical databases installed on one virtual machine but under two different instances of SQLServer. For some reason, periodically when saving from one it will save to the other instead. Using debug, I have verified that the connection string is correct and when the item saves, it still saves to the wrong database.I use session variable, and am of the belief that it might have something to do with it...and t hat when I go from one to the other it is still getting the connection string form the other for some reason.To make sure that it isn't a problem, I make sure that I completely close out one database before opening the other in a new IE window.I assume that when I completely close out an internet explorer window that it abandons all session states. Is that true?

View 7 Replies

How To Debug Into Dll Source File From Web Project

Oct 21, 2010

I have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project.

I copied all source code from another computer. but on another computer can debug just fine.All that different is where the source file is located. so I think it should have some config in studio that tell where the source file is.

View 1 Replies

When Try To Debug The Project All The Test Auto Run. How Stop This

Nov 30, 2010

When I debug the project for viewing and fixing design issue than I see all the test are running as well. How I stop this so that my tests don't run while working on my UI project?

View 1 Replies

Visual Studio :: Debug Disabled In One Project?

Feb 6, 2011

I have solution with several projects, while debugging it gives me this message.

I tired to change it's properties to enable debug but didn't work.

View 1 Replies

Changing The Default Browser To Debug In .NET MVC 2 Project?

Apr 9, 2010

I just created my first MVC2 project using the standard template. I need to be able to change the default browser for my project to test in IE (I use chrome as the default on my OS). Unfortunately, the right click on default.aspx suggestion which worked in MVC1 can't work with these new projects as they don't have that file.

View 1 Replies

Installation :: How To Copy And Paste Project/website

Jun 30, 2010

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

View 1 Replies

MVC :: Is Better To Create An 2 Project And Copy 1 Relevant Files

Mar 13, 2010

I followed the instructions from the release notes, except for one thing. I did not include the following in my web.config. Thas the the "bindingRedirect oldversion 1.0.0.0 to newVersion 2.0.0.0". I got an error message to the effect that I could not have 2 configuration sections in the web.config. I was told that as long as I had the system.web.mvc 2.0.0.0 in my BIN and, I was refereincing this same version dll that I should be fine? I am wondering if I should just create a new MVC2 project and copy my MVC1 relevent files into this MVC2 project, not sure.

View 1 Replies

AJAX :: Unable To Debug / Debug EditPanel.debug.js File Of HTML Editor?

Apr 13, 2010

I want to debug EditPanel.debug.js file of HTML Editor, but it never shows in VS 08 and Im sure it executes to that line.What I did to enable debuggingUnchecked both 2 checkboxes for disabling the debugging

Set ScriptMode="Debug"

Change following line

[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.js")]
to
[ClientScriptResource("AjaxControlToolkit.HTMLEditor.EditPanel", "AjaxControlToolkit.HTMLEditor.EditPanel.debug.js")]

View 3 Replies

Visual Studio :: Debug Symbols Not Loaded Into Any Project

Oct 28, 2010

Some days ago all of my projects started working crazily - I'm using VS 2010, .NET 4.0, Silverlight 4 SDK, WP7 SDK. The previously compiled code parts can be debugged as they should be, but as soon as I make any change to the observed .cs file all symbols are ignored.

"The breakpoint will not currently be hit. The source code is different from the original version."

However, the compile is successful, moreover the changes in the code can be seen in the debug mode as well (e.g. if i add messagebox.show(...) it works as expected), but I'm unable to debug the project.

This happens to my Silverlight, WPF, WP7 solutions, Web Applications, so everything important. The most annoying thing is that I even reinstalled Visual Studio, the whole .NET Framework 4 Client Profile, but nothing changed.

I don't want to reinstall the whole OS, but this way i'm unable to work:/

View 2 Replies

Visual Studio :: Debug Into Dll Source File From Web Project?

Oct 21, 2010

I have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project.

I copied all source code from another computer. but on another computer can debug just fine.All that different is where the source file is located. so I think it should have some config in studio that tell where the source file is.

View 5 Replies

C# - Post Build Copy Config File To Another Project?

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

.net - Equivalent Of Reference 'Copy Local' In Web Site Project?

Nov 25, 2010

I don't see any exact duplicates in the Related Questions above, so here goes. Please don't stone me if it is a duplicate.Is there any way to achieve the same end as setting 'Copy Local' to True on a web application reference? I could probably map a custom config section to the <compilation><assemblies> config section, and simple copy all assemblies to local, but that would be quite rude. Should I be looking at tapping into a build provider or something? I think the main issue here is identifying listed assemblies not normally present on the target platform, but this seems a very difficult task to me without simply using a hard-coded list,

View 2 Replies

C# - Cannot Find Missing Reference / Copy Code From One Project To Another

Sep 22, 2010

I am trying to copy code from one project to another. There is one problem however:

The type 'Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=null'.

View 3 Replies

Visual Studio :: Unable To Copy Project Folder?

Apr 26, 2010

I currenty have a project hosted on our server, when i open that project folder i see about half of the folders i should normally see, i dont see the Controllers folder, Properties folder, obj folder, as well as the csproj file. Before I could copy this same folder and put it on my laptop and after it brought all of them over it would show these folders. Now it wont, it just copies over what it sees, not the other folders...I'm trying to create a copy on my laptop that I can work on then publish it to the server...I was able to do this before just fine, now its not copying/generating the necessary folders/files to my comp

View 2 Replies

Visual Studio :: Unable To Debug A Remote Web Project In VS 2005

Jan 14, 2011

I am not able to debug a Remote web project (Where the project files are located in another server which is in the same network). I am getting the below error message:

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder,
Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Excel.Range.get__Default(Object RowIndex, Object ColumnIndex) at InventoryADD.Button1_Click(Object sender, EventArgs e) in
\10.38.23.228q1uatassettrackInventoryADD.aspx.cs:line 670

It works fine when i try to access the website through IIS. Shud i do some setting changes on VS 2005?

I've tried with

<trust
level="Full"
originUrl="" />

View 1 Replies

Visual Studio :: Modify - Debug And Deploy 1.1 Project In Vs 2010

Feb 28, 2011

i have a project that is developed in asp.net 1.1. But i have vs 2010 installed...can i modify,debug and deploy from vs 2010.

View 1 Replies

Visual Studio :: VS2008 - F5 Starts Web Browser But Project Does Not Open In Debug?

Nov 29, 2010

F5 builds the web project and the opens the web site but the project is not in debug.

This has happened over the last week but I was not aware of making any relavent configuration changes or updates.

View 2 Replies

Visual Studio :: How To Add Copy A Reference Folder To Test Project Directory

Feb 3, 2010

I am working on my test project for my web service, and my problem is that, my web service uses a folder (within the folder there are crystal reports template).

How can I copy it to test porject?

I've tried to copy the folder to various directories such as bin, bin/debug, obj, rootDir etc, but none of them works

View 2 Replies

Web Forms :: Show some information on The Tooltip Of A Label if The Project Runs In Debug Mode?

Feb 27, 2010

I want to show some information on the tooltip of a label if the project runs in debug mode.

View 3 Replies

ADO.NET :: Data Saving To Wrong Database On Wrong Instance Of Sqlserver

Aug 1, 2010

I have a very weird thing happening. I have two databases that have exactly the same tables but different database names on the same virtual machine, but in different instances of SQL Server. For some reason, when using one of them, it will save to the other. In debug, looking at my connection string..I have verified that it is correct, yet when I allow the save, I look in the table and it isn't there, it is in the other database that is in a table with a completely different name and in a different instance of SQL Server.

View 1 Replies

'run Mode' Variable / Running Web Project In Debug Mode Or Compiled?

Aug 7, 2010

can i determine programmatically if im running my web project in debug mode or compiled?

or even better if im running it on my local machine or on a server? example to change the path for databases etc..

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved