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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

AD qurey page does not work on remote machine...

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application
 

First, I apologize if this has been answered somewhere, but I feel I have been searching forever.

I am trying to setup code that will allow me to pull a domain users first and last name from the AD.  I have the code working successfully from the server browser, but it will not work from a remote browser.  The error I get (when using 2-3 different versions of the code) is

Exception Details: System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred.

I have Authentication set to Windows and Impersonation set to True.  Again, both sets of code work on the server, just not from any remote box.

The IIS server is set for Integrated Windows Authentication.

Here is one version of the code

Dim ADUser As System.DirectoryServices.AccountManagement.UserPri


View Complete Post


More Related Resource Links

Slow Page draw on remote machine

  

I set up a Sharepoint 2010 site for development testing and it seems to be rendering pages slowly (about 8-9 seconds) when accessed remotely.  It seems to want to redraw the whole page almost every time.
On the sharepoint server itself, the pages render decently in the brower (1-2 seconds from link click).

Any ideas where to look?

Details:
It's a Hyper-V machine running a vanilla 2008 R2 Windows and SQL installation. 
The pages render slowely on the Hyper-V host machine as well as computers on the same network, so I've ruled out network latency.
I've also installed the MS "2010 Information Worker Demonstration and Evaluation Virtual Machine (RTM)" on the same host, with LESS RAM and LESS CPU resources than my machine, and it's contoso pages render fine (1-2 seconds) on the host and remotely.  So I've ruled out under powered.
The MS VHD has no output caching and no object caching and renders fine, so I haven't added it to mine (although I tried with no change in page draw time).
I tried a simple SharePoint Foundation install and I'm seeing the same thing (slow remote page draws)

Any leads would be appreciated.
Thanks,
Travis 


calling a web service on a remote server from an ASPX page

  
hi, I want to call a web service on a remote server. I've done "add web reference" in my project, and VS2005 has created the .discomap and .WSDL in the App_Web_Reference folder. When I try add the namespace representing the web server (the name I created when I added the web reference) by "using XXXXX;" the code does not compile because XXXXX is not defined. Have I missed any steps? thanks, -me

calling a web service on a remote server from a ASPX page (web site project VS2005)

  
HI,I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder.  When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for  the new web service i'm trying to call. Have I missed any steps?Thanks in advance.-me

How does "Alert Me" work with simple web page?

  
In another post (http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/83ec9566-0357-4f40-9388-f364e87c1bd4/)  I've learnt how to make simple web pages in MOSS 2007. Then I want to "subscribe" some users using the "alert me" function but it doesn't seem to work.  Do I miss something or "alert me" doesn't work with simple web pages?  

making page work after DB update in Form View

  
I could really use some help with this issue. I have a DropDown that allows the selection of a Category Code. The selection populates a Gridview with details of records matching the Category Code. I have only enabled the Select option on the Gridview, which when clicked populates a Formview in Edit Mode with the full record information. When editing is complete and the Update link is clicked, I can not get the page to properly reload/postback. When another Category Code is selected from the Drop Down the Gridview does not report a list of records.   Any help would be greatly appreciated.   Thanks,              

Remote Blob Storage - does SQL Server do all the work?

  
Hi folks, I hope this is the right forum to ask this question - I couldn't find any specific SQL forums to post this so here goes... We are hoping to use Remote Blob Storage (RBS) and are running some tests to check suitability. When I first read the documentation I had assumed that RBS was something you install, configure, and it "just works" i.e. the client applications write to SQL, and SQL takes care of moving the files on via RBS. But after implementing a test following the sample code it looks like the application/client still needs to be RBS-aware and has to stream data into/out of SQL via an RBS client provider. Am I missing something here? I had hoped that existing client applications would not have to change their logic i.e. they could continue to access SQL Server in exactly the same way, but would benefit by RBS moving blobs from binary/image fields to RBS-enable provider storage. But all the samples point to the clients having to use .NET libraries to interact with the RBS functionality, and while SQL then takes care of the rest it would mean any client would have to be modified to support this. If that's the case, I don't see the point to RBS. Yes, it's fantastic that we can store blobs outside of SQL via a common API, and yes, it is transaction-aware so blob clean-up is a much better experience, but the client has to still do the work to enable t

Remote Blob Storage - does SQL Server do all the work?

  
Hi folks, I hope this is the right forum to ask this question - I couldn't find any specific SQL forums to post this so here goes... We are hoping to use Remote Blob Storage (RBS) and are running some tests to check suitability. When I first read the documentation I had assumed that RBS was something you install, configure, and it "just works" i.e. the client applications write to SQL, and SQL takes care of moving the files on via RBS. But after implementing a test following the sample code it looks like the application/client still needs to be RBS-aware and has to stream data into/out of SQL via an RBS client provider. Am I missing something here? I had hoped that existing client applications would not have to change their logic i.e. they could continue to access SQL Server in exactly the same way, but would benefit by RBS moving blobs from binary/image fields to RBS-enable provider storage. But all the samples point to the clients having to use .NET libraries to interact with the RBS functionality, and while SQL then takes care of the rest it would mean any client would have to be modified to support this. If that's the case, I don't see the point to RBS. Yes, it's fantastic that we can store blobs outside of SQL via a common API, and yes, it is transaction-aware so blob clean-up is a much better experience, but the client has to still do the work to enable t

Page.ClientScript.RegisterClientScriptBlock does not work

  
All, I am new to .Net and webpart. What I try to do is to create a griedview webpart with a functionality of export to excel. The gridview also can drildown another gridview. The drilldown work as expected. When click export to excel link button it works ok, too. The problem is when comeing back to the gridview to click any row, it stops to drilldown. If I want to use export to excel link it stop working also. Only refresh page can make it work again. I did research and found a solution, that is, to implement a javascript to solve the problem. I follow references from microsoft site as shown below. But it never works. Can anyone tell me what wrong I did? Thanks a lot   private const string ByeByeIncludeScriptKey = "myByeByeIncludeScript"; private const string EmbeddedScriptFormat = "<script type='text/javascript'>function ClientScript(){ _spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;}</script> "; //Constructor  public DataViewer() {  public DataViewer()this.PreRender += new EventHandler(DataViewer_PreRender); } //Client Script registration   private void DataViewer_PreRender(object sender, System.EventArgs e) { if (!this.Page.ClientScript.IsClientScriptBlockRegistered(ByeByeIncludeScriptKey))this.Page.ClientScript.RegisterClientScriptBlock(typeof(DataViewer), ByeByeI

Repeat Report Item with Data Region on Every Page - doesn't work

  
Hi All, The Repeat Report Item with Data Region on Every Page property does not work - or atleast not the way i would expect it to. My report contains a header which is the Report Name. In the report body - I have text box with the company name, pulled from a data set. Below the company name i have a line, followed by a text box displaying the selected parameters. When I run the report, the first page displays all information as expected. However, subsequent pages only display the report header (report name) with the table butted up against it. I have tried setting the Repeat Report Item with Data Region on Every Page to true (and the data region to my table) for the Company Name text box, the line, and the parameters text box. This has no affect i.e. page 2, page n... are not printing the three items. Any suggestions much appreciated. Thanks.  Clay

problem in Transferring a large dataset to remote machine by using the NetTcpBinding

  
i am developing an WCF application, in which i have to transfer a large dataset to the remote machine!! for that im using nettcpbinding in WCF but i got this exception ' The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '10:29:59.4140000'. at my sender side.   Sender/Client side code   // Object for sending to remote client using (_dpParameters = new DPParameters()) { _dpParameters.SequenceFieldName = "Sequence"; _dpParameters.Size = 10; _dpParameters.SubjectsForFiles = "S,Y,T"; _dpParameters.SubjectNames.Equals(SubjectNames); _dpParameters.FilePath = " E:\\Source\\Phospho.xml"; // this dataset can be in GBs but for testing me using jst 6.78mb DataSet ds = new DataSet(); ds.ReadXml(_dpParameters.FilePath); _dpParameters.Usd = ds.Tables[0]; } /// This is the binding settings NetTcpBinding tcpBinding = new NetTcpBinding(); tcpBinding.ReceiveTimeout = new TimeSpan(10, 30, 00); tcpBinding.SendTimeout = new TimeSpan(10, 30, 00); tcpBinding.MaxBufferSize.Equals(67108864); tcpBinding.MaxBufferPoolSize.Equals(67108864); tcpBinding.MaxReceivedMessageSize.E

