WCF / ASMX :: HTTP Error: 404, When Attempt To Access Service HTTPS On Different Port?

Feb 9, 2010

we have a situation where we need to host two certificates on the same server and because we can't have two different certificates on the same server running off the same port we have assigned one certificate run through another port, which is 4443.

So the URL to our web app is now....

[URL]

If I punch this into a web browser I can access it fine, however, if I create a web reference using this URL in Visual Studio (2005) it can create the web reference fine and it builds ok. But whenever I call a web method on this service instance I get a HTTP 404 page not found Exception.

Is there any properties I need to set on the web service object to get this to work? I'm confused as to why it's not working.

View 3 Replies


Similar Messages:

WCF / ASMX :: WCF Service As Https Using Port 80?

Nov 9, 2010

I have just noticed that a WCF service referenced as https in the web address is showing that the client is connecting on port 80

View 11 Replies

Mobiles :: How To Access Both Http And Https (with Invalid Certification) Php Web Service

Dec 13, 2010

I am new to windows Phone 7 application. Here is my requirment that follows,

1/ I have web service created in php using http. (ex: http://abc.com/allservices/api.php?Task=getData&Email=ab1@abc.com&Password=1234)

2/ if i call that url i can get response in xml foramt.

3/ if I type this url in browser adddress bar with changes the http to https. the browser ask me to continue with this url. If i click this i can get the same response in xml format with certification error.

4/ once again i do the same step, this time the browser don't ask me to continue. I don't why.

5/ From my Windows Phone 7 application is working fine when I use http.

6/ If i change the url http to https I want to get the same xml.

7/ But i get only Server Not Found exception .

8/ Is there any posible way can I acess the web server using Https with Certification error..

View 1 Replies

Setup Wcf Service For Http And Https And Also Add Username / Password To Its Access?

Oct 25, 2010

I am kinda new to WCF and the setting up of service and have 2 questions. My first question I have a service that will be accessed via https on a web server. However locally on my local IIS7, it will be accessed via http as https is not available. How can I set up a service to be accessed by both?

My second question is regarding how I can set up a service that requires a username and password to be accessed. The service that I have in place I dont want methods within it to be accessed unless the calling application has the rights to do so?

Here is an example of the relevant area of my web.config file.

<system.serviceModel>
<bindings>
<webHttpBinding>
<!-- standard AJAX binding that supports SSL -->
<binding name="TransportSecurity">
<security mode="Transport" />

[Code].....

In this config, the service is set up for http only and not username/password applied to it.

View 1 Replies

WCF / ASMX :: Service Over Https Returning Error

Oct 11, 2010

I am trying to deploy a wcf service. I have created a simple service, basically I have created a new wcf service and tried to deploy it however I get this error

The type 'WCF_Application.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

I am trying to deploy my service to a subdomain like
https://services.mydomain.com/business

My config looks like this

[Code]....

View 3 Replies

WCF / ASMX :: Service Reference In VS2008 / Error Downloading 'http://localhost:8000/Tasks'

Mar 3, 2011

I have developed the WCF service as follows.

1) Service Contracts in a project

2) Data Contracts in a project

3) Finally adding the reference of service contract project in a Hosting project (Console Application) with complete configurations.

I am adding one more windows app project as a client.When i am trying to add the service reference using the address "http://localhost:8000/Tasks", VS 2008 displays the below error.

There was an error downloading 'http://localhost:8000/Tasks'.

Unable to connect to the remote server

No connection could be made because the target machine actively refused it 127.0.0.1:8000

Metadata contains a reference that cannot be resolved: 'http://localhost:8000/Tasks'.

Could not connect to http://localhost:8000/Tasks. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8000.

Unable to connect to the remote server

No connection could be made because the target machine actively refused it 127.0.0.1:8000

If the service is defined in the current solution, try building the solution and adding the service reference again.

View 3 Replies

WCF / ASMX :: Can A WCF Service Listen To TCP Port

Aug 24, 2010

I have to develop a WCF Service which should listen to a particular TCP port for data coming in from clients. Is there a way wherein the client need not call any WCF Service methods, instead client can directly write data to that port and WCF listens to TCP port for data.

View 3 Replies

WCF / ASMX :: Testing Web Service With No Port Number?

Jun 18, 2010

