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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to restart CLR without restarting Server?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :
The Subject


View Complete Post

More Related Resource Links

Restarting Server: How to restart User Profile Sync Service?


Greetings all,


We had to restart our server, and once restarted, the User Profile Service (that we so laboriously fixed/reconfigured a month back) isn't starting. We get a retry on "User Profile Sync is provisioning, please wait..." before it terminates.

Can someone please recommend the best order in which to re-start the services so User Profile Sync restarts and continues to update?

Thanks SO MUCH,


SQL Server Express 2008 Setup fails. Support Rule "Restart Computer" Failed

Hi, I have been trying to install SQL Server Express for most of the day now without any luck.  Whatever I do setup fails at the stage of Setup Support Rules, Rule "Restart Computer" - Failed.  Needles to say I have restarted (several times!) and I have tried downloading  and installing the "Advanced", "Tools" and "Basic" versions, all give the same error.  Trying a repair does the same.  I have been searching the net for an answer without success, any help would be MUCH appreciated. Further info: I am trying to install a stand-alone installation on to a single PC running under XP SP 3 with .NET 3.5 SP1 installed.  The PC did have some earler versions of SQL server installed but I (?hopefully?) removed all of these through Control Panel.  Before trying the first SQL install I installed Windows installer 4.5 and PowerShell 1.0 as per the Microsoft Instructions. Running SQL Server Configuration Manager results in an error (MMC could not create the snap-in. The snap in might not have been installed correctly).  A directory structure for SQL server exists in "Program Files".  Services MSC shows SQL Server (SQLEXPRESS) as Automatic Statup (not running).  Trying to start this manually gives error 14001: "application configuration incorrect - re-install to fix" .......... Which is precisely what I'm trying to do.........:(

Doesn't restart sql server rollback uncommitted transaction?

hi, i executed a long-running sql in the management studio. The sql updates many rows and all updates are within a transaction. After runing 30 mins, the hard disk is full. That's because of the uncommitted updates. Then, i restarted the sql server because I thought after restarting, the uncommitted transaction is rollback and the occupied hard disk space is also released. But i found that the transaction is rollbacked but the hard disk space is not released. Why the hard disk space is not released? how can i release the disk space now? Thank you for your help.

Setup of SQL Server 2008: Restart required but I have restarted

Hello,I have tried to install SQL Server 2008. I cannot install, because I get the errormessage the prerequistite "Restart the computer is required".But every time I restart my computer and try to execute the setup of SQL Server 2008, I get the same message, I have to restart the computer.I cannot install the SQL Server 2008. What can I do?Thanks

Log Reader Agent fails to restart when server restarts


when our server reboots and by way of that, SQL Server restarts, the Log Reader Agent fails to restart despite appearing to be set to do so (restart when SQL Server Agent starts).  SQL Server Agent does restart, but the LRA needs manual intervention.



Cannot connect to ASP.NET development server after closing the server and restarting the project


I'm getting "Cannot connect to ASP.NET development server" almost every time I stop the ASP.NET server before restarting the project in debug mode. It can take between 15 seconds and 2 minutes to get the error message, and Visual Studio is frozen. 

Sometimes I get three in a row, and I have to wait 2 minutes each time, or go into Task Manager and kill to process. Then I have to start Visual Studio 2010 again, which is at least three times slower than Visual Studio 2008 to open.

It's *extremely* annoying. I know I don't have to close the server if the code has changed, but sometimes I simply want to restart my website in debug mode (there is a cache on most web service calls, so this clears the cache). A workaround is to add "foo" code to a class and restart the project. 

I'm running Visual Studio 2010 Professional on Windows Server 2008. I'm running the Visual Studio Power Tools too, with the latest update.

Thanks for any help about this.

How to start or restart share point server 2010



Good evenning all,

i want to ask you that how to start or restart share point server 2010 that is already installed

on my machine. Explain step by step.

I need to start it.


