xsp

Replace attachment when uploading a new attachment

倖福魔咒の 提交于 2019-12-11 18:58:16
问题 I have a simple form and body field. when user upload an attachment I want to remove any attachment already in the body field of the document. how can I do this in my save button. I have tried to set the properites on the fileUpload control to always change the filename to tha same name but this does not replace the file, instead it adds a new file and add a new sequential number to it <xp:fileUpload id="fileUpload1" value="#{userdoc.Body}" filename="profile" seUploadname="false"></xp

Invalid certificate received from server. Error code: 0xffffffff800b010a Mono

﹥>﹥吖頭↗ 提交于 2019-12-10 19:46:31
问题 I'm trying to send a message in Mono througth my application using the port 587 with the SSL, smtp.gmail.com and get: System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a The most interesting is that that week everything worked

Troubles using WebRequest in Mono

喜夏-厌秋 提交于 2019-12-10 12:28:05
问题 I have a really strange problem with WebRequest in a ServiceStack web application (hosted by XSP on Mono). It seems that the registration of request modules works in a very strange way; I am using WebRequest to create an HTTP request, and it is failing because it was not able to find a creator for that "prefix" (HTTP). The exception I am seeing is NotSupportedException , and I was able to track it to the fact that no creator is registered for the HTTP prefix (I am hitting https://github.com

Developing ASP.NET MVC using MonoDevelop on MAC

半城伤御伤魂 提交于 2019-12-08 04:34:08
问题 I am developing a web app using ASP.NET MVC 2.0 in MonoDevelop. I have latest Mono 2.10 and MonoDevelop 2.4.2 and I am running them on Mac. According to mono’s release notes, it should support ASP.NET MVC 2.0. However, I found MonoDevelop’s project templates still only support ASP.NET MVC 1.0. So I had to create MVC project from MonoDevelop and remove system.web.mvc 1.0.0.0 from reference and add system.web.mvc 2.0.0.0 back in. I can write and compile code OK and MonoDevelop does provide

Unable to run an asp.net 4.5 app on xsp on Mono 3

做~自己de王妃 提交于 2019-12-06 23:47:24
问题 I've build Mono 3.0.2 from source (tarball), and built XSP from both the latest tarball and the latest on Github, but I'm unable to run a relatively simple asp.net app using .net 4.5 because it sees 'targetFramework="4.5"' in the web.config as invalid. Building the app, and running a console .net 4.5 app works just fine. This is the web.config in question: <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/

XSP Configure fails due to mono module dependancy

坚强是说给别人听的谎言 提交于 2019-12-05 10:20:44
I have mono installed in my RHEL 5 machine which is visible as follows: which mono /usr/local/bin/mono mono -V Mono JIT compiler version 2.10.2 (tarball Wed Oct 16 10:33:49 CDT 2013) Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) When i try to run the configure script for xsp, it fails since it could not find mono. ./configure checking build system type... x86_64-unknown-linux-gnu

ASP.NET web server cannot be launched and Mono environment not be switched

ぐ巨炮叔叔 提交于 2019-12-01 15:59:21
问题 I am running one of the latest versions of Monodevelop on Linux Mint which used to work before I formatted my drive and made a fresh install. When I build my project it builds fine, but when I try to run it I get the following message: Could not launch ASP.NET web server. The xsp4 web server cannot be found. Please ensure that it is installed. I have xsp4 and xsp4-base packages installed. I found in a question and answer on askubuntu that I need to switch the Mono runtime to make it able to

using .asmx using lighttpd and mono fastcgi

倖福魔咒の 提交于 2019-12-01 12:41:55
问题 I have deployed a web service to a ubuntu server running lighttpd and fastcgi-mono-server2. The .asmx page loads correctly but when I test the method I get a 404. My web service is called Import.asmx and my method is called download and the 404 comes back saying import.asmx/download does not exist Using xsp2 the same service works perfectly I assume it is something to do with how the /download gets served by lighttpd/fastcgi but cannot work out how to fix it. 回答1: Solved the 404 error... but

Access to the path “/etc/mono/registry” is denied

偶尔善良 提交于 2019-11-30 05:39:32
When I run my ASP.NET MVC 4 website on my Fedora 20 workstation with xsp4 (from MonoDevelop or directly) I'm getting the following exception: System.Web.HttpRuntime.FinishWithException (wr={Mono.WebServer.XSPWorkerRequest}, e={System.Web.HttpException: ---> System.Web.HttpException: The pre-application start initialization method Start on type System.Web.WebPages.PreApplicationStartCode threw an exception with the following error message: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an

Can XSP run ASP.NET 4.5?

…衆ロ難τιáo~ 提交于 2019-11-29 10:53:17
I've been trying to launch MVC5 (depends on .NET 4.5) under Mono for days now and with no success. Configuration Clean install of latest Lubuntu No previous XSP/Mono Compile and install XSP/Mono from latest git sources Mono version: 3.2.7 Problem When I run xsp4 on any folder it shows Version Information: 3.2.7 (master/1eef047 C nov 28 18:16:30 EET 2013); ASP.NET Version: 4.0.30319.17020 . Latest Mono version supports .NET 4.5, does XSP? If so, how can I make sure that it is using 4.5 instead of 4.0? Even if I run XSP directly from Mono 4.5 folder ( /usr/lib/mono/4.5/xsp4.exe ) it shows ASP