The way I quickly test the asmx file is to "View in Browser" from Visual Studio (I'm using 2005, and have IIS 6). The address shows up like this:

"http://localhost:1399/MyWebService.asmx"

where 1399 is a generated random number and can change each time I test by this process.

The books I've been reading (as well as other sources in the internet) keep referring to testing web services by typing something like this in the browser:

"http://localhost/MyFolder/MyWebService.asmx"

where "MyWebService" is the name of the web service and "MyFolder" is where that webservice is.

This "http://localhost/" with no port number testing never worked for me. Some books mention random port numbers, but most do not even mention port numbers. [URL]

View 6 Replies

WCF / ASMX :: Webservice In Https Returns Undefined But Works On Http?

Jul 20, 2010

We have a problem regarding webservices when it runs in https. it say's that the service is undefined. BUT when we try it in http it runs okay...

View 1 Replies

WCF / ASMX :: WCF Add Service Reference Error "The Request Failed With HTTP Status 403: Forbidden"

Apr 11, 2010

when i am adding service reference the Following erro shows Up..where as the same works on the Other machine. The url when tested in Internet explorer works but only while adding shows the error. The request failed with HTTP status 403: Forbidden. The HTTP request was forbidden with client authentication scheme 'Anonymous'.

View 5 Replies

How To Suppress Error Messages When Access Non-existent Web Methods On A .asmx Web Service

Dec 15, 2010

We have a customer who are using HP Web Inspect to test for vulnerabilities in our software.

The web inspect tool is complaining about about error messages being returned when a request such as the following is made [URL].

The ASP.Net framework returns a page with the following text content and a 500 status code.

System.IndexOutOfRangeException: Index was outside the bounds of the array.

[code]....

but the error seems not be an unhandled error and so neither 500 page is shown.

View 1 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

WCF / ASMX :: Intermittant Error: "A Connection Attempt Failed Because The Connected Party Did Not Properly?

Aug 19, 2010

I'm having a doozy of a problem, and can't find a solution. I have a WFC Web Service installed to a pair of servers, and accessed through a load balancer. I am accessing the service from an ASP.NET client app, also via WCF. The Client is not load balanced.I'm getting an intermittant error:

(Inner Most Exception) System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80(Middle Exception) System.Net.WebException: Unable to connect to the remote server(Outer Exception) System.ServiceModel.EndpointNotFoundException: Could not connect to http://<MYSite>/<MYApp>/<MYService>.svc.TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80.

I can reproduce this error with about 20% reliability if I execute the exact same page request on the client from 2 browsers at the same time. When the problem occurs, the successful page request returns in about 5 seconds, and the failed page request returns in about 30 seconds.I'm guessing that there is some additional latency when the load balancer decides to switch my session to another server, and that is making some timeout setting on my client to be exceeded. I need to research this performance characteristic... any thoughtsbut its not my core question.My core question is... Exactly what setting can I tweak to increase the "period of time" the "connected party" is allows to "properly respond".This is the basicHttpBinding configuration I am using on both sides of the communication:

<basicHttpBinding>
<binding name="LongerTimeout"
sendTimeout="03:00:00"
maxReceivedMessageSize="2147483647"
maxBufferPoolSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647"/>
</binding>
</basicHttpBinding>

I've seen some indication that setting the receiveTimeout value on the server may help, but I set this to 1 second in a test environment, and was unable to reproduce the problem, leads me to believe its not worth a production environment change to verify this.

View 3 Replies

WCF / ASMX :: HTTP Post To Web Service?

Sep 16, 2010

have a web service that I'm trying to consume from a console app through http post. I receive a 500 exception error from the xmlstring parm being passed to the web service. Add the following to web.config of the web service. Although it is not working in debug in vs 2008 as well.

[Code]....

[Code]....

[Code]....

the host file is setup for the web service as well.

[Code]....

View 6 Replies

Security :: Access Denied Error When I Attempt To Create A Directory?

Jun 9, 2010

I'm currently working on an ASP.NET app that I inherited. There are a variety of file operations it has to perform and I'm getting and Access denied error when I attempt to create a directory.I've confirmed that the correct account is being impersonated and authenticated by checking WindowsIdentity.GetCurrent I've also confirmed that the account has full control for the parent folder of the directory I'm trying to create.The only think I can think of is that there might be an issue using a domain account rather than a local account. I'm not really 100% solid on how permissions work in this situation.Any ideas on why the account wouldn't have access? Is there any other code I could try to get more details about what is going on?

View 3 Replies

WCF / ASMX :: Connecting To Web Service Via Http Post?

Jul 22, 2010

My web service uses .Net Framework 2.0. An e-learning application reads and updates an Access database in the web service via Http Post commands. I test the e-learning application and the web service using the version of IIS 7 that came with Windows Vista. I run IIS using localhost in my browser.

All works well. But a friend is having trouble running the same test with my files on her IIS 6 server. So I'm developing a checklist of issues in setting up an IIS 6 server to run a web service. I plan to include all possible causes of problems including permissions, accounts that are needed, etc. Are there resources to which I can go for this checklist?

View 1 Replies

WCF / ASMX :: Create Web Service With Http-post Method?

Sep 22, 2010

we need to expose a web service to the 3rd party vendor which can only call using POST protocol, NOT SOAP.So my question, is it better to build a web service or just simply .aspx page?Also is there any best practice documentation on this.

View 4 Replies

WCF / ASMX :: Read Http Custom Header From Web Service?

Oct 5, 2010

cant read http custome header "MSISDN" from my web service ... same code works on regular asp.net page. Can anyone shade a light on that subject ?

View 2 Replies

WCF / ASMX :: Catch Web Service Generated HTTP Traffic?

Jun 28, 2010

I am after a tool that allows me to catch HTTP traffic on my local machine that is generated through web service calls. I have tried Fiddler, but it doesn't seem to catch my web services that are sent via...

[Code]....

Maybe fiddler can be set up to allow this, I am not sure :-s If anyone knows, can you explain, or if anyone has used a tool on their local machine that can catch HTTP request/responses from the above code?

View 1 Replies

WCF / ASMX :: The Request Failed With Http Status 401 Unauthorized. Web Service?

Mar 16, 2011

I am trying to call webservice from my web application. The web application had integrated windows authentication. I've written custome principal class to do authorization. But when I give call to my web service with default credentials it gives me 'the request failed with http status 401 unauthorized.' error.

When I give call to my local webservice it is running fine (It also has integrated windows authentication) But when I add reference of same web service from QA server I am getting this error. Not sure what is happening. I also tried

WS.PreAuthenticate = false;
WS.Credentials = System.Net.CredentialCache.DefaultCredentials;

View 2 Replies

HttpHandlers / Modules :: Redirect A Page From Http To Https Using Http Module Begin Request Handler?

Jul 15, 2010

i redirect a page from http to https using http module begin request handler .i am calling webservice using ajax but it is saying webserice not defined .which otherwise works fineits work fine when rediect page in page_load instead .but i need to add function for https to http in every page. i still not know why ajax is not working when i use http module for redirect

View 3 Replies

WCF / ASMX :: "Service Error - Web Service Failure

Feb 2, 2011

I am keep getting an error that "Service Error : wbsTest failed" where wbsTest is my webservice.

The error comes up frequently enough for the user - normally reproducible within a minute or so of working with an application.

A bit of background: An user is a remote user accessing application hosted on our servers over https. He is software firewalled and his connection isn't the fastest but it is responsive enough. When errors do not present themselves, page loads are fairly quick.

View 8 Replies

WCF / ASMX :: The Requested Failed With HTTP Status 404:Not Found When Access The Webmethod In Webservices?

Oct 11, 2010

when I access the webservices URL through browser ,I am able to access the URL ,If i use the webmethod in c# code the error message is diplaying like "The Requested Failed with HTTP Status 404:Not found".

View 5 Replies

WCF / ASMX :: How To Access Web Service In WCF Service

May 24, 2010

I want to access simple web service inside WCF service. How can i achieve it?

View 2 Replies

WCF / ASMX :: Can't Access Service.svc.cs

Jun 9, 2010

Im using VS 2008, 3.5 framework I want to use wcf, but javascript cant access to myservice.svc error : Message: 'MapService' is undefined;

calling mapservice ;
function getselectedIl() {
var firstLetter =
"caglar";
var proxy =
new MapService();
proxy.GetSuggestions(firstLetter);
defining mapservice;
<asp:ScriptManager ID="ScriptManager2" runat="server">
<Services>
<asp:ServiceReference Path="MapService.svc" />
</Services>
</asp:ScriptManager>
mapservice.svc.cs;
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MapService
{
[OperationContract]
public string GetSuggestions(string firstLetter)
{
return "basarili";
}
}

View 6 Replies







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