.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

Cross domain issues on iframes with WSS 3.0

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :SharePoint
 

Hai All,

             I have 3 SiteCollections say

1. Default  - http://Mysite.com

2.  SubSite1 - http://Site1.MySite.com

3.  Site1 - http://MySite2.com

4. Site2 - http://MySite3.com

There is a page says http://Mysite.com/Main.aspx add 3 Iframes into it during the pageload by javascript code.

var bFrameCount =0;

function setIframe(args)
    {
        var iframecreater = "<iframe id=\"iframeLogout"+bFrameCount+"\" height=\"50px\" width=\"50px\" frameborder=\"0\" src=\""+args+"\" scrolling=\"no\" ></iframe>";
        if(document.getElementById('divContainer')!=null)
        {
            document.getElementById('divContainer').innerHTML = document.getElementById('divContainer').innerHTML + iframecreater;
     &nb


View Complete Post


More Related Resource Links

How do I preserve __viewstate between cross domain posts or how do I get a __viewstate of a Remote S

  

Here is what I want to do:
I have a local site in which I want to display data from a remote site
Lets say: I want to display data of http://www.abc.com/Default.aspx on my localhost

Now Default.aspx requires some post-data which it sends to itself. Thus the __viewstate and __eventvalidation are posted back to it by itself. I want to directly post the data to Default.aspx from localhost without opening Default.aspx and display the Default.aspx's response on my localhost.

The WebApp on http://www.abc.com is configured for __eventvalidation i.e. I cannot post-data to it from my localhost without getting a __viewstate from it. I also have to post the current __viewstate of http://www.abc.com/Default.aspx to itself

How can I accomplish it?


ASP.NET Proxy Page - Used for Cross Domain Requests from AJAX and JavaScript

  
The article ASP.NET Proxy Page - Used for Cross Domain Requests from AJAX and JavaScript was added by Aamir Hasan on Thursday, August 19, 2010.

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn't allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull content

Cross domain search

  
We have a need to search site A (WSS) hosted on an environment (domain A) from an SSP hosted on a totally separate environment and domain (MOSS 2007). Let us call the SSP domain as domain B. What kind of trust the domain B's search account need to have with respect to domain A? What kind of authentication site A needs to have? Is it possible to crawl site A with NTLM authentication or it has to be anonymous? Thanks

WF Service and Silverlight Cross domain exception

  
Hi I have created a workflow service (xamlx) and hosted it on IIS. The web.config file of the service is: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service name="VacationRequestService"> <endpoint contract="IVacationEntry" binding="wsHttpBinding"/> </service> </services> <behaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true"/> <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests

cross domain error in self hosted wcf service

  

 Hi

 

I get this error when trying to access a self hosted wcf service...

An error occurred while trying to make a request to URI 'http://localhost:2363/Service1.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.


Can someone please explain what I need to do to get this to work, I do not have any cross domain policy file. And don't know how that is supposed to look like.


Cross domain authentication

  

How can I make my customer, situated in a different domain, access my database using SSMS using Windows authentication?

Can you please direct me to step-by-step guidance.

All the best

Simon


Cross-Domain policy error using soap in Silverlight with a Webservice

  

Getting the following error...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso

Cross domain javascript callback is not supported in authenticated services.

  

i am getting following errors to run WCF 4.0 web services.

Cross domain javascript callback is not supported in authenticated services.

after commenting following lines in web.config file now wcf project is working fine. what is the wrong in my side.

<!--
<standardEndpoints>

    <webHttpEndpoint>
        <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="false" maxReceivedMessageSize="2147483647" crossDomainScriptAccessEnabled="true" />
    </webHttpEndpoint>
</standardEndpoints>
-->

How does cross domain users (in the same forest) get authenticated/ authorized in MOSS 2007 ?

  

How does cross domain users (in the same forest) get authenticated/ authorized in MOSS 2007 site (Windows Authentication).
Is it possible? If yes, then how? and if no then appreciate any workaround.

Regards.

 


Cross domain error in WCF

  

I have developed the small application demo using PollingDuplex. It was working fine.

I am getting Cross domain error. Please help me

 

Error : An error occurred while trying to make a request to URI 'http://localhost:xxxxx/DuplexSvc.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sen


I have uploaded code here...

http://cid-aae2199ee00a44c6.office.live.com/self.aspx/.Public/Duplex2.zip

 


Many Thanks Deepak

Importing huge tables from cross domain SQL servers

  

Hello,

I am new in SQL server world and I have a problem in handling the import of lot of records (~12*10^6 records) between two SQL Servers that are in different domains.

I started using DTS through the import facility and I don't see lot of traffic on the LAN, so this seems a good approach, but it takes more than 4 hours to copy the entire temporary table from source SQL to destination SQL.

So I was thinking to linked server, and using sp_addlinkedserver I can hook the remote server. Now I would like to know if performing the select with the OPENQUERY is a better approach or if I could use a better solution.

My problem is that I should find a way for automating this activity every night, so every solution should be schedulable through SQL jobs, is this correct?

Thanks for any suggestion and help

Moreno

 

 


Sharepoint Cross domain authentication

  

Hi,

I manage a domain (MyDomain) that is trusted by a domain (TheirDomain) in which there is a Sharepoint site I wish to connect to. The trust in place is one way non transitive (i.e. the TheirDomain trusts MyDomain).

My SPS knowledge is quite limited but from looking around online it seems, in order for the admin in that domain to add individual users from this domain to their SPS site that various changes are required to their SPS instance (involving stsadm commands amoung other things).

In an effort to find the easiest solution, instead of adding each user in MyDomain individually to the SPS server could we have an admin from TheirDomain add a domain security group from MyDomain into a security group in TheirDomain and then allow that security group basic read only access to the SPS server.

Any advice would be appreciated?

Thanks

Paul


AJAX CROSS DOMAIN

  

Hi !

If I want to retrieve part of an html from pages that is locacted in other domain using AJAX, how do i do it securely ??

Thanks


Issues after moving SP 2010 server to new domain

  

We moved our SP 2010 Foundation server from one domain to another. We ran through all of the commands mentioned in KB934838 here and all of the sites seemed to work without issue, however there are some areas throughout the Central Admin page we now can no longer access. One of the main areas is Configure service accounts. When navigating to this page, we get the following error:

 

Error 
Some or all identity references could not be translated. 

Troubleshoot issues with Microsoft SharePoint Foundation. 

Correlation ID: f8fd7cbd-3f10-47d2-a44e-23c198ab5b56 

 

Looking this correlation ID up in the logs returned this:

 

04/14/2011 15:07:06.83 	w3wp.exe (0x11FC)      	0x113C	SharePoint Foundation   	Logging Correlation Data  	xmnv	Medium 	Name=Request (GET:http://fal-demoserver9:34442/_admin/FarmCredentialManagement.aspx)	f8fd7cbd-3f10-47d2-a44e-23c198ab5b56
04/14/2011 15:07:06.84 	w3wp.exe (0x11FC)      	0x113C	SharePoint Foundation   	Logging Correlation Data  	xmnv	Medium 	Site=/	f8fd7cbd-3f10-47d2-a44e-23c198ab5b56
04/14/2011 15:07:06.86 	w3wp.exe (0x11FC)      	0x113C	SharePoint Foundation   	Configuration     	bmf2	High 	SID |0 cannot be resolved. Using old name: |1. |2	f8fd7cbd-3f10-47d2-a44e-23c198ab5b56
04/14/2011 15:07:06.8

AutoGenerateSelectButton="False" ignored when using Domain Service

  

Crosspost from RIA Services forum: http://forums.silverlight.net/forums/t/196466.aspx

I'm creating a Dynamic Data application in VS2010 and have recently switched to using a Domain Service to give greater control over the data presented to the client. I've noticed that the AutoGenerate<Action>Button attributes on my GridView are being ignored. The presence of the Edit and Delete buttons appear to be contingent on the existence of Update and Delete methods on the partial classes autogenerated in the Domain Service, but i'm not seeing how to control the generation of the Select button. Is there a way to control this from within the Domain Service class?


Dynamic Data, Domain datasource, Poco and lookups

  

Mr. Edward,

Excuse my question but: it is necessary to involve in our projects something more than just Dynamic Data or should we make use of all other features available in VS2010 (which will make assume taht they had been left out of the Dynamic Data framework) like: wef, poco, azure, wcf, cloud, mvc, silverllight, ajax, odata, agile, workflow, etc.?

Sorry my ignorance, I'm just transcribing names as they come to my mind and of which I don't know anything about

 

Carlos Porras (El Salvador)


Pass ASP.NET membership identity object across domain?

  

I am trying to figure a way to SSO with ASP.NET membership and role model.

I can implement custom membership provider which consume web services hosting on a server.

With encryption of data. No problem.

But my question is, If I sign on a website with my provider, got my identity object on that application,

could I pass it to another website on another domain which use the same provider and by doing so, do not need to login again?


If this is possible, I am going to implement this solution. Please tell me what's your take on this.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend