.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How do you move an UI testing for a web site project to a web application project?

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :ASP.Net

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? Thank you for your help.

Li Ai Shen

View Complete Post

More Related Resource Links

How can i convert my entire asp.net web site project to asp.net web application project


How can i convert my entire asp.net web site project to asp.net web application project


i want to use Microsoft Ajax Minifier but i could not find how to implement it to the asp.net web site project


so for using this feature i might convert my asp.net web site to asp.net web application


thanks for all kind of help

Web Service cannot be found/referenced in Web Application project (working in Web Site)


Hi Everyone,

I am learning about the web service technology, and I tried to create my first Ajax style web service following the video tutorial by Joe Stagner (http://www.asp.net/general/videos/ajax-style-services-with-microsoft-visual-web-developer-2008)

The tutorial is quite basic, we simply create a web service, and call it from Javascipt in the same program.  But while I can create the web service no problem (testing the WSDL file from browser works perfectly), I cannot call it within Javascript.  Tellisence do not kick in, and when I run the program anyway, a Javascript error claims that the web service I created cannot be found.

After much frustration, I noticed that my program is created as a Web Application, while the tutorial is created under a Web Site.  So I created a Web Site too and everything works. 

So the question is, what setting(s) do I have to change in a Web Application for this to work?  I guess an even broader question is, what differences between Web Application and Web Site do I need to be fully aware of, so this kind of problem do not occur in the future?

Thank you very much!

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


VS 2008 Web Application Project


Hi, I am working on a VS time clock project to be used for student's to clock in and out. When the student clocks in the time/date is saved to a temp table. Upon login out to the login screen for the next user to use I need to save the clocked in time to a permanate table. It is an update from the temp table to the permanate table. However, when the page redirects to the login page, I recieve the dbnull to date is invalid error. Now understand, when the page is redirecting to the login page for the next user, the only way I could figure out to get the browser to forget the sessionstate, was to use a delete statement that removes the data from the perm table, but before it erases it, I need to save it to the permanate database table.


Anyone have a solution they can send my way??


Thanks :) 

Site File Structure, Folders, Learning project, subweb, web.config

I am just learning asp.net.  I purchased an "ASP.Net 3.5 web programming in C#" book, which I like allot.  I am on chapter 3 and want to complete a shopping cart exercise from the book.  I have to create several folders and files.  The exercise has the files and under the root directory and a few folders below that.  I already have a site that I've been learning on.  Can I create a subfolder on my site and put all the files in there?  Like the subfolder is the root of the project.   Here is list of Folders and files... Code/CartItem.cs Code/Product.cs Data/Cars.mdb Images/car.jpg Cart.aspx Order.aspx Web.config ................................ On my website I want to create a subfolder to keep alll the files in, as so... ShoppingCart/Code/CartItem.cs ShoppingCart/Code/Product.cs ShoppingCart/Data/Cars.mdb ShoppingCart/Images/car.jpg ShoppingCart/Cart.aspx ShoppingCart/Order.aspx ShoppingCart/Web.config ................................ Can I have two web.cong files?, one in the subfolder?  Or do I have to use the single, web.config file in the root directory of the site?  Are there any other pitfalls or trouble I might get into setting up my file structure like this?  Anything I should be aware of? Any thoughts or advice would be appreciated. Thanks, Mike   

calling a web service on a remote server from a ASPX page (web site project VS2005)

HI,I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder.  When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for  the new web service i'm trying to call. Have I missed any steps?Thanks in advance.-me

Can I deploy a custom site page from the VS2010 SharePoint project?

Hi We're setting up some demos of our sharepoint plugins and want to easily deploy these into sharepoint so that all members of the company can easily get the demos running on their own machines. This is fine for layouts, web parts and so on - but the demo also has a customised sharepoint home page (which I edited in SP Designer) - how do I make this edited home page part of the VS2010 project so that it can be deployed easily to any site collection?   Thanks  

Can I add an entire folder to my Web Application Project?

Hi gang, I have been developing my first ASP.Net 2.0 website using the Web Application Project model. I ran into a funny problem and I wanted to bounce it off you guys. I started working with a component called FCKeditor that is an HTML javascript editor. In addition to a .DLL file, you have to add an entire folder of stuff including javascript, CSS, and images. I tried copying the folder as a subfolder under the project root and then tried Add / Existing Item to add the folder to my project, but you can't add folders, only individual files. Am I missing something? Is there a way to add an entire folder of content to my Web Application Project? Thanks,Kevin

Problem create a web application on SharePoint 2007 (Project Server 2007)

