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

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

deploy web-site with different version on IIS

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :ASP.Net
Hi,I have source-version of project and i need to deploy it on IIS. General project it properly deploy using VS2008, but issue is, if new revisionis created then i need to point new source to deploy web-site. In this case i need to remove created virtual dir for previous version.Is this possible to toggle virtual directory between two sources.I think one solution is to change virtual directory path to new one. Any other solution.Thanks,Nik

View Complete Post

More Related Resource Links

How to deploy dashboards made in dashboard designer to diferent site collections?

Hi I just migrated from sharepoint 2007 to 2010. We used to have performance point dashboards spread across libraries in subsites all across our primary site collection "Http://server:x" after I migrated I understand that I must migrate all performance point content to a new site or site collection made with the business intellingence template. I created a new site collection with this template (Http://server:x/sites/pps) and succesfully migrated all performance point content. Now I want to redeploy all the dashboards to their respective subsites in the  "Http://server:x" site collection so that everything looks exactly as it did when we where using SharePoint 2007. But when I try to deploy to a site I only get the option to deploy it to the ("Http://server:x/sites/pps") site collection and its respective libraries. I wish to manage all dashboard content centralized in (Http://server:x/sites/pps) but I want to deploy dashboards to libraries across  "Http://server:x" is this posible or how is Performance Point services supossed to work?   I also having trouble with DashBoard designer. I have everthing running on a Virtual Machine test enviroment. With windows server 2008 r2, 4 gb ram. Everything installed in one machine. And Suddently DashBoard Designer Crashes In the event log I get the error Dashboa

Can I deploy a custom site page from the VS2010 SharePoint project?

Hi We're setting up some demos of our sharepoint plugins and want to easily deploy these into sharepoint so that all members of the company can easily get the demos running on their own machines. This is fine for layouts, web parts and so on - but the demo also has a customised sharepoint home page (which I edited in SP Designer) - how do I make this edited home page part of the VS2010 project so that it can be deployed easily to any site collection?   Thanks  

Target a Specific Site/Web using Deploy in VS 2010 IDE

If using a SharePoint Project's context menu option of "Deploy", is there a way to specify a target (given the scope of the Feature, etc.)? Thanks.

.XBAP site cannot be displayed - Faulting application PresentationHost.exe, version 3.0.6920.1427

Hi all Firstly let me start by saying I am not a developer/.net/xbap or any other type of programmer so please excuse my ignorance to anything related. I have an application installed on a w2k3 std 32bit SP2 server with terminal services and Citrix Presentation Server 4.5. This applicaiton accesses the vendors website over the internet through a .xbap page. When accessing this .xbap approximately half the users get "Internet Explorer Cannot Display This Webpage" while the other half have no issue at all. The version of IE is v7.0.5730.13. When IE returns "Internet Explorer Cannot Display This Webpage" the following error is logged in the application log: Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date:  9/10/2010 Time:  11:28:27 AM User:  N/A Computer: <server> Description: Faulting application PresentationHost.exe, version 3.0.6920.1427, faulting module kernel32.dll, version 5.2.3790.3959, fault address 0x0000bee7. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 70 70 6c 69 63 61 74   Applicat 0008: 69 6f 6e 20 46 61 69 6c   ion Fail 0010: 75 72 65 20 20 50 72 65   ure  Pre 0018: 73 65 6e 74 61 74 69 6f   sentatio 0020: 6e 48 6f 73 74 2e 65

Creating a mobile version of a MOSS 2007 site?

Hi, We've created a MOSS 2007 WCM public site for one of our clients.  Now, they want a mobile version of the site where they can custom what shows up on mobile devices; the content will be different (no images, Flash; some text may be changed; some web parts may not show, etc.)  What's the best approach?  I know about using "/m" to redirect to mbllists.aspx and I've read about how it uses rendering templates, but I can't find anything about controlling what content actually gets displayed.  Oh, and we have both English and Spanish versions of our site (.../en-US/pages/... and .../es-MX/pages/...) Thanks for any suggestions.  - Ed.

version dependency while backup restore of SharePoint 2007 Site Collections


hi all

I am aware of a version dependency on the stsadm -o backup/restore operation.

But will the same dependency exist for a content DB backup restore..

i.e. for example will we able to restore a content DB backup taken from a server with version say to a server with say assuming that the versions of SQL is the same in both cases.

Will the version difference in SQL create issues

Thanks in advance




My Site Issue: "The evaluation version of Microsoft Office SharePoint Server 2007 for this server ha


Hi Guys,

when i opened my site am getting following error, but moss 2007 server is Licensed Verison.


Thanks  Advanced.



Deploy to site collection root



I want to override the existing default.aspx in a blog site collection out of visual studio. How can I achiev that?

I tried several Module configs but none of them worke, becaus a list is required..


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Files" Url="

Create Custom Site Template & Deploy as Farm Solution


So I've seen a few posts and blogs about this, but nothing with the specific error I'm getting.  All I'm trying to do is create a custom site template from an existing site (now WSP), and make that custom template available in CA so I can create host-named site collections from that template in PowerShell.  Apparenly this was a lot easier in 2007, as you could just save your template as STP, and run some stsadm addsolution to get it in the farm.  With 2010, I've read there are 2 options:

  1. Install-SPWebTemplate
  2. Deploy via Visual Studio 2010

I've tried running Install-SPWebTemplate (which only takes CAB files), and NOTHING I do works.  I've created a cab from the WSP with makecab, I've renamed the WSP to CAB, and all I get is "cannot find or parse web template file".  So on to VS2010.

Using this article as a guide (http://msdn.microsoft.com/en-us/library/ff408263.aspx), I created a new 2010 Import existing solution project, left all items selected, and the import was successful.  I made a change or two to the ONET.xml to fix some things, and then I just try to deploy it to the farm.  Whether I set the URL to the root intranet site, or the CA URL, I get deployment conflict errors:

"The URL or

Can't deploy SharePoint solution even after changing Site Url property



I've developed a SharePoint 2010 solution in VS2010 and i've also deployed it on my site collection - everything works perfect, fine!

But when I try to deploy the same solution in another site collection (on local server not remote) by changing Site Url property of the solution to my new site collection, VS is not deploying the solution. I'm getting the following error:


Error 102 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://newsiteurl/. Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.


I've packaged the solution and deployed it manually, it's working fine but i don't understand why i'm not able to deploy the solution on a different site collection on the same machine??

Does anyone else has experienced the same issue? 



Thanks & Regards,


deploy test site collection to production

I have developed sp2010 site collection at my  end and want to deploy to the client at different geo location. this site collection have bunch of sites, features and custom webparts. please let me know, the best of doing this! thanks.

Deploy Site from Template

I have a template site that I have created with Sharepoint designer. I have created a template that is available in the solutions gallery and try to create a site from the template and the system errors out. I would like to upload my template to you test. Error message has an id in it which I can get if I need to. The error states that an error has occurred I click ok and go back to the create a site page.

site member group can only open read-only version of the document


Hi there,

According to this video:
more than 1 person can open a word document and edit it at the same time.

When I test it, it doesn't work.
I can open it fine but my colleague can only open a read-only version.
We're both using Office 2010.
I found out that I'm part of OWNER group, while the other guy is just a MEMBER group.

I've checked the permission for MEMBER, it has "contribute" permission, which allow him to edit document library:
<label for="idspnidEditListItems">Edit Items  -  Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries. </label>

If I add him to OWNER group, he can work on it like the one on the video (link above).
Or, I can add individual user and assign DESIGNER role to it.

My question is: why he has to be in the OWNER group (or DESIGNER role)?
since we have many people working on the document but only 1 person to be included in the OWNER group, it's not a good idea to add everyone to OWNER

Cannot deploy custom MemshipProvider/RoleProvider assembly to web-site


I have written an assembly (DLL) containing two classes, MyMembershipProvider and MyRoleProvider, which are derived from MembershipProvider and RoleProvider, respectively.  I have implemented most but not all of the abstract methods; the remaining ones all throw a NotImplementedException.  I have signed the assembly and added a reference to it in my web-site project, where the relevant web.config sections look like this:

<membership defaultProvider="MyMembershipProvider">
    <add name="MyMembershipProvider" type="MyAuthentication.MyMembershipProvider"/>


<roleManager enabled="true" defaultProvider="MyRoleProvider">
    <add name="MyRoleProvider" type="MyAuthentication.MyRoleProvider"/>

When I fire up the site, however, I get the following error:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error detail

How to deploy a sub-site


I want to have a subste within my main site.  I already configured IIS to add the folder and convert to an application in IIS.

How in Visual Studio is the best way to deploy?  What I have been doing is creating a separate web application and then doing a file system deploy to the sub-folder on the target server.

This stinks a little because none of the paths work.

I.e., /images/ on the subsite is really /mainsite/images/ and such.

The biggest pain seems to be relative paths.

Is there a way to add the subsite to the main web project and still treat as a site (permissions, debugging, etc.)?




How to Deploy MOSS Site Collection using backup/restore with DB attach

Can anyone give pointers on Deploying Moss Sites from Development Environment to Production Envirnment Using backup/restore with DB attach?? TIA
Thanks, Devi Prasad M

How to Save a site template to farm and deploy it to new site


Hi all,

When I create a new site and plan to save it as template to create multiple new sites.

Different from MOSS 2007, I cannot find the Save Site as Template option under System Settings. What I did is to type savetmpl.aspx website and save the template.

After that, I tried to use stsadm.exe -o addtemplate command to add the template to farm, but I got another error again!

Cannot find or parse web template file c:\Templates\template.wsp.

I googled a lot websites but only found one related solution to to use stsadm.exe -o addsolution command. But after trying that, I still cannot  see the template when I create new site collection via Sharepoint Central Administration.

Can anyone please help me and let me know how to fix the issue?




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