Architecture :: NUnit Debugging No Longer Working?

Aug 26, 2010

I moved from VS2008 running on XP 32 bit to VS2010 running on Win7 64 bit and just noticed that I can't debug in NUnit like I used to.

On my old system, I just went to Debug|Attach to Process, chose NUnit.exe, and ran my tests from the NUnit GUI. VS2008 would stop at the breakpoints just as normal.

Now when I try this using NUnit 2.5.5.10112 on the new configuraiton it just skips over my breakpoints.

View 1 Replies


Similar Messages:

Architecture :: NUnit And Public Static Readonly?

Aug 17, 2010

I have an app that I am testing with NUNit. The project im testing has several helper classes that are created as public static readonly. When I run the NUnit tests, they all fail with the same error

Systems.Code.Test.TransactionTest.CreateDataContext_ConnectionString_ReturnsDataContextObject:

View 2 Replies

Architecture :: NUnit - Write One Value To A Database Then Create Another Value?

Aug 17, 2010

Im pretty new to NUnit and am beginning the process of setting up my tests. Some of these test involve a database, specifically checking a particular value against a value in a database and if its not greater than the last retrieved value, flag an error. Whats the best way to test in this scenario ? should I write one value to a database then create another value thats out of sequence and run a database query ? This would involve putting a known value into the table, then running the query with another value.

There is no rollback attribute for nunit, so I gues using TransactionScope would work, that way I could return the database to a known state after the test. There tables have foreign keys so that means adding a lot of extra 'dummy' data first to some of the other tables. Is this sort of 'testing' the best way ? I basically need to perform the test based on an existing data value and I guess this must be pretty standard stuff, so whats the best way ?

As I understand it, the tests should be self contained, so any data i insert into the database during the test should be removed afterwards, is this correct ? If so, it means I need to insert test data into 6 additional tables just to test one function, then remove it after the test has completed, is this the normal way to to this ?

View 2 Replies

Architecture :: Reading Values From Config Files In NUnit Tests?

Aug 18, 2010

One of my NUnit tests has to read in some values from config files. In my main application this process works perfectly well, however when I run the unit test, the code that reads in the values from the config files doesnt read anything in. Ive tried putting app.config in my unit test project (I even tried web.config) but nothing seems to work. Are there any special steps involved when reading from config files in an nunit test ?

View 1 Replies

Web Forms :: StyleSheetTheme Is No Longer Working

May 25, 2010

I have been maintaining a web application that is written using C# in VS2005 for about a year. Recently TFS was reorganized and my supervisor moved all the source code from one lacation to another. Since then I have not been able to get the application to display properly. It took me a while but I finally figured out that the issue is tied to the StyleSheetTheme property of the page declarative tag. When I removed it I can compile but the page doesn't render properly. When i add it almost all of the controls fail with this error: "An unhandled exception has occured. Cannot instantiate type 'WebPart' because there is no public parameterless constructor". This even happens on standard ASP.NET controls. I started to upgrade the application to VS 2008 but that has opened up all sorts of problems. I need to get this application running so I can continue to maintain the application.

View 1 Replies

Debugging Not Working With IIS 7?

Mar 1, 2011

I tried to running a website in debug more (F5), and I get the following error message. Note, that I am using a local IIS 7 server on windows 7 64 bit machine.

How can I get the debugger to work?

View 1 Replies

MVC :: Editing Of View Not Working While Debugging?

Jul 16, 2010

Just upgraded my MVC application to mvc 2 and visual studio 2010 and now I am unable to edit the views while it is running (debugging). Is this a known problem and what is the fix?

View 9 Replies

Visual Studio :: Debugging Is Not Working?

May 7, 2010

i put a break point at ADD button, when ever i click on the button the it is not entering into that?

what might be the problem?

previously it has worked but its not working.

View 1 Replies

Visual Studio :: Breakpoints Stopped Working During Debugging?

Sep 3, 2010

I had the strangest bug yesterday while trying to debug in vs.net 2005....