What is the best way to develop a multi-page Windows Application (i.e. work like a web app - no pop-

  
Hi, I have implemented a toolstrip and want to use this as my menu to change current page (just like a web application). I DON'T want extra forms popping up.    I ask this question as in the past I have always used TAB Control, but now that I'm using the toolstrip I don't require the Tab Buttons themselves. Can I hide these buttons, during runtime. Obviously I only need one tab displayed at a time. I have looked at using a panel, but that means I can't flick between panels during design stage. Any suggestions would be really appreciated. Thanks. John.      

PERFMON: Cannot see SQL Server 2008 R2 64 bit instance counters from remote machine

  
Hi, I have 2 machines X and Y. I am using X machine to run perfmon which will remote connect to Y machine and collect the counters for Y machine. I am surprised to see that I am not able to see the counters for SQL Server 2008 R2 64 bit when I remote connect the perfmon on X machine to Y machine. However, when I directly log in to Y machine and open perfmon, I can see the counters for SQL Server 2008 R2 64 bit !! What is not allowing me to see those counters while connecting remotely? I have same adminstrator rights on both machine for my login and use same login details to log into both machines. Both machiens X and Y are in same network and same domain. Any help will be appreciated.

What is the best way to develop a multi-page Windows Application (i.e. work like a web app - no pop-

  

Hi,

I have implemented a toolstrip and want to use this as my menu to change current page (just like a web application). I DON'T want extra forms popping up.   

I ask this question as in the past I have always used TAB Control, but now that I'm using the toolstrip I don't require the Tab Buttons themselves. Can I hide these buttons, during runtime. Obviously I only need one tab displayed at a time.

I have looked at using a panel, but that means I can't flick between panels during design stage.

Any suggestions would be really appreciated.

Thanks.

John.

 

 

 


MVC doesn't work once is published in the WEB, "Error 404 Page Not Found" vs2010 iis7 mvc 2rc2 I up

  

Hi Everyone.

 I'm doing the samething in my two differents pc.

1) Windows 7,  vs2010 rc, mvc 2rc2, .Net 3.5

2) Winodws xp, vs2008, mvc 2rc2, .Net 3.5

My Hosting is in GOdaddy IIS 7, .Net 3.5.

I created a new project in both computers, i build it, i copied the 3 dll's files in the bin folder (System.Web.Mvc,  System.Web.Routing, system.Web.Abstractions), and i publish them...., i go to my website (www.luisbragagnolo) both same problem "Page Not Found"

 I tried many blogs...many advices...nothing yet....

 Any other new Advice people? Thankssssssss


The Group Work Site template has the "What's New" web part on it's home page and I have the follow

  

I can't find that web part as something I can use elsewhere? As in, I can't add that web part on other pages made even on the same site. What would be ideal is to have that web part available to add as needed to other sites/pages of course. As it stands, for me it seems the only place I can use that web part is on the home page of a new "Group Work Site", i hope that I'm wrong. I've tried exporting the web part, but the importing does nothing when trying to import it to other sites, of course other 2010 sites. Please let me know how I may add that web part to my available to use web parts please.

 

:)


UpdatePanel Trigger dont work with Master Page

  

Hi

I got a aspx page using a master page. In the aspx page, i got multiple Content section:

<asp:Content ID="Content1" ContentPlaceHolderID="CPHSubHeader" runat="server">

<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
    <ContentTemplate>

<asp:Panel ID="Panel1" runat="server">
            <asp:table id="tblSubHeader" runat="server" width="100%" bgcolor="white">
              <asp:TableRow runat="server">
                <asp:TableCell ID="TableCell1" runat="server" Width="50">
                    <asp:Label runat="server" Text="Area" Font-Names="Arial" Font-Size="14px"></asp:Label>
                </asp:TableCell>
                <asp:TableCell ID="TableCell2" runat="server" Width="100">
                    <asp:DropDownList runat="server" ID="ddlArea" AutoPostBack="true" OnSelectedIndexChanged="DDLArea_SelectedIndexChanged"></asp:DropDownList>
                </asp:TableCell>
                
                <asp:TableCell ID="TableCell3&q

Loading a Remote Page problem

  

I have an instance where I need to show a classic ASP page within an ASP.Net page. I didn't want to use an iframe for several reasons, but those aren't the issue here. I searched and searched and finally found some code that would let me do it, available here: http://www.mikesdotnetting.com/Article/49/How-to-read-a-remote-web-page-with-ASP.NET-2.0. I implemented the C# code and found that for the purpose of loading a plain HTML page it works just grand. But, when I try to load a Classic ASP page that way, I get a 500 Server error. The page that I am trying to load works just fine if I load it directly into a browser, or into an iframe, but not using this method.

I'd really like to know what is causing the error so that I can fix it. If I could get the whole error response that the page sends out it would be helpful. I'm just not well-versed in how these classes work deep inside. Should I be setting a user agent or some of the other header values? If so, what should they be set to and how? Any insight would be very appreciated. For completeness, my code follows.

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using
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