cassini

Is it possible to run classic asp on Cassini Webserver?

只愿长相守 提交于 2019-12-10 13:14:05
问题 Is it possible to run classic asp on Cassini Webserver? I have a mixed website (classic asp and dotnet)... 回答1: No, you can't. Cassini only renders ASP.net pages. 回答2: Have you considered IIS Express? It's similar to Sql Server Express user instances in that it can be run and used without requiring administrative privileges or changes to your code to cater for it. It's a "user mode" version of IIS, and thus fully supports Classic ASP which would help with your scenario. It's not integrated

Membership.ValidateUser always return false on IIS

两盒软妹~` 提交于 2019-12-10 03:41:39
问题 Membership.ValidateUser methods works on development server both(iis express and cassini). But on my IIS (its publishing as an application on my development machine) It always return false . Even user is approved,not locked and username and password are correct. There is no trace error. ? http request 1: davutg-pc: 6423 /BpmService/Login?userName=abc&password=0035 result 1: < boolean > true < /boolean > http request 2: davutg-pc/BPM/BpmService/Login?userName=abc&password=0035 result 2 : <

How do I not instantiate an instance of Cassini for each Area in my application?

一笑奈何 提交于 2019-12-08 05:54:11
问题 I've been implementing areas, but have found that it instantiates a development server for each area when it launches Cassini. Is this really necessary? MSDN is having me setup these areas as separate web apps, Why can't I put them into class libraries? 回答1: Yes, you can get them down to class libraries. You may want to look into what the guys at MVCContrib are doing. They are calling it portable areas which gives you the libraries that you were asking for. They use their own Embedded view

viewStateEncryptionMode=“Always” not encrypting

大城市里の小女人 提交于 2019-12-07 09:34:01
问题 Due to some security concerns i need to enable View State Encryption. I have viewstate & viewstateMAC turned off but i need to encrypt the "control state" string that is included in the __VIEWSTATE form parameter. Currently my web.config looks like: <pages enableViewState="false" enableViewStateMac="false"> When i set the following, in cassini, my viewstate is encrypted: <pages enableViewState="false" enableViewStateMac="false" viewStateEncryptionMode="Always"> When i make the same change on

Differences in behaviour between IIS and the ASP.Net Web Development Server?

给你一囗甜甜゛ 提交于 2019-12-07 07:01:40
问题 During development, I usually test ASP.Net applications using the Web Development Server (sometimes called Cassini). Occasionally, when I publish to a real IIS environment, I notice that the application behaves differently. So, what are the differences between the way that production IIS servers and the ASP.Net Web Development Server behave? I don't mean differences in feature sets (clearly IIS has lots of features that are not present in WDS), but differences in the way they handle ASP.Net.

Why would Application_Init fire twice when starting debugging in VS2008/Casini?

扶醉桌前 提交于 2019-12-06 04:44:36
问题 Why would Application_Init fire twice when starting debugging in VS2008/Casini? Yeah, It's happening in global.asax. Seems fairly random though, only happens once in a while. 回答1: I assume you're referring the the Global.asax file in an ASP.NET MVC application. Notice that your global.asax extends System.Web.HttpApplication eg: public class MvcApplication : System.Web.HttpApplication { public static void RegisterRoutes(RouteCollection routes) { // (snip) } protected void Application_Init() {

What reason would Visual Studio ASP.NET Development Server start returning HTTP 503 errors?

微笑、不失礼 提交于 2019-12-05 11:59:30
I've been putting together a website for a few weeks, most of the routine has just been creating new web forms with master pages. I've been using the ASP.NET Development Server to view my additions to the project as I've gone along, but today (seemingly out of nowhere) the server has been returning HTTP 503 errors. I tried restarting VS, then restarting workstation, then making sure that "bypass proxy for local addresses" was enabled on my workstation, but to no avail. Has anyone encountered this behavior before or does anyone have suggestions on logs I can review to investigate? Thanks in

How do you debug ASP.NET applications under IIS7 on Vista?

社会主义新天地 提交于 2019-12-05 01:38:16
问题 There is a post on IIS.net titled "Using Visual Studio 2008 with IIS 7.0", but I don't quite believe that's what people do. (Among other gems, it suggests publishing your web app after every change.) If you debug your ASP.NET applications in IIS7 instead of Cassini, I would love to hear your methods, tips, and tricks. Edit : I'm referring specifically to local debugging. 回答1: I simply attach Visual Studio to the IIS worker process, if you have multiple app pools then you can run "issapp" to

Why do VS2008 spawn one Cassini for each web-site/application when going into debug mode?

痞子三分冷 提交于 2019-12-04 03:44:07
问题 I have quite a big solution here with a lot of different web applications and sites, around 10-15 of them. When I attach VS2008 to any process (most likely Nunit.exe or something similar) I get one Cassini process per website/application in the solution. Is there a quick way to get rid of this behaviour in VS or do I have to connect them to the IIS? 回答1: I think what you want to do is set the "Always start when debugging" property to "false" for each of your website projects. Just click the

Cassini/WebServer.WebDev, NUnit and AppDomainUnloadedException

大城市里の小女人 提交于 2019-12-03 17:39:21
问题 I am using Cassini/WebServer.WebDev to run some automated tests of a WebService using NUnit. I am not doing anything fancy, just public class WebService{ Microsoft.VisualStudio.WebHost.Server _server; public void Start(){ _server = new Microsoft.VisualStudio.WebHost.Server(_port, "/", _physicalPath); } public void Dispose() { if (_server != null) { _server.Stop(); _server = null; } } } [TestFixture] public void TestFixture{ [Test] public void Test(){ using(WebService webService = new