I had an '05 web application. I clicked the "Run" button to start debugging, and the webpage popped up fine. I could run through the pages fine. Everything seemed fine....UNTIL!

Until I tried to start inserting breakpoints into my code. The application ignored them. In addition, I noticed my little green visual studio "Start Debugging" arrow (which is normally greyed out while in debug mode) was green. It was as if visual studio completely detached itself from my website I was trying to debug.

After playing around with it for a while, I realized I also had a vs.net 2008 solution open as well. My '08 solution wasn't in debug mode or anything, it was just sitting there open. I just happened to close it, not thinking anything of it, and presto! My 2005 debugger started working again!

So basically, I can't debug an '05 solution (or at least a web solution, as that's all I tried) while I also have an '08 solution open.

View 2 Replies

AJAX :: Upgraded From Vs2005 To Vs2008, AJAX No Longer Working?

Mar 15, 2010

I got a new computer with vs2008 and moved my app onto it for development. I can navigate pages but none of the AJAX is working. I get these IE errors "sys is undefined" and "webpartmanager" is undefined. I found lots of info on the web but none seemed to work/be applicable to my situation. My web.config file looks to be fine and I kept the application at asp.net 2.0.

View 9 Replies

Visual Studio :: Unable To Start Debugging On The Web Server / Debugging Failed Because Integrated Windows

Jun 3, 2010

I get this error when I hit F5 in VS 2008. I have checked that Windows authentication is enabled on the site and it is. I can mannully attach the debugger to the IIS process and it works. What could be wrong? I have tried alot of things without success.

View 2 Replies

Visual Studio :: How To Turn Off Remote Debugging 2010 / Unable To Start Debugging On Web Server

Mar 7, 2011

I'm trying to debug my web application on my localhost machine in Visual Studio 2010 and I keep getting this error: "unable to start debugging on web server. The Microsoft Visual Studio remote debugging monitor(MSVSMON.exe) does not appear to be running on the remote computer."

Is there a way I can turn this off as I'm not trying to make any attempts debugging remotely.

View 1 Replies

Architecture :: Auto Update Not Working On 3 Tier Project?

Nov 16, 2010

When i create a new class on data layer,i can access that on business layer by creating object of that class.

but when i create a new "public class" on business layer i cant access that on presentation layer.

another thing is, after building business layer if copy Business.dll,Business.pdb,Data.dll and Data.pdb from business layer to presentation layer "BIN" i can access that class

View 4 Replies

Iis7 - Unable To Start Debugging On The Web Server - Couldn't Start Debugging VS 2010 - II7 - Win 7 X64

Jan 11, 2011

I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging. Unfortunately the help link is not helping me much and leads down a heck of a large tree of things. I checked the following:

Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here? Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging). Debugging is enabled in web.config. Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with). Application pool: Classing .NET AppPool (also tried DefaultAppPool). Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?

View 2 Replies

MVC :: Use NUnit As Test Framework?

May 5, 2010

I've just downloaded NUNit and would like it to be an option for my Test Project provider when I create a new MVC 2 application. At the moment the only option I am getting is the Visual Studio (MSTest) option.

View 2 Replies

C# - Test .NET Web Site With NUnit?

May 4, 2010

I'm currently trying to upgrade our build server at work, going from having no build server to having one!

I'm using JetBrains' TeamCity (having used ReSharper for a couple of years I trust their stuff), and intend to use NUnit and MSBuild.

However, I've come up with an issue: it appears that it is not possible to test an ASP.NET web site with NUnit. I had assumed it would be possible to configure it to test App_Code after a build, however it seems that the only way to do tests nicely is through converting the web site to a web application

How could I go about this? the testing needs to be able to be fired automatically from TeamCity.

View 2 Replies

MVC :: NUnit Option Does Not Appear When Creating A New App?

Mar 10, 2010

I am just starting to learn MVC and have installed NUnit to use for testing. The NUnit option does not appear when creating a new MVC app, so I followed this tutorial

