Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good evening to all. In my project I use wcf services. If I access the datacontract from javascript by the following method
JavaScript
var updtemenu = new Meganathan.Business.Data.xxxx();

it is working fine while I am hosting the wcf service with in same domain but while I am hosting the wcf service in another domain it is show Meganathan is undefined how can I solve this please help any one.


Thanks in advance
by
meganathan
Posted
Updated 31-Jul-12 3:13am
v2

1 solution

Sounds like you've not configured your service for crossdomain access:

The following links are for Silverlight, but the principle of crossdomain access still applies.

4 Simple Steps to Consume WCF Service using Silverlight[^]

http://msdn.microsoft.com/en-us/library/cc197955%28v=vs.95%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900