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


Post New Web Links

Deleted Virtual Directories from wwwroot

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
 

Hi,

I created a site maunually in IIS and then deleted it from IIS but accidently deleted all the virtual directories present there of Central Admin and Project Server. Everything else is as it should be, all DBs n everything is fine.

I have the full farm backup from the last night. So is it possible that the virtual directories and all the config files in the wwwroot folder could be restored from the Full Farm backup.

Kindly note that Central admin is not accessible as webpages have been deleted but I can use power shell. I have some solutions in mind but need some expert advice on them. Please help:

Solution 1:

We also have a full system backup of about a month old.

1) Restore the backup on a separate system

2) Only copy the Central Admin virtual directory from there

3) Restore the farm backup

would there be any versioning problems as the files would be older than a month or more?

Solution 2:

Restore the farm backup from Power Shell, but I have no idea if it would restore all the websites and virtual directories such as web.config files etc.

Solution 3:

1) Run the initial Farm configuration wizard.

2) Once Central Admin is restored, run full farm restore

In this case it would also mess with the DB which is fully intact


View Complete Post


More Related Resource Links

Deleted Virtual Directories from wwwroot

  

Hi,

I created a site maunually in IIS and then deleted it from IIS but accidently deleted all the virtual directories present there of Central Admin and Project Server. Everything else is as it should be, all DBs n everything is fine.

I have the full farm backup from the last night. So is it possible that the virtual directories and all the config files in the wwwroot folder could be restored from the Full Farm backup.

Kindly note that Central admin is not accessible as webpages have been deleted but I can use power shell. I have some solutions in mind but need some expert advice on them. Please help:

Solution 1:

We also have a full system backup of about a month old.

1) Restore the backup on a separate system

2) Only copy the Central Admin virtual directory from there

3) Restore the farm backup

would there be any versioning problems as the files would be older than a month or more?

Solution 2:

Restore the farm backup from Power Shell, but I have no idea if it would restore all the websites and virtual directories such as web.config files etc.

Solution 3:

1) Run the initial Farm configuration wizard.

2) Once Central Admin is restored, run full farm restore

In this case it would also mess with the DB which is fully intact

VS2008, Virtual Directories and IIS7

  
I did have this working but now something has stopped it (after trying to integrate combres)My dev machine is win 7x64, running VS2008. I have a solution with number projects (mostly libraries), one was a webapplication. This webapplication used http://127.0.0.1/ to debug through. That site was configured to point to the home directory of that web application.It was set up this way because i was URL Rewriting and that was the only way i could get it workingHowever now whenever i start up visual studio it complains that the local IIS has not been configured, would you like to create the virtual directory. If i say no then the project is not loaded, if i say yes then the process fails with could not find the server http://127.0.0.1 on the local machine. Creating a virtual directory is only supporting on the local IIS server.I can edit the XML of the project file to turn off Use IIS in which case i can load the project but the site doesn't work through the integrated visual studio server.I've tried removing the website in IIS7 and removing the AppPool and rebuilding but no go.Can anyone offer me advice or pointers on how to get this solved?many thankspaul

Activator.CreateInstance, Views and Virtual Directories

  

Hi,

I have a problem with views not being found. Let me describe my setup. In my main mvc site, I load an external assembly using Activator.CreateInstance. I also have a virutal directory at /Views/CustomViews. In my main mvc site, I tell the external assembly to render itself, the path of the view it uses is such "~/Views/CustomViews/Index.aspx", however it is not found! If I switch it to use a view that is a physical file like "~/Views/PhysicalView.aspx", then it works.

I thought it was that mvc can't use virutal directories to find views, however I set up a test site where I reference a path to a view in a virutal directory BUT from assembly initialized from a referenced project and not activated dynamically and it works.

Could this be a security permission or some kind of app path of the loaded assembly that it can't find the virutal directory? Anybody have similar issues or something like this? Any help is appreciated...


Passing the values from the Deleted virtual table to another Stored Procedure

  

