Mono Alternative For IIRF Isapi Rewrite Filter?
Mar 28, 2011I'm moving some ASP.NET projects from IIS to Cherokee/nginx and I need a solution for url rewriting. I'm using IIRF (great project) but this works only on IIS.
View 2 RepliesI'm moving some ASP.NET projects from IIS to Cherokee/nginx and I need a solution for url rewriting. I'm using IIRF (great project) but this works only on IIS.
View 2 RepliesI have the following url which i want to write a helicon RewriteRule rule
it should check the pattern startat=/mypage.asp and then only executeOriginal urlhttp://www.test.com/welcome.asp?tartat=/mypage.asp&value1=23&value2=3434&value3=1&value4=someothervaluethe new url http://www.test.com/mynewpage.hcx?startat=/mypage.asp&value1=23&value2=3434&value3=1&value4=someothervalue
What is ISAPI or ISAPI extension or filters? The more I read the more I am confused.
View 5 RepliesI need good css for Gridview just like the mac css
can we provide the filter functionality to gridview like the excel filter.
In securing actions/controllers, do I have to create a custom filter or use MVC built-in filter?
To use the built-in attribute Authorize() on an action/controller or create a separate class that inherits the ActionFilterAttribute which has a method (OnActionExecuting) to override and do the authentication there?
In my organization we use nested groups. For a particular usage, we have a group (let's assume that the group name "kuku"), and the names of all the nested groups under it contains "kuku" as well.
We may assume that no other group in the LDAP has "kuku" in the name.
I need to create a filter which will return all the users which belong to one of the "kuku"s group.
Obviously, using this filter will bring only the head kukus
(&(&(objectclass=user)(objectclass=person))(memberOf=CN=kuku,cn=...rest of the group DN...))
How can I use wild card to fetch all users which belong to any kuku?
For example: (&(&(objectclass=user)(objectclass=person))(memberOf=CN=.*kuku.*))
I have decorated my base controller with a couple of action filters. They work fine.
One of those filters sets up the request - does things like set the culture based on the domain, etc.
I also have a handful of actions that require authorization using the Authorize attribute.
My problem is that when an user attempts to request a page they are not authorized to access, the authorization filter kicks in and redirects them to a page telling them that they cannot vie the page.
The issue is that the action filters never run so the culture and other request data is never set. This effectively causes language to be wrong in the view and other data to be missing.
I know that authorization filters run first but my question is this: How can I design this such that I can ensure that certain methods are always run before the view is returned, regardless of the authorization.
I understand I can use either the CodeDOM or Mono for compiling and executing C# code on the fly. Which of these are suggested given the security concerns of executing code and flexibility? EDIT: I need to create an editor in which any user can enter code and choose to execute it. My concern is that if they have malicious code (accessing the file system for example) then I need to take precautions to prevent this from happening. How would I do this using CodeDOM or Mono?
View 2 Replies am compiling the asp.net web application page by page using "gmcs" command in Mono.ut i want to compile the whole asp.net website at once using Mono command.
gmcs /t:library /out:bin/AJAX.dll -r:System.dll -r:System.Web.dll -r:bin/AjaxControlToolkit.dll Default.aspx.cs Default.aspx.designer.cs I do not want to do like the above one, instead i want to compile the whole folder containing files at once.
I'm looking for a CMS running under Mono framework: this is needed to have it deployed on Linux-based (Ubuntu/Debian) machines.
told me about OrchardCMS, but it seems it's not compatible yet.They also told me about Umbarco, but I haven't found any information on compatibility.
I am not sure if XSP2 is using mono or .NET in my Windows box.How can I be sure?
View 3 RepliesI have an ASP.NET application which I'd like to try running on Mono, just as an experiment. When I bring the application as it is to Mac, start xsp2 on the directory, it runs as I would imagine it should. That is, it crashes on because of the file system path differences ( vs / in directories).
This is where I would like to open it in MonoDevelop and fix the problems. But since it was website, it doesn't have .csproj file. And it seems that there's no .sln file either, since Visual Studio stores those to some random directory by default. In Visual Studio you could open the project with Open -> Web site... -> Local IIS etc., but I see no such thing in Mono.Is there a way to open a directory as a web site or somehow generate the .csproj file?
does a action filter override a controller filter?
View 2 Repliesi have mapped *.xyz extension to my own custom handler in asp.net and can run it on Windows asp.net.
How can I do the same thing on mono (Linux/Apache - ubuntu)?
I have this in my web.config:
<httpHandlers><add path="*.xyz" verb="*" type="MyCustomHandler,...">...
I also added similar things to mod_mono.conf and several other files but still I get http 404 The resource cannot be found.
Apparently Mono replaces references to SQL Server membership provider with sqlite membership provider (see ASP.NET_Settings_Mapping). Is there any way to convince Mono to use SQL Server for the membership provider?
When I try to log in to my web app, I get the following:
System.Configuration.Provider.ProviderException: Operation aborted due to an exception (see Trace for details).
at System.Web.Security.SqliteMembershipProvider.ValidateUser (string,string) <0x003bb>
at DirectMail.Controllers.AccountMembershipService.ValidateUser (string,string) [0x00000] in [file].cs:404
at DirectMail.Controllers.AccountController.ValidateLogOn (string,string) [0x00040] in [file].cs:346
at DirectMail.Controllers.AccountController.LogOn (string,string,bool,string) [0x00000] in [file].cs:79
at (wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,System.Web.Mvc.ControllerBase,object[]) <0x001c1>
at System.Web.Mvc.ActionMethodDispatcher.Execute (System.Web.Mvc.ControllerBase,object[]) <0x00028>
at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2<string, object>) <0x0015b>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,System.Collections.Generic.IDictionary`2<string, object>) <0x00036>
at System.Web.Mvc.ControllerActionInvoker/<InvokeActionMethodWithFilters>c__AnonStoreyB.<>m__E () <0x00092>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1<System.Web.Mvc.ActionExecutedContext>) <0x00125>
The top of the file /usr/local/etc/mono/4.0/settings.map on one Debian Linux machine is:
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">.......
I have made a very simple Asp.net web site with a WCF service - "Person.svc" - that runs fine when hosted on Asp.Net development server(visual web developer 2010), but if I host on Mono's XSP 2 and access some parse error is thrown. Can WCF services live inside a XSP Web site?
View 2 RepliesI'm trying to run any application on XSP4 web server using new Mono 2.10 (downloaded from windows installer bundle). I have already tried to run simple ASP.NET MVC2 project and ASP.NET. Both were simple applications stubs. In all cases in browser under localhost:XXXX it seems that page is loading but nothing happens. With Mono 2.8 it works without any problems. Any suggestions how I can debug or solve this problem?PS. My windows firewall is turned off so it shouldn't be problem.
View 1 RepliesI tried searching a bit and didn't find an answer. Does the Razor View Engine work in Mono?
View 3 RepliesI want to use sqlite database in my asp.net project. I prefer linq, but I don't know which linq provider is compatible with mono platform?
View 1 RepliesWhen I make changes to a file, Mono ASP.NET doesn't see my changes, I have to do this:
sudo /etc/init.d/apache2 restart
I remember when Mono ASP.NET executes ASP.NET it caches the compilation somewhere. Before, when the updated page doesn't come up, I just delete that cached compiled code. I just forgot the exact path
How to make Mono ASP.NET detects the changes I made in program, without restarting the web server?
Previously, I've only used Microsoft-centric solutions, but for an upcoming ASP.Net project I'm considering using Mono and hosting it on a Linux Amazon EC2 instance. Based on the responses to my previous question, this sounds doable. However, I'm most comfortable with VB.Net and I'm wondering how well Mono supports it.
Does anyone have first-hand experience writing ASP.Net applications for Mono using VB.Net? If so, I'd like to know how it went, what kind of compatibility issues you ran into, and if you consider Mono's VB.Net support ready for use on a production site? I know Mono's C#.Net support is very good, so that's my fall-back plan, but I'd really prefer to use VB.Net.
I already have ASP.NET hosting, but I'm not sure how to run my application off Neo4j, since it requires a Java stack.
It seems my only options are:
Get separate Java/Linux hosting, and install Neo4J there, utilizing it as a database server. Get Neo4J-as-a-service, (akin to what MongoHQ does for MongoDB users) but I haven't had any luck finding providers. Move my whole application to Mono and then put it all on Java/Linux hosting and install Neo4j.
Need to execute .aspx page & .vb code from PHP server.
Therefore i have downloaded MONO for windows from link: [URL] .... And installed as per the guidelines provided on website: [URL] .... Now, how should i use it on PHP Server .....?
I have developed a Crystal Reports enabled website in asp.net. Now client requirement is that this project should work on Mono also. I have found that crystal reports are not compatible with Mono.?
View 2 RepliesWe had some content restructure recently and I'd like to put in some redirect rules into web.config so bookmarks to the old pages can get routed to their new locations/pages.I tried using this approach:
<location path="~/product/productA.aspx">
<system.webServer>
<httpRedirect enabled="true" destination="~/product/category/productA.aspx" exactDestination="false" childOnly="true" httpResponseStatus="Permanent" />
</system.webServer>
</location>
But all I'm getting when I go to "[URL] is our http 404 page.Am I doing something wrong, or is the httpRedirect tag in web.config not supported in mono?