I installed a Project Server 2007 in a 3 server structure (all Win 2003 sp2; one for App server hosting Central Admin, Project Server service & Search service; one for web server; one for database server).  They are only in the same domain and I use the same network account for the installation as well as the WSS service account.  The same network are local admin for those 3 servers. All installation & patches seem ok (at least I don't get error messages) until I attempt to create my first Web Application.  After I filled out the web appliction and try to click OK, the page does not change and i saw the java error at the right bottom corner from my IE browser (version 6). The message is .... Line: 1686 Char: 1 Error: 'WebForm_PostBackOptions' is undefined Code: 0 URL: http://myservername:28804/_admin/extendvs.aspx On my SP log, below are the portion of the log when the error happen. 09/09/2010 12:28:29  1  INF        Entering function UserInterface.ShowCentralAdmin 09/09/2010 12:28:29  1  INF          The show central admin command has been chosen 09/09/2010 12:28:29  1  INF          Searching for registry key Software\Microsoft\Shared Tools\Web Server Extensions\12.0\WSS\CentralAdministrati

Can't add ASPNETDB.MDF to ASP.NET 4 Web Site project [SQL Server 2008 R2 Express]

I'm using SQL Server 2008 R2 Express and try to add ASPNETDB.mdf database to my web site project. However, the following message appears: "Connections to SQL Server database files (.mdf) require SQL Server 2005 Express or SQL Server 2008 Express to be installed and running on the local computer. The current version of SQL Server Express can be downloaded at the following URL: http://go.microsoft.com/fwlink/?LinkId=125883". In spite of this message, however, database appears in App_Data folder. What is wrong?

How to add Sharepoint dll reference to Windows Forms application project in Visual Studio 2010?

Hi,I am using Windows Forms application template in Visual Studio 2010 Beta. I created this for some R & D work. Now I am using Sharepoint object model in application. When I am trying to add Sharepoint dll reference from .NET tab, I can not see Windows Sharepoint Services there Which was available in Visual Studio 2005.Also If I am add this sharepoint dll from ISAPI folder (14 Hive), it is added succesfully, but it is not taking actually in project and showing me an error during running mode that theError 12 The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Please suggest me how to add Sharepoint dll reference in Windows forms application in Visual Studio 2010?

Web application project type not found



I have VS 2005 installed on my system. The details are as follows -

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Enterprise

My Problem is -

1. I can not see Web application project template when creating new project.

2. When I open a project, it gives error as "Project file can not be loaded".

I searched forums and it says

Run VS80-KB915364-X86-ENU.exe first, then

run WebApplicationProjectSetup.msi.

3. Can anyone tell me what this installation does?




SharePoint / Project Server 2010 Unable to edit a HTTPS site in SharePoint designer 32 bit



I posted this thread below under a different forum and was requested to move.  Below is our current problem and the feedback that was given.

We currently have a project server 2010 site with several workspaces associated with it.  When trying to edit the site (either from choosing edit is designer from the site actions or from trying to open from within the designer) a dialog appears asking to choose a certificate for the site.domain.com.

The certificate issued by the site is a GeoTrust certificate and checks ok when browsing the site in IE.  This Windows security dialog also appears when trying to export to excel on the same site.

Any thoughts to what we are missing?




Dear Partner,


Thank you for posting in our Partner Online Technical Community.



How to implement Microsoft Ajax Minifier to ASP.Net web site project


there is a tutorial about ASP.Net Application but i am using ASP.Net Web Site


so i don't have unload edit name feature like stated here




i need help thank you 

How to Move Controllers/Models into a New Project/Assembly in MVC 2?


I have to admit first, that for the last few years, I've been mostly an MVP guy versus MVC. However, how I used to implement MVP is very similar to how MVC 2 is now implemented. I only have one issue with it...

When I used to create MVP apps, I could put all my logic (presenters, models) into separate assemblies/projects in the solution and my views into the main web app. This allows me to change the UI (i.e. the web based UI) to something else like a smart client or Silverlight or whatever and still have everything just work. With MVC 2, everything is all in the same project: controllers, views, models. Areas looked like a good start, but ultimately, not what I was looking for.

So, here's my question... How do I move the controllers and models out of the web project and into their own projects and still have everything work? A good, simple example would be the default MVC 2 web application template. When you open a new (non-empty) MVC web application, it creates a basic site for you. From there, how could I move the controllers and models in separate projects and still have everything just work? I can't seem to find anything on this anywhere else which has brought me here seeking help.



How to use Login Control in already created Web Site Project ?



actually i have already created my web site project.Now i want to use login control in my project.So can you please guide me how i can use it in my existing project? 

automate site creation in sharepoint using ms project 2010



is it possible i can automate site creation in SharePoint using Project 2010 without creating a custom addin in Project 2010 ? e.g can i use the sync button to do this ?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend