C# - Host A WCF Service Using Mono's XSP Web Server?

Jun 28, 2010

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 Replies


Similar Messages:

IIS Configuration :: Use MONO PHP Server To Host Websites

May 7, 2015

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 .....?

View 1 Replies

Configuration :: How To Host Wcf Service In Hosting Server

Sep 1, 2010

I have a domain(www.fortunebells.com) in hosting server zetnetindia.I have created wcf service and added service reference in my project.I want to host the service reference in the domain. how can i do this?

View 1 Replies

HttpHandler To Handle All Kinds Of URL's In Mono Apache/XSP In Order To Build A REST Service?

Apr 2, 2010

I want to develop my own REST service, so I've created an IHttpHandler that is configured with verb="*" and path="*", the the application in ~/MyRESTsrv/ will handle any derived URL.

This approach works good in IIS7 with "integrated mode" and apparently in IIS6 if you map all the extensions to "aspnet_isapi.dll".

Is this possible in Apache/XSP with Mono? Do I have to do something special or it will work out of the box?

View 1 Replies

.net - The XSP2 Web Server Always Uses Mono?

May 21, 2010

I am not sure if XSP2 is using mono or .NET in my Windows box.How can I be sure?

View 3 Replies

Mono With SQL Server Membership Provider?

Oct 2, 2010

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">.......

View 2 Replies

How To Refresh Mono Page Without Restarting The Web Server

Apr 13, 2010

When 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?

View 2 Replies

MVC :: How To Host WebHttp WCF Service In 3

Mar 14, 2011

i get HTTP 404 not found error when trying to access WCF service hosted in MVC3. the same service accept calls if i host it in ASP.NET web site i posted question in WCF forum but didnt get any help: [URL]

View 2 Replies

WCF / ASMX :: How To Create And Host A WCF Service

Dec 15, 2010

Is there any way i can create and host a WCF service, and my client apps just send username and passwords to the service to suthenticate them selves, without using Certificates, on client and Server side???

IF NOT:

Then is there any way i can do the above, but just using certificates on server side, i dont want all of my client apps' machines installing the certificate?

View 2 Replies

WCF / ASMX :: How To Host A Web Service Locally In Iis

Jul 12, 2010

This my scenerio

1. I have created a web service

2. I need to host it in IIS locally for testing purpose.

3. Can we set port locally or automatically port '80' is assigned.

View 1 Replies

Host .net In Free Hosting Service?

Jan 11, 2011

I am tired of the flase advertise, Only recommand on free host servers that you are using, If you can please also post you site url,I need to host my facebook Ifame application, because I didn't succeed to work in development mode (E.g working against the localhost don't render FB tags)If you used cheap server also recommandion and link we be acceptable

View 3 Replies

C# - Host A Wcf Service Library In A Web Application?

Aug 11, 2010

I would like to host a Wcf Service, create in a Wcf service Library, in a Web Application.

I've already done the same thing with Web Service asmx :

using System.Reflection;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace WebServiceLibrary
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService1 : WebService, IHttpHandlerFactory
{
private static WebServiceHandlerFactory wshf = new WebServiceHandlerFactory();
private static MethodInfo coreGetHandlerMethod = typeof(WebServiceHandlerFactory).GetMethod("CoreGetHandler", BindingFlags.Instance | BindingFlags.NonPublic);

[Code]....

View 2 Replies

Configure Apache To Host Both A Web Service And A PHP Website

Jan 5, 2011

I am developing an ASP.NET Web Service and a PHP Web site consuming the Web Service. They are meant to be run on different machines. However, only for development purposes, I need to run both on my machine. I cannot use virtual machines.

I would like to know if it is possible to configure IIS Apache to host both my Web Service and my Web site? Or, do I need to host the PHP site using Apache?

I am using

IIS 7.5 Apache HTTP Server 2.2 (NOTE: I have nothing against Apache. In fact, so far I like it more than IIS, however, I would rather not have two Web server applications installed in the same machine.)m PHP 5.3.4
.NET Framework 2.0 3.0 or 3.5 (whichever comes with Visual Studio 2008)mod_aspdotnet for Apache 2.2

View 4 Replies

WCF Rest Web Service Working On Localhost But Not On Host?

Mar 29, 2011

I made a simple WCF web-service inside an ASP.net website.

The web-service is hosted by IIS and works fine on localhost, ie when accessing for exemple to
[URL] I get the correct "Hello World" response as expected.

But accessing to it by my computer hostname [URL] gets me an error 404 response. This is particularly confusing as the remaining of the site (mainly aspx pages) is accessible without any problem from both ways.

[code]....

View 2 Replies

WCF / ASMX :: Service Host And Https Cannot Find Any Metadata?

Aug 18, 2010

I created a WCF Service Library and there're 2 services (http endpoint and https endpoint) in the App.cofig file. The WCF Service Host had not problem to host the http endpoint but failed to host the https endpoint with these messages:

WCF Service Host cannot find any metadata. Additional Info: The service cannot be started. This service has no endpoint defined. Please add at least one endpoint for the service in config file and try again.

What's wrong with the configuration?

Excerpt of App.config file:
...
<behaviors>
<serviceBehaviors>
<behavior name="WcfSecurityService.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="mex" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WcfSecurityService.MyValidator, WcfSecurityService"/>
</serviceCredentials>
</behavior>
<behavior name="WcfSecurityService.SecuredServiceBehavior">
<serviceMetadata httpsGetEnabled="true" httpsGetUrl="securedmex" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WcfSecurityService.MyValidator, WcfSecurityService"/>
<serviceCertificate
findValue="CN=MyRSARootCA_LocalHost" storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectDistinguishedName" />
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WcfSecurityService.TransportMsgBinding">
<!-- UsernameToken over Transport Security -->
<security mode="TransportWithMessageCredential">
<message clientCredentialType="UserName"/>
</security>
</binding>
<binding name="WcfSecurityService.UnsecuredBinding">
<security mode="None"></security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<!--
<service name="WcfSecurityService.Service"
behaviorConfiguration="WcfSecurityService.ServiceBehavior">
<host>
<baseAddresses>-->
<!--<add baseAddress="http://localhost/WcfSecurityService/" />-->
<!-- SvcUtil.exe need Cassini Server (not IIS)-->
<!--<add baseAddress="http://localhost:8002/WcfSecurityService/" />
</baseAddresses>
</host>
<endpoint address=""
binding="wsHttpBinding"
contract="WcfSecurityService.IService"
bindingConfiguration="WcfSecurityService.UnsecuredBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>-->
<service name="WcfSecurityService.SecuredService"
behaviorConfiguration="WcfSecurityService.SecuredServiceBehavior">
<host>
<baseAddresses>
<!--<add baseAddress="https://localhost/WcfSecurityService/" />-->
<!-- SvcUtil.exe need Cassini Server (not IIS)-->
<add baseAddress="https://localhost:8003/WcfSecurityService/" />
</baseAddresses>
</host>
<endpoint address="https://localhost:8003/WcfSecurityService/"
binding="wsHttpBinding"
contract="WcfSecurityService.IService"
bindingConfiguration="WcfSecurityService.TransportMsgBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="securedmex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
...

SSL Certificate bindings:
-------------------------
IP:port : 0.0.0.0:8003
Certificate Hash : d321b6f1d2c4085f36ebbd51e72a3dc3e2332589
Application ID : {4dc3e181-e14b-4a21-b022-59fc669b0914}
Certificate Store Name : MY
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check : Enabled
Revocation Freshness Time : 0
URL Retrieval Timeout : 0
Ctl Identifier : (null)
Ctl Store Name : (null)
DS Mapper Usage : Disabled
Negotiate Client Certificate : Enabled

View 1 Replies

Mono - Is It Possible To Modify No Longer Required Runat="server"

May 5, 2010

I know why runat="server" is currently required (ASP.NET why runat="server"), but the consensus is that it should not be required if you incorporate a simple default into the design (I agree of course).

Would it be possible to modify, extend, decompile and recreate, intercept or otherwise change the behavior of how ASP.NET parses ASPX and ASCX files so that runat="server" would no longer be required? For instance, I assume that a version of Mono could be branched to accomplish this goal.

In case specific requirements are helpful, the following highlights one design:

During parsing, when configured namespace tags are encountered (such as "asp"), default the element's runat property to "server" During parsing, when configured namespace tags are encountered (such as "asp"), if the element's runat property value is available, then that value should be used in place of the default
New page-level setting introduced (can be set in the page directive or web.config) that specifies the default runat value for a specific namespace tag

View 2 Replies

How To Host Site With ASPNETDB.MDF Database From Development Server To Production Server ?

Jan 21, 2011

I have created my site using ASP.NET Personal Starter Kits 3.5. I use Visual Studio 2008 only . .with its built-in SQL Server (2005 Express) ... my database in App_Data is ASPNETDB.MDF ...

I have created some of my tables also ....in ASPNETDB ..

In my local PC the site was running fine ...

But when I publish my site on production server it doesn't work and shows the following error

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


My hosting provider connection string ..

<add name="ConnectionString" connectionString="Data Source=69.16.253.19;Initial Catalog=usa_data;Persist Security Info=True;User Id=user;Password=pass" providerName="System.Data.SqlClient"/>


My hosting provider gave me the connection string to connect to the SQL Server 2005 but it doesn't work...

I don't understand why my site was running fine using the production SQL Server 2005 in my local PC when I include ASPNETDB.MDF file in App_Data in my local pc only ..if I remove file ASPNETDB.MDF from App_Data of my local pc ... the site stops working ...

Can anybody tell em how to fix this ... !! I am very tensed since last 3-4 days

View 1 Replies

DataSource Controls :: How To Execute 50MB SQL File (Micrsoft SQL Server) On Database Server Host

Jun 17, 2010

I have created database .sql file for create schema with export database. (its .sql file size is 48.2 MB)

View 1 Replies

Most Efficient Way To Update A MySQL Database On A Linux Host With That Of .Net Form On Windows Host?

Mar 17, 2010

My kind webhost (1and1) royally asked me to go elsewhere to do something like this.

I have 2 sites. One of them was developed by a .Net programmer. Now I am contracted to implement a PHP site and fetch data from the .Net site.

There is an ASP.Net form that a customer fills and when they hit submit, the data gets stored in SQL Server DB. How do I also store the same data in MySQL parallelly? I cannot directly use some database connectors with ASP.Net since MySQL connectivity is not supported on 1and1 Windows hosting (biz account, no less!).

What I thought of is to publish an RSS feed of entries in ASP.Net site and routinely scrape that data into MySQL on Linux host. It is an overkill, I know. Not efficient.

View 1 Replies

MVC :: HttpContext.Current.Request.Url.Host Not Correct When Using Host Headers In IIS 7.5

Feb 24, 2011

I have one IIS entry with AppPool integrated mode. There are 5 or more host headers assigned. The application pulls data based on the host name from Request.Url.Host. When I have 2 or more sites open at the same time the value of the Request.Url.Host is the same across all the sites. About every 30 seconds it resets itself to the correct value from the last request and shows that value on the other sites. So ultimately the sites are loading the same data. The value in the HOST server variable is incorrect as well.

View 1 Replies

How To Host A Dedicated Server

Oct 27, 2010

Is it true that ASP.NET and IIS hosting is more more expensive that PHP and Apache? Say I want to host a dedicated server, then will the difference be that big?

- Another thing, do I really need a license for SQL Server database and IIS or something like that when I pay for a company for the dedicated server or they will pay that?

View 17 Replies

Can Host On An Apache Server

Jun 27, 2010

I have heard of the pains of setting up IIS. On a windows box, can I simply drop a ASP.NET application into Apache server and have it work? Or are there any other server alternatives? I am relatively new to web server concepts. I have heard suggestions for the server in mono but it doesn't seem practical using mono on a windows box, I could use a Linux box with mono, which wouldn't surprise me if it worked better then a windows solution, but for arguments sake this question is directed towards a windows box.

View 2 Replies

Configuration :: How To Configure An IIS 7.0 Server To Host An MVC App

Jun 29, 2010

I have developed my first MVC application, which runs perfectly on my local development box.

However after publish to a server running IIS 7 I cannot get the application to work?

1. I created the application in IIS 7

2. Changed authentication to use Forms Authentication instead of Anonymous.

But this exception is generated - shown in browser:

[code]...

View 1 Replies

SQL Server :: Uploading Database To Web Host?

Mar 16, 2011

I am creating an application on my test machine at home. It will require logins, roles, memberships etc.

Just a quick question, will there be any problems when uploading database to my host as its has all my asp.net configurations in the database? Is there anything I need to specifically?

View 1 Replies

Run A Webpage At Particular Interval In Host Server?

Mar 15, 2011

I have one question that is i have to run one program in host server at a particular interval (lets say in each & every 1 hour).

But the thing is that in host server we can't run scheduler , so i want to know is there any approach by which we can achieve this task.

View 6 Replies







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