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

Top 5 Contributors of the Month
Post New Web Links

Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint


What we want to achieve: install/deploy a custom site template ONCE so it becomes available to all site colls in several we apps. 

We have
1) modified a web site based on a Team Site template
2) saved the web site as a template (template is available in (site coll?) solution gallery)
3) saved the site template as a file
4) added the site template to the farm solution store using add-SPSolution

When we try to deploy the solution to a web app using Install-SPSolution we get the following error message:

"Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particul
ar Web application."

Obviously we are missing something here.

Is the ONLY way to add/install the solution at the site coll level?

View Complete Post

More Related Resource Links

How to detect and avoid memory and resources leaks in .NET application

Despite what a lot of people believe, it's easy to introduce memory and resources leaks in .NET applications. The Garbage Collector, or GC for close friends, is not a magician who would completely relieve you from taking care of your memory and resources consumption.

I'll explain in this article why memory leaks exist in .NET and how to avoid them. Don't worry, I won't focus here on the inner workings of the garbage collector and other advanced characteristics of memory and resources management in .NET.

SqlServer - Windows Account to install Application from Gallery


Referring to this tutorial: http://www.asp.net/webmatrix/tutorials/download-and-install-an-asp-net-application

I selected umbraco cms and got this wizard:

I already have Standard Sql Server 2005 on my machine which I wanted to us for above DB and not SqlExpress.

I did not remember "sa" account pwd nor I use explicitly any account to connect to my Sqlserver. I use Windows Authentication account i.e implicit authentication. So I created new account and gave all rights and used it in the above wizard and was able to install the database after some struggle.

My question is: What if I want to use my Windows Account to install the database above? Why the wizard don't have any option to use Windows Integrated Authentication?

Note: I can create the DB with external user I created, just looking specifics for using Windows Authentication for above installation.

Install of wsp solution for visual web part ... how?

I have a newbie question -  I created a visual web part project that has a visual web part and an application page. It works well and deploys without issues on my all inclusive local environment using the deploy feature from VS2010. So to deploy this to the live server, I grabbed the .wsp file from the bin folder. Copied the file to the server and ran the following commands -   add-spsolution D:\MyWspFile.wsp Install-SPSolution -Identity "mywspfile.wsp" -WebApplication http://sp2010 -GACDeployment Both these steps work fine too. Then I go into the site features page to look for this solution but its name is not there (should it be there?). Next I go to the page I want to add this visual web part to but it does not show up in the list of web parts. The Timer job page in central administration shows the deployment as succeeded. What am I missing here? Thanks in advance, Jake.  

.Net Framework 4.0 install failure & (possible) solution?

I repeatedly got the following error messages when attempting to install .Net Framework 4.0 on Windows 7 Professional x64:Log Name:      SetupSource:        Microsoft-Windows-WUSAEvent ID:      3Task Category: NoneLevel:         ErrorKeywords: Description:Windows update  could not be installed because of error 2359302 "" (Command line: "wusa.exe "C:\79021cf737df094c5735\Windows6.1-KB958488-v6001-x64.msu" /quiet /norestart")This error was listed in the msi install log:Product: Microsoft .NET Framework 4 Client Profile -- Error 1719. The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed.I was able to get the framework installed by going into the MSIServer registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MSIServer) and changing WOW64 from 1 to 0.  I haven't been able to locate any good documentation for this value & its purpose, is this an acceptable way of getting this installed, and will it cause any problems in the future?  Should I change the value back to 1?  I have other machines with Windows 7 x64 Ultimate installed that did not have any problems with the 4.0 framework installation.

SQL server 2008R2 install on a server 2008 R2 failover cluster. Other resources won't failover to o

As the subject says, I've built a fresh install w2k8r2 and sql2k8r2 failover cluster. Sql works fine on the primary node, but when I test a failover it breaks. Specifically, if I were to stop the node1 cluster service (causing the cluster to switch to node2), windows changes the cluster DNS appropriatly and moves the shared storage just fine, but sql server doesn't failover.  Server Name, Disk Drives and Other Resources all go offline. I've verified that the advanced policies of the server name, IP, cluster drives all have both nodes checked as possible owners However, Other resources only lists node1 as a possible owner and there appears to be no way to add node2.  Under the Other resources, SQL Server and SQL Server Agent are listed. I'm sorta stumped, I've been combing the forums and have found similar issues, but nothing seems to explain why the two resources won't failover.

