.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


Similar Messages:

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

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# - Is Possible To Run Some Unit Tests As Smoke Tests

Oct 21, 2010

In my project we use UnitTests (MsTest). We run them manually and in the build script.But for some environments where we deploy manually.We are in the need of having some smoke tests. At the moment I made this smoke tests "manually" (Login, create an user, create a licence, create a product, etc). I know I can run unit tests from command line or from visual studio but...Do you know if is possible to run these mstests (or probably a small subset) from an .aspx page and show the results?EDITED: wondering if mstests or something is able to run the tests and have something visual to show in an .aspx page similar to a list of tests passed and tests failed...I am thinking on running only a small subset of tests (5-6)

View 1 Replies

WCF / ASMX :: Call A Web Service Which Is Hosted In .net Framework?

Oct 11, 2010

I am trying to call a web service which is hosted in .net framework.

Here is my piece of code:

<%
function ValidateUser()
set objSoapClient = server.CreateObject("MSSOAP.SoapClient30")
objSoapClient.ClientProperty("ServerHTTPRequest") = True
Call objSoapClient.mssoapinit("http://10.13.222.240:81/megaservice/UserWS.asmx?WSDL","UserWS")
ValidateUser=objSoapClient.IsUser(2)
End function
%>

And i call the function as

<%
=CalculateDiscount
%>

It is giving error as

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/asp/index.asp, line 12
800401f3

i am working on .net and new on asp.I haven't worked on asp and it was pretty easy to call through visual studio in .net but can't do the same for asp

View 3 Replies

Configuration :: Running Framework 2.0 Application Within Framework 4.0 Website

May 18, 2010

I host a website that has recently been upgraded from .NET Framework 2.0 to .NET Framework 4.0. Within the website, I have an instance of BlogEngine which still requires .NET Framework 2.0. Each website is in it's own application pool. My issue is that when I browse to the blog portion of my website, I receive a 500.19 error with the following information...

The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration The web.conf file that is listed in the error message is the config file that belongs to my root website which is running .NET Framework 4.0. How do I get the two websites to run together in the same website using different versions of the .NET Framework?

View 2 Replies

C# - Add User Page To Hosted Website?

Oct 1, 2010

I have a website that my company hosted using hubspot.. now the guy who made it is gone..

Currently all the code is in the front end which i think was made by using the CMS tool of hubspot.

What i need to do is add another page to this website which has my code and also has a backend code in it.

how do i proceed.. i am currently working with asp.net and C#...

which language i should chose to do the backend coding.. the code i plan to write is not that complex.. i just need to get a value for the user using a textbox, multiply with a number and display/email it back.

View 1 Replies

.net - Protect Self-hosted Website / System?

Sep 2, 2010

I am currently creating a .NET based (website/system) solution for small IT companies and I am offering it in a self-hosted package, which means my clients are going to mainly install it on their own servers. How do I make sure my system is not being run except on one server per client and no body is illegally-copying it to other servers/machines?

View 2 Replies

How To Authorize Users On An WCF Service Hosted In A Website

Jan 29, 2010

I have a WCF service that runs in my web application that provides data to a Silverlight application and is defined as follows (with an appropriate .svc file)....

