WCF / ASMX :: Exposing MEX Endpoint Address - WCF Test Page Shows The WSDL Address Wrongly
Apr 15, 2010
I have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.
However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).
The WCF test page looks like this:
MyService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
[URL]
The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.
In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?
View 3 Replies
Similar Messages:
Dec 16, 2010
I had to move a WCF service (IIS hosted) to a new address. This service is called by a webforms web site on a different site in the same instance of IIS. I checked the WCF service is available and working by calling it directly from a browser.
I then did the following
updated the Service Reference folder in my consuming website updated the web.config servicemodel section (it was auto updated by changing the Service Reference) re-built and deployed libraries using the WCF service to the websites bin folder Stopped the consuming website in IIS and deleted files from Temporary ASP.NET Files folder Re-started IIS and deleted *ALL* files from Temporary ASP.NET files
When I browse to a page that calls the WCF service I get the error;
EndpointNotFoundException
There was no endpoint listening at <<Old endpoint address>> that could accept the message
How can I force my website to use the new WCF endpoint? Do I need to re-start the web server?
View 2 Replies
May 26, 2010
I am trying to pull entries from a database based on the current users IP Address. Here is what I have so far:
[Code]....
I am receiving the following error: Cannot find either column "Request" or the user-defined function or aggregate "Request.UserHostAddress.ToString", or the name is ambiguous.
Is it possible to do this? Should I try to access this information another way?
View 3 Replies
Sep 2, 2010
Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?
View 1 Replies
Oct 7, 2010
I create a web service with a web method. I need to detect the requester's ip address.
Request.ServerVariables["REMOTE_ADDR"] that works in web form does not seem to work in web service. How can I detect the requester's ip address and in which of the web service should the codes be placed?
View 4 Replies
Mar 28, 2010
I am using ASP.NET (.asmx) web services with Silverlight. Since there is no way to find the client IP address in Silverlight, I had to log this on the service end.
These are some methods I have tried:
Request.ServerVariables("REMOTE_HOST")
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
Request.UserHostAddress()
Request.UserHostName()
string strHostName = Dns.GetHostName();
string clientIPAddress = Dns.GetHostAddresses(strHostName).GetValue(0).ToString();
All the above methods work fine on my local system, but when I publish my service on a production server, it starts giving errors, Error: Object reference not set to an instance of an object. StackTrace:
at System.Web.Hosting.ISAPIWorkerRequestInProc.GetAdditionalServerVar(Int32 index)
at System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name)
at System.Web.Hosting.ISAPIWorkerRequest.GetRemoteAddress()
at System.Web.HttpRequest.get_UserHostAddress()
View 2 Replies
Feb 27, 2011
I wrote small wcf service. Its working fine. I have one doubt if i want to share the address in lan to other person so he can consume the service of mine he can build the application. how can he access the service in local lan.
View 1 Replies
Feb 9, 2011
How can I check if an email address actually exists?
I have a list of email addresses which I want to screen for dead email accounts (without sending an email msg with a hyperlink). Is there a web-service for this? Or C# code (which I prever instead of sending the data to someone else)?
View 3 Replies
Nov 9, 2010
How do I obtain the IP address or MAC address or some Unique ID of a device within a mobile app, either client or server side?
We are developing a web application targeting iPhone, BlackBerry and Android, generally device independent, and we are looking for ways to uniquely identify a device for added authentication purpose. Is there a way to uniquely identify a mobile device, regardless of the make and model?
View 3 Replies
Aug 31, 2010
i need to be able to expose information to a page, and I need to write the information in xml on my webserver which will be dynamically created from the database.
I need to use json to pass the data from the screen back to the server two way communication xms back and forth. Is it actually any good using a wcf endpoint to serve the json back to the page and use query with wcf? Is this possible?
Or is it easier to use standard pages .aspx and just do a call to a url and get the json with jquery....
We will probably want to send this information to other locations at some point in the future too....
View 1 Replies
Dec 13, 2010
I am recieving the following error when I try to browse to "http://10.28.2.246/SQLDataService.svc" yet it works fine at "http://localhost/SQLDataService.svc".
Server Error in '/' Application.
No protocol binding matches the given address 'http://10.28.2.246/SQLDataService.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration.
Description:
An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: No protocol binding matches the given address 'http://10.28.2.246/SQLDataService.svc'. Protocol bindings are configured at the Site level in IIS or WAS configuration.
Source Error:
[Code]....
Stack Trace:
[Code]....
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Am I correct in my belief that this is caused by the Web.config file?
[Code]....
View 6 Replies
Feb 24, 2011
I have an existing project with a silverlight3 app. First I created SALESservice.svc.This is working fine. Now I added another TARGETservice.svc to my project and rebuilded my entire project but when I am trying to add the service reference in to the silverlight app I get the following error:
There was an error downloading metadata from the address.verify that you have entered a valid address. I didn't write any code in ISALESservice.svc AND ITARGETservice.svc . I have written in SALESservice.svc.cs AND TARGETservice.svc.cs files.Is this causing error? But for SALESservice.svc it is working. I didn't add any code in web.config file.
View 1 Replies
Nov 16, 2010
I have a class with about 5-10 methods which all my services (WCF) need to expose. What is the best way to expose all the methods in all the services keeping (DRY principle) in mind?Is interface inheritence a good design principle? e.g. public interface IBMW : ICar
{
blah();
blah();
}
View 1 Replies
Jan 31, 2011
how do I grab an email address from a web form and email to that email address with the link to a webform?
View 5 Replies
Aug 31, 2010
I need my system IP address. I've used Request.ServerVariables["remote_addr"] but it is being provided IP address of my network(intranet) not my local system ip.
Actually I've set session state off and want to identify the user request. So i want to fetch the system IP not router/network IP.
View 3 Replies
Jan 22, 2010
I am using C#. Below is my sample code.
private void Page_Load(object sender, System.EventArgs e)
{
string str = Request.UrlReferrer.ToString();
Label1.Text = str;
}
The result in Label1.Text is http://localhost:82/data/WebForm1.aspx.Now I want the result "WebForm1.aspx" in Label1.Text
View 2 Replies
Dec 29, 2010
i have some page in aspx that display order details after user make order trought the site. i want to send to his email the same page. the page containe few gridview and fromview from few SQL tables. is it possible?
View 15 Replies
Aug 4, 2014
Just transitioned servers, in Chrome the domain name works fine, but in IE I get an error:
This page can’t be displayed
•Make sure the web address http://50.58.231.78 is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
And in Safari I just get a blank page. If I enter http://50.58.231.78 it comes up fine.
Chrome works fine.
This is an .aspx page using IIS.
View 3 Replies
Dec 8, 2010
I have a composite control, I need to get the address of page hosting it.
View 1 Replies
Mar 17, 2011
I just need to set a focus on the texbox in the Page_Load event.
There are many ways to do this - from the simple textbox.focus() to HTML and Javascript. But none of these methods really works, because when the page loads the focus is always set to the browser address bar.
View 7 Replies
Oct 7, 2010
i use all ways i found on the Net to get client IP address or PC name (client side IP) in asp.net page but always i have server IP
im behind proxy
is there a way to do that and get actual IP and PC of client or visitor of my site - i don't want outer visitor IP i want the employee IP in my LAN
View 11 Replies
Mar 29, 2010
I have an email address on an Aspx page. How can I make the email address hyperlinked so that when clicked on will open the email sender?
View 1 Replies
May 31, 2012
I use querystring in my page when i click on button it go to Store.aspx. This is my query string code
protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("Store.aspx?behcode=" + Server.UrlEncode(txtNumeric.Text));
}
In addressbar show this
behtob.com/Store.aspx?Behcode=1111
I want in address bar show something like this
behtob.com/Store?Behcode=1111
page name without .aspx
Is it possible?
View 1 Replies
Feb 8, 2011
What is the advantage of using a Mex Endpoint over setting
[code]....
I am not able to add the service using Add Service Reference. I am not able to get the WSDL using a browser.
2. If I add the tag <serviceMetadata
httpGetEnabled="true"
and remove Mex Endpoint, I am able to query the wsdl using browser and I am still able to add a refernce using Add Service Reference.
Then, What's the specific use of Mex Endpoint.
View 2 Replies
Mar 30, 2011
In my application i have login Page in that i have login Control of asp.net, when user clicks on submit button i am authenticating the user and and redirecting to default url.
now what i want is using address bar i want to authenticate the same process with out opening the login page and give user name and password in the login control. Directly i want to inject the username and password in the address bar and need the same functionality what the submit button does.
i have articles on net using post methods but i am not able to do this.
View 2 Replies