Problem with Reporting Services -- Report Hangs sometimes, need to restart server



We are having an application in which we generate several kinds of reports. We have one report- person addresses, through which we generate the report for all the people whom we have to deliver the cards. This is one of our most frequently used reports.

Some time back, we started getting problems of reports hanging on blank white page and nothing comes up. We restarted the server and everything wents fine. After some more days, the problem occurs again and again we restarted the server.

From that time the problem is coming up again and again and everytime we needs to restart server to make it work. But we cant do that every time ..Can anyone please suggest what may be causing it?

Database server: sql 2000

reporting services : Microsoft SQL Server Reporting Services Version 8.00.1062.00

operating system on which report is running: Microsoft Windows NT 5.2.3790.0

Application is build in .Net 2003

Sometimes the problem comes in 2 weeks, and sometimes it comes twice in a week.

Replication: Server restart vs service restart


Replication does not break when i restart the SS Agent, however, when there is a server restart, i get a message : The process was successfully stopped. and the Subscription Status is NOT RUNNING? Why does this happen? Does Tx replication not automatically sync after a server restart?

Restart SQL Server Agent on Distributor

Can we Restart  SQL Server Agent on Distributor during the transactional replication?
Will the replication pick it up once the SQL Servernt agent service is brought up?

Constant 'server restart pending' whenever I try to install Sharepoint Server 2010 Beta


I've installed all the prerequisites just fine, but every time I run the main installation program it tells me:

"Setup is unable to proceed due to the following error(s):

A system restart from a previous installation or update is pending. Restart your computer and run setup to continue."

After restarting, and doing nothing else, I run the setup again to get the same result.  There are no pending restarts, Server Manager itself normally complains if there is a restart pending, so I don't know where it is getting this from.

THe next thing I will try is to give it a little more RAM in case it makes a difference; the virtual machine currently has 4GB overall and has a few other minor roles as well.  But it would make sense for the installation program to say that instead of telling me it's a reboot.


Dev Lunsford

Restart SQL Server from a client using SMO


This is what I am trying to do:

From my client box (Windows 7 32bit) I want to run a program that I am writing that will go to my server box(Windows 2008 R2 64bit) and restart SQL Server(2008 R2).

Here is a snippet of the code I am using:

    using Wmi = Microsoft.SqlServer.Management.Smo.Wmi;

    . . .

    Wmi.ManagedComputer mc = new Wmi.ManagedComputer("MyServer", @"MyDomain\MyUserId", "MyPassword");
    foreach (Wmi.Service srvc in mc.Services)
        Console.WriteLine("  " + srvc.Name);
    Wmi.Service srv = mc.Services[@"MSSQL$SQL2008"];
    startWait = DateTime.Now;
    while (srv.ServiceState != Wmi.ServiceState.Stopped)
        if (DateTime.Now - startWait > new TimeSpan(0, 0, 30))
            throw new Exception("Sql Server Shutdown Timed out");

Restart the server that has been configured for subscriber in a transactional replication


Whats the impact on restarting the server that has been configured for subscriber in a transactional replication.

The distributor and the publisher have been set on different servers.

Submitting ASPX form does not work until i restart the server


I have a ASPX form that when submitted does an update to a table on MS SQL Server.  This works fine 99% of the time.  Sometimes it times out and I cannot submit that form from that computer until I restart the server.  I can go to other forms and submit which does pretty much the same thing but updates other tables.  When I go back to the trouble form and try again it still times out.  I then remoted to another location to try from there and it worked fine with exactly the same data.  Came back to problem computer/form and still no go.  I tried another browser on the same computer and no go there as well.  I also tried updating another record in the same table and still got the problem.

So it seems that once the problem starts, it seems to lock any updates from just that computer and to that table.  Weird!!!

I have tried recycling the Application Pool, restarting IIS, SQL Server and the Firewall (both server and local) but the only way to fix it is to restart the server.

Your help would be very much appreciated.




call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.
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