[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class DispatchService [code]...

The idea is that the user logs into the website and is then authorised for all services. I do not want to have a login aspect to my Silverlight application to authenticate users.Therefore I dont want anyone to be able to call my service who is not authenticated.

Could I...Somehow determine this for each Operation Contract. I had a look inside the OperationContext object but couldnt find anthing that stood out as a way to determine who the user was.Somehow attribute the ServiceContract so that the method can only be used by authorised users?Put something in my web.config to stop unathorised users from being able to access the folder containing the services?

View 1 Replies

Configuration :: Code Is Not Working In Hosted Website?

Mar 9, 2011

i have created a website with a template (CSS Full Site Flash 8) using VS 2010

and after i did host the site to the internet, ASP code didn't work

but HTML code works fine, for example this code for desplaying picture didn't work and the picture is not displaying:

<asp:Image ID="Image1" runat="server" ImageUrl="~/images/photo1.jpg" />

i don't know if it is from the web.config or if i missed something also i notes that the site in is not working in firefox browser (HTML code will appear instead of design) but in internet explorer the design works fine but without the asp controls

View 4 Replies

Configuration :: Encrypting ConnectionStrings On A Hosted Website?

Feb 23, 2011

I have been reading up on encrypting the connectionStrings section of the web.config file and I have noticed that all of the methods embed the cypher key in either the registry or the machine.config file. My site is currently being hosted for me by a hosting company and as such I do not have direct access to the registry (or aspnet_regiis for that matter). I was wondering what options are available to me if I cannot use the usual aspnet_regiis method or am I misreading the posts?

View 4 Replies

IIS Configuration :: JQuery Not Working When Website Hosted In 5.1

Aug 20, 2013

Asp.net Javascript Countdown clock timer for each row of gridview( [URL] ).Its working fine forme.

After placing iis 5.1. its not working. let me know what is the problem of this code.

View 1 Replies

IIS Configuration :: Website Slows Down When Hosted On Server

Jul 8, 2013

My asp.net site has very good performance on local ips on all the systems. But it 5 time slow down on live ip.

1. What could be the issue:

Server is not capable? I have checked the ping and it response time is 153 ms for each require on live ip but on local ip it gives < 1 ms response time.

2. I have not compile the solution just copy and paste on the iis and create virtual directory?

View 1 Replies

Security :: Share Certificate Between Website And Self-hosted Wcf Service

Feb 12, 2010

If I buy a CA certificate for the one site on the webserver, can I use the same certificate on a self-hosted wcf service.

The wcf service will use wsHttpBinding with username/password authentication.

View 2 Replies

External Connector Licensing With Website Hosted On Windows?

Jun 18, 2010

I we have created a website that requires users to login. It used forms based authentication and sql server to validation the login credentials.

Should we need to purchase an external connector license from microsoft to be able to host this site on a windows .net platform.

Edit: More information about external connectors. In microsoft licensing world there are cals for users connecting to the windows server software, external connectors are unlimited cal licenses.

View 2 Replies

Use SharePoint To Authenticate Users On Separately Hosted Website?

Oct 27, 2010

The behaviour I would like is for a user to be able to visit a custom built website and if they are already authenticated against sharepoint for the custom website to know who they are and give them various rights. If they are not recognised by sharepoint then I would like them to login to sharepoint and be directed back to the custom website. Sharepoint picks its users and groups up from Active Directory. I don't know much about the internals of the server, but the custom one will be in a separate domain (I think) though I have full control over the custom and moderate control over the SP infrastructure.

View 1 Replies

Configuration :: Website Rendered Differently On IE Only When Hosted On Server?

Oct 19, 2010

I have a strange problem that I am trying to find a solution to or even only know why does this happen. I built a website using ASP.NET, when I run the website locally it looks very normal (I am speaking Style and CSS wise) on all the browsers (including IE8). And when I deploy this website to the test server which has Windows Server 2003 and IIS 6, the applications looks normal too on all the browsers except IE8. I did not try other versions of IE but I have a requirement to have this website working on IE8. Some tweaking on the CSS solves some of the problems but I do not want to go through each and every tiny detail and rework my whole CSS. There are even some problem which cannot be resolved.I have no clue why is this happening. It should be something either with the OS or the application server because those are the only differences between my machine and the server. On my machine I have Windows 7 Enterprise and I was test the website on the ASP.NET development server.

View 3 Replies

How To Make Azure Hosted Website Using Domain Name As Its Base URL

Jan 28, 2015

I have a website hosted on Azure that is written on ASP.NET

I have registered a domain name and got that domain to redirect to my azure hosted website

How do I get the website to use my domain for its base of its URLs?

(For example how would I make the about page be [URL] ....)

View 4 Replies

Configuration :: How To Redirect Multiple Domain Name On One Website Hosted On IIS Server

Dec 24, 2010

how to redirect multiple domain name on the one website that is hosted on IIS server???

View 2 Replies

AJAX :: Control Toolkit Not Working When Website Hosted In IIS Server

May 7, 2015

I am using most of the Ajax Control, but when I deployed it in IIS. It is not working.

View 1 Replies

IIS Configuration :: Website Hosted Not Working Without Default ASPX Page

Oct 22, 2013

We recently changed our server.

If I write www.abc.com it is not working but if i write www.abc.com/default.aspx it start working.

When I write www.abc.com 

It is showing this page

Parallels

Parallels Plesk Panel

© 1999-2012. Parallels IP Holdings GmbH.All rights reserved.

View 1 Replies

Security :: Password Prompt For ASP Website Hosted On Intranet Using Windows Authentication

Jul 8, 2010

We have developed a website in asp.net using windows authentication and deployed it on the intranet (IIS v6.0). Most of the times, when users try to access this website they are taken straight to the website, but occasionally some users get a prompt to enter their windows username and password. I understand that this could be caused because of several reasons like:

Cached active directory password. Recently active directory password changed. Active directory account locked out. I want to fix this issue for good because it is annoying the users.

View 1 Replies

IIS Configuration :: JScript Serialize Returns Null When Website Hosted On Server?

Feb 25, 2016

when application runs on local machine, it returns data correct, but when website hosted on server then it cannot retunrs data in jscript serialize

C#
JavaScriptSerializer jscript = new JavaScriptSerializer();
List<ListItem> items= new List<ListItem>();
return jscript.Serialize(items);
Javascript
var jsdata = JSON.parse(items);

View 1 Replies

Secure IIS Hosted WCF Service For Access Via IE Hosted WinForms User Control

Feb 2, 2011

I have an ASP.Net site using Forms authentication. One of the aspx pages loads a WinForms user control hosted in IE. That control must connect with a WCF service located in the same ASP.Net web site.How can I make the WCF service secure? Currently I have set the WCF service to use AspNetCompatibilityRequirements mode but the user control hosted in IE can't connect to the WCF service as it isn't logged in.

View 1 Replies

Configuration :: Is A Content Delivery Network Worthwhile For A UK Hosted Website With Predominantly UK Based Traffic

Mar 15, 2011

Is it worth while considering a CDN for a UK hosted site with mostly UK traffic.

The server is in London, so I am not sure if it would be worth it as I guess any CDN server is just going to be in London as well?

Am I right in thinking that CDN is really only applicable for US websites (due to the geographical size of the country) and global sites?

View 1 Replies







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