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


Top 5 Contributors of the Month
david stephan
Asad Ali
Post New Web Links

VS2008, Virtual Directories and IIS7

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :ASP.Net
 
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


View Complete Post


More Related Resource Links

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...


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

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

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


crystal reports on mvc 2 vs2008

  

hi, i'm a new user of mvc 2, so, i need to use crystal reports on mvc 2, actually, i'm developing on visual studio 2008, but i can´t run my reports. it's posible run my reports???


thank you very much.


web deployment project (WS_deploy) on VS2008

  

I am building a asp.net webservice in VS2008 and the web service compiles and debug fine. The project should be using : Net 3,5

 I have

  1. VS2005 and VS208 installed
  2. .Net 1.1 - 3.5
  3. WebDeploymentSetup for VS2008 (and most likely a version for VS2005 as well)

But when I add a web deployment project the fun stops. The .WS_deploy project will not compile and I cannot find any precompiled output.

--------------debug output-------------------

------ Build started: Project: **************.DAL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target CoreResGen:
    No resources are out of date with respect to their source files. Skipping resource generation.
Target CopyFilesToOutputDirectory:
    **************.DAL -> C:\Development\VS2008\**************\**************.DAL\bin\Debug\**************.DAL.dll

Build succeeded.

Time Elapsed 00:00:00.14
------ Build started: Project: **************.BLL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target ResolveProjectReferences:
Target CoreResGen:
    No resources are out of

Extreme ASP.NET: Search Engine Optimization with ASP.NET 4.0, Visual Studio 2010 and IIS7

  

In this article, the author takes a look at SEO practices that the reader can apply when using the latest Microsoft Web technologies.

Scott Allen

MSDN Magazine September 2009


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