http://www.nikmakris.com/blog/post/Setting-Up-ASPNET-MVC-with-NUnit-for-Visual-Studio-2008-Standard-Edition-Visual-Web-Developer-Express-2008.aspx.

However, when I run devenv /setup it doesn't work (says it does not exist) and so I cannot install the NUnit template. Surely there is something else I can do to be able to install the templates?

View 4 Replies

Mocking HttpSessionState In .net For Nunit Testing

Mar 28, 2011

I've see n a lot of discussions surrounding HttpSessionState and asp.net MVC.I'm trying to write tests for an asp.net application and to mock the HttpSessionState and if so, how?I'm currently using Rhino Mocks and Nunit

View 1 Replies

NUnit - Configuration Settings Cannot Be Found

Jan 15, 2010

I've written an NUnit test project against an ASP.Net project. The code being tested cannot find the configuration values (in Web.config) when invoked from my test project. What is the right way to provide these configuration settings so my tests will run?

View 2 Replies

MVC :: Code Coverage Using NUnit (in VS 2010)?

Jun 2, 2010

I switch to nUnit for my pet project (which I started over completely!).

However it seems doing so is costing me code coverage? Or am I just missing a simple and obvious way to enable code coverage when using nUnit.

I'm using ReSharper, which does a great job running my tests. However, VS itself seems not to recognize my tests at all?

View 3 Replies

MVC :: Open Test Class In The Nunit GUI

Jan 10, 2011

Im pretty new to MVC and have never tried unittesting before, so i bought "Pro ASP.NET MVC2 Framework" by Steve Sanderson. I have installed Nunit but when i am trying to open my test class in the nunit GUI i get this error message Visual Studio 2010 > Projects > SportsStore > SportsStore.UnitTests > Bin > Debug > SportsStore.UnitTests.dll "This assembly was not built with any known testing framework"

View 6 Replies

Setup NUnit In VS2010 Instead Of MSTest?

Nov 17, 2010

How to setup NUnit in VS2010 instead of MSTest?. Can not find setup info in google for VS2010.

View 2 Replies

Architecture :: Dsofile.dll Not Working In VS2008 Website On Windows 7 64-bit Machine / Error: 80040154

Oct 22, 2010

I need to extract meta-data of different files, as uploaded by the user.

For this I found out dsofile.dll from MS. Now the problem is that the version I've downloaded from

[URL] is working fine with Windows XP but giving run-time error in Windows 7 64-bit system. Finding more on the error I was getting I came to know that the dll would not work for 64 bit OS. I also downloaded 64-bit from [URL] but still am getting below run-time error:

Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.

I've two questions:

How can I solve this run-time error and from where will I get dll working in VS2008 Website on Windows 7 64-bit?

Is there any other way I can extract meta-data (all the attributes/properties other than exposed by System.IO.FileAttributes) of any file (could be doc, docx, xls, xlsx, jpg, pdf, txt, etc.) uploaded by the user?

View 4 Replies

.net - Is It Possible To Run Tests Using The NUnit Framework In A Hosted Website

Sep 8, 2010

But I have other tests that are essentially deployment tests (you can't test how the production deployment went using a unit test on a build server) and I'd like to use the nUnit framework to run these.But, the production server doesn't have the nUnit command line executer. I'm only allowed to run aspx pages and reference .dll's in bin.What do I need to do to run tests (yeah, yeah, they're not really unit tests--relax) using nUnit in a webpage? Is there a straight forward way to do this, or does this essentially require porting the nUnit winforms test runner to ASP.NET?

View 1 Replies

MVC :: NUnit Option As Test Project Type In VS 2010?

Apr 23, 2010

I created my testing project by just adding a class library and referencing nunit dll. Works fine.However, I'm curious as to how get NUnit integrating with VS2010 just like MS Unit.Also any good reading on TDD with MVC 2 (like specific to the new functionality available in MVC 2)?

View 2 Replies







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