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

Top 5 Contributors of the Month
Sandeep Singh
Melody Anderson
Eminent IT
Post New Web Links

Running console apps on host vs dev machine

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :SharePoint
I've always assumed that you could not run code against a remote SharePoint server outside of webservices. Is this correct or is there something similar to the ICredentials / NetworkCredentials objects that you use for webservices.   I wanted to use an app I wrote on a MOSS 2007 Dev machine but the SPS 2003 machine does not have the needed libraries v12.0 libraries. This makes sense but of course I tried to get it to run anyways. Now I'm in the middle of installing Visual Studio on a SPS 2003 dev machine and wanted to see if there was a different way.   Thanks

View Complete Post

More Related Resource Links

ASP.NET Workflow: Web Apps That Support Long-Running Operations


Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009

.NET Matters: Handling Messages in Console Apps


Many developers who use the Microsoft .NET Framework think that application type is tied to the libraries that can be used in that application. Stephen Toub clarifies.

Stephen Toub

MSDN Magazine June 2007

An established connection was aborted by the software in your host machine

Hello, i am facing problem with socket connection aborted for one of the service. Following is the detailed error,   ORIGINAL EXCEPTION:   An exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred and was caught. ------------------------------------------------------------------------------------------------------- 06/25/2010 10:06:20 Type : System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The socket connection was aborted by your local machine. This could be caused by a channel Abort(), or a transmission error from another thread using this socket. Stack Trace :  Server stack trace:     at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)    at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)    at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)    at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)    at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)    at System.ServiceModel.Channels.FramingDup

Running a WPF application from a console app and return status/console output from the wpf


I am trying to run a WPF application from a console application (e.g. a .bat file) but need to be able to receive console and error output from the WPF application.

I have console.writeline() and console.error.writeline commands in the WPF application but these are not received by the console application.

I would also like to receive a status value from the WPF on completion.

Is this possible?

If so could you give me a simple example using VB?

Creating a service host in a console app works fine in Debud but not opening exe


I have a Simple console app that starts to host my  wcf service and it works great when I'm debugging but when i run the exe it doesnt start the WCFSvcHost from my tray like i do when i dubug. Any ideas..

This is my host:

class Host
    static void Main(string[] args)
      ServiceHost host = new ServiceHost(typeof(EvalService));


      Console.WriteLine("Eval Service is up and running with the following endpoints:\n");
      foreach (ServiceEndpoint se in host.Description.Endpoints)


2 SSIS services running on one machine



I have developed a set of packages which i am attempting to deploy to a server which i did not configure.

The Server has three versions of SQL installed - SQL 2000 (default), 2005 and 2008.

When i run my deployment manifest i receive an error: 0xC0011008 - I think this is because my package is developed in BIDS 2008 and the server is running SSIS 2005.