How to make the application install 1 time only



I have a need to create an applicaiton that can be installed 1 time only be a user. The user may or may not be and administrator.

How can I do this (without registry alteration if possible)?

Thanks much.


How to make the windows forms application install only 1 time and be used only 1 time only



I have a need to create an applicaiton that can be installed 1 time only be a user. The application can also be used only 1 time. (on a given PC)

The user may or may not be and administrator.

How can I do this (without registry alteration if possible)?

Thanks much.


Deployment of ASP.NET MVC 2 Solution to IIS 7 resources are not mapped correctly


Hey guys

So I've been doing a nice MVC 2 app for ASP.NET. When running it on the ASP.NET Dev Server everything is going great. No problems

But when I publish it to my local wwwroot and convert it to an application in the IIS7, resources such as images and my references to the jQuery library are not done correctly. The result is loads of javascript errors and blank icons. So there is something in the setup of the IIS7 that is not done correctly I reckon.

I'm running the website under the default website and under the DefaultAppPool ( .NET 4.0 and Integrated)

I've also set it to copy the Systems.Web.MVC.dll file into the publish as I've seen some recommend.

I shall be noted that when I initially tried to run it from the ISS7 I got an error which had to do with ScriptResourceHandler in the web.config file. Some ppl suggested that I commented that out

		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.

Install an application which is using .net 2.0 SP1 on a computer with windows XP and .net 3.5 client


1) I developed an application using .net 2.0 SP1
2) I need to install on windows XP with .net 3.5 SP1 client

When I tried to install .net 2.0 SP1, this installation failed. Installing .net 3.5 (containing .net 2.0 SP1) is not really an option, because of size (>200 MB) and time.

I would prefer to just install .net 2.0 SP1 - which would be sufficient - but thats not possible. Do you have any recommendation?

Update-SPSolution vs Uninstall, Remove, Add, Install

I just want to confirm that by calling Update-SPSolution with a new .wsp is just the same as calling it in four steps e.g.


or is there something else this method does?
SharePoint Solution Architect, Perth Australia - Microsoft Virtual Technical Specialist - MCTS WSS Dev, WSS Adm, MOSS Dev, MOSS Adm - http://wss.made4the.net/ - Founder of http://www.sharepointdevwiki.com/

.net application install PLEASE HELP.


I have NEVER, NOT ONCE been able to properly install a .net application without problems!

I dont understand this.  Im a network admin with over 15 years in.  I am missing some part of the uunderstanding of WHAT THE ____ .net wants!

Let me give you the current case.

1) Developer sent me a .net application ready to run.

2) On personal LT (Win7 Home Premium 64)

3) Unpacked app to local directory c:\inetpub\wwwroot\apptesting

4) in IIS admin, created new "application" pointed to c:\inetpuv\wwwroot\apptesting

I get errors like

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

I attempted to change the machine.config



How do I "Deploy" or install my Workflow Solution




I have a VS2010 Solution that includes two Window service hosted workflows. My solution uses WCF and MSMQ messages from the first service to pass messages to the second service. I have created setup program before for .NET Windows forms applications - can I do the same for my service-hosted workflows? What about creating the message queue, and the sql database?

I've read a little about AppFabric; is this a better route to go?





unable to open file Obj/debug/application.g.resources


When I started a new WPF Application and build it without modifying anything on it  I am getting an error BC31027

Unable to Open file WPFApplication1/obj/Debug/wpfApplication.g.resources : System Error &H80070002&

When I build an existing application which was working fine it thows the same exception 

But when I start a new windows application and build it , it just works fine

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Complete SQL Solution

SQL Server Solutions: SQL Server 2000/2005 Related Free Snippets.

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
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