Hello,

I am wondering if something can be done.  I have a large database that I would like to implement change tracking on selected tables.  We've come up with a way to do it the least painful way we can, but I do not know if it will work.

I've created a trigger that will pass the table name to a stored procedure.  That stored procedure creates a Tracking table by appending the suffix 'Changes' to the past in table name.  But now how do I get the data from the Deleted table?

I can't do a SELECT INTO or INSERT INTO because the tables have timestamp fields and blobs.  I don't care if I do net get the data from those fields but I don't want to have to enter all the field names besides those two types.  I can make a stored procedure get the column names and types from a system table and dynamically build the SQL.  But I would prefer to do that in one place instead of each trigger.

Basically the problem is how do I get the data from the Deleted table to another stored procedure without explicitly naming all \the fields in the trigger.

If you don't understand what I mean then please ask, I will clarify with examples.

Thanks

JM


Virtual Path Problem

  

 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-

 

Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"



        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Difference Btw Website vs Web application and Virtual directory in IIS 7

  

May i know what is the Differenc that they actually make in IIS7 .

Please tell me at a low level as i am still a novice in Asp.Net

 

Thanks in Advance.

Balaji


JQGrid Loading deleted values

  

Hi,

This is quite strange. here is the issue:

Some Info:

1. I'm using a multi-select jqgrid.

2. I have my own delete button to delete multiple orders

The problem:

When i press the delete button on the pager of my jqgrid, the records are deleted from the database but JqGrid shows some records (4-5). On refreshing the grid, correct numbers of records are shown.


Here is the code:


function delorder() {
        var amg = $("#horder").getGridParam('selarrrow');
        var cont = amg.length;
        if (amg.length > 0) {

ASP.Net account deleted. How to create it again?

  

 Hi I have created an intranet application using ASP.Net/IIS.

I normally need to web share the folder and allow full permission to ASP.Net user account.

However, I carelessly deleted this account. How to create it again ?

Pls help.... thanks.

 


Windows With C++: The Virtual Disk API In Windows 7

  

This month we look inside the Windows 7 beta to examine the Virtual Disk API and the Microsoft Virtual Hard Disk (VHD) format.

Kenny Kerr

MSDN Magazine April 2009


Test Run: Configuration Testing With Virtual Server, Part 2

  

Because Virtual Server is built upon a set of COM modules, you can automate the creation and testing of virtual machines. Here we use Windows PowerShell to run the tests.

Dr. James McCaffrey and Paul Despe

MSDN Magazine December 2008


Test Run: Configuration Testing With Virtual Server, Part 1

  

This time James McCaffrey sets up a virtual environment to use for configuration testing to introduce you to software configuration testing with Microsoft Virtual Server

Dr. James McCaffrey

MSDN Magazine September 2008


Earthly Delights: Code Your Applications To Deliver The World With Virtual Earth APIs

  

In this article, Chandu Thota highlights some of the most salient features of the Virtual Earth APIs and shows you how to build your own powerful mapping and local search applications using them.

Chandu Thota

MSDN Magazine September 2006


{ End Bracket }: Microsoft Java Virtual Machine Update

  

In a settlement agreement reached in January 2001 to resolve a dispute over the Microsoft distribution of its Java implementation, Sun Microsystems and Microsoft agreed to limit the duration of the time Microsoft would use Sun's source code and compatibility test suites to support the Microsoft® Java Virtual Machine (MSJVM).

Brian Keller

MSDN Magazine October 2004


Virtual Server 2005: Program Customized Testing Environments Without Trashing Your Machine

  

Efficient testing can require many different machine and server configurations but the effort needed to manage these test environments can take a toll. Microsoft Virtual Server 2005 simplifies the provisioning and management of testing environments. This article demonstrates how the extensive Virtual Server COM API can be used to create an automated application testing environment to make your testing chores a whole lot easier.

Ben Waldron

MSDN Magazine August 2004


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