This is my issue....when I look in the services on the server - i have two integration services, both running (i didn't think this was possible?)

1. SQL Server Integration Services
2. SQL Server Integration Services 10.0

When i connect to Integration Services through SSMS - the version displayed is 9.0.4035

There is also no DTS directory under the C:\Program Files\Microsoft SQL Server\90\ or C:\Program Files\Microsoft SQL Server\100 directory ....?

How can i rectify this? I want to end up with SSIS 2008 installed.

Thanks, Clay


apps automatically using machine.config


I have connection strings info in web.config.  I thought that if this were the case, machine.config would be ignored.  But, everytime the connection string in web.con is different than the connection string in maching.con, I get error......

The connection name 'aspnetdbConnectionString' was not found in the applications configuration or the connection string is empty.

Is there something I can check or change to get the app to ignore the machine.config when web.config connection string is listed.

Downloaded Sharepoint Server on host machine. How do I install it on Virtual Box VM from host machin



My configuration is Windows 7 as host operating system. Created a VM using Virtual Box with Windows Server 2008 R2 as guest operating system. I downloaded Sharpoint Server 2010 on the host machine. I want to install Sharepoint Server 2010 on my VM machine . How do I do that ? Please help.



Advice on whether to host custom .Net web apps on SP Farm


I have a couple of questions about hosting custom .NET web applications on a SP farm.  On our old IIS web server we hosted a mix of web sites and web applications.  We have moved the web site content into SharePoint but now need to decide where to move these web applications.  We currently run 2007.  Our SP environment includes two WFE servers using Network Load Balancing (software).

1. Would it be wise to move these applications to the farm on a separate IIS website/application pool or is it better to isolate them on a separate web server?
2. Are there any issues with running multiple versions of the Framework (specifically 3.5sp1 and 4.0) on the farm as long as the SP web applications run in their own app pool associated with the 3.5 version?  I've read it can be done but want to know if there are any issues or things to be aware when configuring.

Any advice is appreciated.

Thank you,
J. Aqui

cannot access sharepoint site through Internet Explorer 8 on a machine running Win XP Service Pack 3


The Sharepoint portal can be accessed fine through Firefox. Opera allows me to access it, but I cannot sign out, check out a shared document or do anything which opens a small window on clicking an option.

I can stay with Firefox, but when I try to edit a shared Word document in Word I get the message "Edit document requires a Windows Sharepoint Services compatible application and Microsoft Internet Explorer 6.0 or greater" We need to edit a shared document/calendar which is uploaded. All I know is we are using Sharepoint 2007 and the version of our site is Does that mean we have Windows Sharepoint Services SP2 on our Sharepoint server?

When I try Internet Explorer, I cannot log on at all. I get a window which asks for my credentials which I enter, it fails to authenticate me, then shows me the You are not authorized to view this page message. I tried with different computers, but cannot get in using Internet explorer.

What could be the issue?

Our Sharepoint admin does not have time to look into such matters so I am on my own.

Any suggestions would be appreciated.

Windows 7 Home accessing SQL Server running on a WindowsXP Pro machine

I have a client running a program that uses SQL Server 2005 Express running on a WindowsXP Pro machine.  It runs just fine on the WindowsXP machine, even under several different Windows logins that SQL Server has been told are permitted.  Using a Windows 7 Home Premium machine, in trying to set up the ODBC driver to point the program to the SQL Server database on the WindowsXP machine, an error is returned indicating that it is not permitting a connection for the client machinename\Guest.  Of course, the Windows 7 machine is logged on with the same login name and password as is permitted on the WindowsXP machine, but apparently the Win 7 Home machine is not transmitting that login and password allowing the login to SQL Server to be validated through the use of Windows NT 2000 authentication.  This always works with a WindowsXP Pro workstation.  Is my problem that their workstation machine is running a HOME version, or is there some other solution to make the Win7 machine transmit the real login and password instead of trying to log in as Guest?  Networking is letting the Win 7 machine explore shared files and folders in the XP machine since those are not requiring a valid ID and password.

What and where is the SQL backup on the virtual machine that is created during a Host Windows Schedu


Hi I have an Instance of Sql2008 running on Windows 2008R2. That configuration is a guest machine on a Host Windows 2008 R2 STD.

Twice daily noon and 6PM, I run a baremetal restore backup of the host to it's dedicated internal drive. This includes all the vhds for the VMs.
No Windows backup is configured on the VM's

The SQL VM has scripted backup database and backup log jobs that are scheduled.

The backup database job runs once daily in the evening. The problem is the HOST level backup is causing the backup library of the SQL server to identify the noon VM VSS snapshot as a backup. This "injection" means if I want to recover a full backup then a tlog(1...n) sequence I can do it fine from script but I don't think I can do it from the SQL Management Studio, because the noon backup database command was issued by the host and used the VSS writer to put that on the imaging(hidden) drive.

Running IIS on the the same machine as SQL Server


Hello everyone,

We're running IIS and SQL Server on the same machine, so our website and database sit next to each other. Someone mentioned that there are security issues with a set up of this nature.

Is it preferable to run them separately, on a web and database server?

Many thanks

How to sync a client machine running sql express


Hi All,


I am trying to figure out how I can sync a client machine running Windows XP or Windows 7 and running SQL Express 2008 R2.  I want to try and initiate a pull from the client to the publisher (Merge Replication).  I am having an issue trying to figure out how I can use the windows sync manager to accomplish this since the client doesn't have SQL Agent to actually run the sync job. 

Is there another way to kick off the pull from the publisher? I had originally wanted to push everything down from a server (publisher), but because of our strict firewall policy, etc I can't seem to establish a remote connection to the clients.

Any information or suggestions would be greatly appreciated.



Serving Silverlight Apps from Windows Mobile

Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it's still .Net programming.

Here is the scenario:

You come back home, you have a windows mobile phone wifi capable and you want to quickly get access to your phone pictures from your home network.
You just activate the Wifi, run my app and then browse to the provided link from any computer on the network.

Practical Multithreading for Client Apps

Writing applications that use multiple threads is often considered an advanced programming task, prone to errors. In this month's column, I'll focus on a practical application of multithreading in Windows® Forms applications with some real benefits, while attempting to keep things simple. My goal is to present multithreading in an approachable way that addresses a very common need: writing applications with a user interface that remain responsive to the user.
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