Error_42_Error occurred in deployment step 'Activate Features': Field type MyCustomField is not installed properly. Go to the list settings page to delete this field.
Has anyone encountered this error.
I am developing on SP 2010 with VS 2010.
I was following an online tutorial: How to use custom form templates in NewForm.aspx/EditForm.aspx located at:
http://sharepointbox.blogspot.co.at/2010/11/how-to-use-custom-form-templates-in.html
The tutorial was a little lacking on some of the direction, but it included the working source code, and I managed to complete it.
Every time I try to deploy my version I get the error: Error 42 Error occurred in deployment step 'Activate Features': Field type MyCustomField is not installed properly. Go to the list settings page to delete this field.
I have gone through my code line by line and matched it to the working code from the tutorial, so I can only assume that I am missing something in the Procedure to properly deploy.
Any help is greatly Appreciated!
It seems that something went wrong with your custom field type installation. Check below line in .xml file of your custom field type and correct it if needed.
<Field Name="FieldTypeClass">DocumentFieldType.DocumentFieldTypeClassName, DocumentFieldType, Version=1.0.0.0, Culture=neutral, PublicKeyToken=379382f3e8928835</Field>
Please recheck respective values of namespace.classname , dllname. and publickeytoken in your code
Thanks. Please mark it as an answer if it helps.
Similar Messages
-
We have a publishing website in SharePoint 2010. There are total 4 environments - Development, Test, Stage and Production. For some enhancements, we had to create some new lists and libraries. When we moved changes from Development to Test environment, everything
worked fine. Relevant lists and libraries in lower environments were saved as templates (in .stp format) including content, imported to higher environment, lists/libraries were created in higher environment using imported templates.
Things worked fine from Development to Test. We did similar exercise from Test to Stage environment. Now in Stage, when we access some pages, we get error message - "One or more field types are not installed
properly. Go to the list settings page to delete these fields.". ULS logs don't tell which exact list has got problems.
On searching for this error, I got many articles that explain how this could happen when we migrate from SharePoint 2007 (MOSS) to 2010. Though our case different (as all our environments are in 2010), we still tried following steps.
De-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature
Go to https://site-name/relationships%20list/allitems.aspx. This is a hidden list. Delete this list.
Re-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature.
Make sure that new hidden list with one item is created at https://site-name/relationships%20list/allitems.aspx
However, this didn't help as we are still getting same error message. Appreciate if someone can suggest how this issue can be resolved.
Following are ULS logs:
Unable to execute query: Error 0x81020014
One or more field types are not installed properly. Go to the list settings page to delete these fields.
System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback
pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
Thanks!Hi Shrishail ,
Some time this issue occurs if you have any custom filed types in the list or library and that field type is not installed on server .
Can you please check that if you are having any custom field types column on the list and library and if that is the case you need to install that field type on the server. sometimes it happens if field types are not properly deployed / Installed then
you have to uninstall that field types (retract solution) and deploy it again.
Thanks,
Ujjwal -
Hi Team,
I have created Administrator -approved Infopath form template to my site and activated same template in CA.
I have used this template in one of my Form library and i can able to submit the Form with success to the library.
when i click "View Item" or "Edit Item" of the form it throws , "One or more field types are not installed properly. Go to the list settings page to delete these fields." error message.
I have refered my log files also but there is no useful information in that, please find my logs for your reference.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Logging Correlation Data
xmnv
Medium
Site=/sites/Prototypes
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Monitoring
b4ly
High
Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=8.51588679566816
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8kh7
High
One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8sl1
High
DelegateControl: Exception thrown while adding control 'ASP._controltemplates_publishingconsole_ascx': One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
General
8kh7
High
One or more field types are not installed properly. Go to the list settings page to delete these fields.
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Runtime
tkau
Unexpected
System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEA...
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Runtime
tkau
Unexpected
...RRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
w3wp.exe (0x2D7C)
0x3790
SharePoint Foundation
Monitoring
b4ly
Medium
Leaving Monitored Scope (Request (GET:http://test-sharepoint:80/sites/Prototypes/TRT/TRTLibrary/Forms/EditForm.aspx?ID=47&Source=http%3A%2F%2Ftest%2Dsharepoint%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary%2FForms%2FAllItems%2Easpx&RootFolder=%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary&ContentTypeId=0x01010100E7EE25E5A6898C4587A6B52C808EF03300FD54861D587A7E43BA3E2E6D392A3526&IsDlg=1)).
Execution Time=32.443369199158
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
8jg2
Medium
ResourceManager.PerformCleanup: Disk Manager: CurrentSize=0.
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
5pbr
Medium
ResourceManager.EvictUnusedItems: Disk Manager: Going to evict unused items. CurrentSize: 0.
w3wp.exe (0x08E4)
0x2C58
Access Services
Data Layer
5pbs
Medium
ResourceManager.EvictUnusedItems: Disk Manager: After unused items eviction. CurrentSize: 0
Diff:0.
w3wp.exe (0x2D7C)
0x0774
SharePoint Foundation
Topology
e5mc
Medium
WcfSendRequest: RemoteAddress: 'http://test-sharepoint:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
w3wp.exe (0x08E4)
0x2E24
SharePoint Foundation
Topology
e5mb
Medium
WcfReceiveRequest: LocalAddress: 'http://test-sharepoint.anca.com.au:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
JeevaHello,
Is there any other content type on library or check if there is any duplicate column? Could you please also show us your library columns detail? (pic is also fine of lib settings page)
If you have any ""Property Promotion" column then SP create those columns as site column and associate them with this template so check "Allow management of content types" for that form library as well.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Hi ,
I am working in sharepoint 2013, This is a custom timer timer Execute method where i am moving a document item from one library to other once its expired,it was running fine and suddenly giving following error:-
One or more field types are not installed properly. Go to the list settings page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>
StackTrace = " at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\r\n at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName,
String bstrViewName, String bstrView...
I have filled all the meta data(site column) for the item but still same error, Please help me out as i have no clue why it is giving this error
public override void Execute(Guid targetInstanceId)
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(sourceUrl))
using (SPWeb web = site.OpenWeb())
//gets the document lib
SPList listFrom = web.Lists[sourceList];
//gets the expired documents items
SPQuery query = new SPQuery();
query.ViewFields = "<FieldRef Name='Expiration_x0020_Date'/>";
query.Query = @"<Where><Leq><FieldRef Name='Expiration_x0020_Date'/><Value Type='DateTime' ><Today /></Value></Leq></Where>";
SPListItemCollection items = listFrom.GetItems(query);
//if expired items found
if (items.Count > 0)
SPFile oFile = null;
foreach (SPListItem item in items)
string strfile = item.File.Name;
oFile = web.GetFile(sourceList + "/" + strfile);
//oFile.CopyTo("Archive/" + strfile);
oFile.MoveTo(destinationList + "/" + strfile);Hi,
I think the issue is related to the internal name of the Expiration Day.
In the caml query code lines, we should use the right internal field name to retrieve and filter the list items.
To avoid such mistake, we can use the CAML Designer tool to generate the caml query code.
We can download the tool here: http://www.camldesigner.com/?p=594
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
I have a site collection which I am moving from a SharePoint 2013 enterprise server to a SharePoint 2013 foundation server. This all seems fine apart from when I try and access the Site columns page (from Site settings) or when I save a Site as a template
- both times I get the error: Field type TaxonomyFieldTypeMulti is not installed properly
If I look in the SharePoint logs I get the following:
Unable to locate the xml-definition for FieldName with FieldId '249a1c1a-5a3e-4173-abad-779b01892510
Any ideas?
Many Thanks,
JennyI have re-done the migration from Enterprise to Foundation and now get the following error:
Field type RatingCount is not installed properly. Go to the list settings page to delete this field.
However I cannot go to the Site columns page as I get this error so don't see where I can delete this from? Previously I had to delete this field manually from each of the Blog sites but this time there don't
appear to be these fields to delete - I presume because I disabled all the features relating to this premigration?
Any ideas?
Many thanks in advance,
Jenny -
I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="SharePointProject1 Feature1" ActivateOnDefault="FALSE" AlwaysForceInstall="TRUE" Id="8f7163d5-6c65-40d8-9045-8f74192f07d7" ReceiverAssembly="SharePointProject1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9c2f0c3a8e22f6a0" ReceiverClass="SharePointProject1.Features.Feature1.Feature1EventReceiver" Scope="Site">
<ElementManifests>
<ElementManifest Location="VisualWebPart1\Elements.xml" />
<ElementFile Location="VisualWebPart1\VisualWebPart1.webpart" />
</ElementManifests>
</Feature>
This is my Feature1EventReceiver code.
SPWeb spWeb = properties.Feature.Parent as SPWeb;
SPList laptopList = spWeb.Lists["Laptops"];
if (laptopList != null)
laptopList.Delete();
SPListCollection lists = spWeb.Lists;
lists.Add("Laptops", "The Laptops", SPListTemplateType.GenericList);
laptopList = spWeb.Lists["Laptops"];
laptopList.Fields.Add("Name", SPFieldType.Text, true);
laptopList.Fields.Add("Model", SPFieldType.Text, true);
laptopList.Fields.Add("Image", SPFieldType.URL, false);
I can deploy if I have only below code
SPWeb spWeb = properties.Feature.Parent as SPWeb;hi
features containing webparts must be site scoped, so you must get spweb as bellow:
SPSite spSite = properties.Feature.Parent as SPSite;
SPWeb spWeb = spSite.RootWeb;
yaşamak bir eylemdir -
Error 1 Error occurred in deployment step 'Activate Features': A timeout has occurred while invoking commands in SharePoint host process.
0 0 myProjectAssetsLists
am getting the above error when i deploy my farm solution which is actually a "farm solution import package" template.
i am deploying this to a new site collection and once its features are activated this will provision few doc libs and splists in the targeted site.
any help is appreciated.try below link:
http://msdn.microsoft.com/en-us/library/ee471440.aspx
http://sujeetrec.blogspot.in/2013/12/sharepoint-2010-deployment-timing-out.html
Increase the timeout that Visual Studio waits for SharePoint to deploy a feature:
Create: [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools] ChannelOperationTimeout DWORD
The value is a timeout in seconds. The default is 120 (2 minutes).
Full details on this switch and others are here:
http://msdn.microsoft.com/en-us/library/ee471440.aspx -
Error occured in deployment step 'Activate Features': Timeout Expired
Hi all,
Today when I deploy SharePoint 2010 application using visual studio I faced the error.
"Error
18
Error occurred in deployment step 'Activate Features': Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections
were in use and max pool size was reached."
How to solve this
s.vijayone of the possible thing is may be their is SQL connection leak in your code.You can trace it using sql profile...check this post for more details:
http://social.technet.microsoft.com/Forums/en-US/7134eb37-621a-4be1-93b2-0f53ac2d912f/error-occurred-in-deployment-step-add-solution-timeout-expired?forum=sharepointgeneralprevious
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Hi,
I'm unable to deploy a custom workflow/ visual web part or anything using Visual Studio.
Here is the Output trace:
------ Build started: Project: TestWorkflow, Configuration: Debug Any CPU ------
TestWorkflow -> E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.dll
Successfully created package at: E:\Codes\TestWorkflow\TestWorkflow\bin\Debug\TestWorkflow.wsp
------ Deploy started: Project: TestWorkflow, Configuration: Debug Any CPU ------
Active Deployment Configuration: Default
Run Pre-Deployment Command:
Skipping deployment step because a pre-deployment command is not specified.
Recycle IIS Application Pool:
Recycling IIS application pool 'SharePoint - 1111'...
Retract Solution:
Retracting solution 'Testworkflow.wsp'...
Deleting solution 'Testworkflow.wsp'...
Add Solution:
Adding solution 'TestWorkflow.wsp'...
Deploying solution 'TestWorkflow.wsp'...
Activate Features:
Activating feature 'Feature1' ...
Error occurred in deployment step 'Activate Features': Attempted to perform an unauthorized operation.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Points to be noted:
I have opened the visual studio using the System Account and "Run as Administrator".
I checked the User policy for the particular web app and it has Full read and Full control for the System account
I checked SharePoint administration under services and verified the system account credientials.
Can you please help me solving this.
Thanks,
SachinPlease try giving permissions
pen the SharePoint 2010 Central
Administration.
- Go to Application Management
–> Change site collection administrations
- Select the correct site
collection and type your windows account as the secondary site collection administrator.
- Try deploying now, it should work.
or
You can grante permissions in "SITE ACTIONS > SITE PERMISSIONS"
Ref :http://learnsharepointwithme.blogspot.in/2013/04/error-occurred-in-deployment-step.html
Please remember to click 'Mark as Answer' on the answer if it helps you -
I created a SharePoint 2013 farm solution project in Visual Studio 2013 (running on the same machine where SharePoint 2013 server is running) with
event receiver. I added web.config at project root level to store connection string (I'm working off external SQL DB) and got the following error during deployement:
Error 27
Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object.
When I commented out the ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString; the error went away. Am I missing something or not supposed to add my own App.config to SharePoint project solution?Hi,
From your description, you might want to store your connection string in web.config and there is an error during deployment.
It is recommended to store the configuration data of SharePoint solution in either property bags or hierarchical object store.
The links below will provide more information about this:
http://blogs.msdn.com/b/zwsong/archive/2012/03/27/where-should-you-store-your-sharepoint-solution-s-configuration-data.aspx
http://msdn.microsoft.com/en-us/library/ff647766.aspx
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
Error occurred in deployment step 'Activate Features'
I have created an Empty SharePoint Project in Visual Studio 2010 and added a Web Part. The scope for my feature is set to "Site".
My "Active deployment configuration" is set to Default. When I click Deploy in the context menu of the project in Visual Studio i receive this output:
------ Build started: Project: SharePointProject1, Configuration: Debug Any CPU ------
SharePointProject1 -> C:\Users\udjeg\Documents\Visual Studio 2010\Projects\SharePointProject1\SharePointProject1\bin\Debug\SharePointProject1.dll
Successfully created package at: C:\Users\udjeg\Documents\Visual Studio 2010\Projects\SharePointProject1\SharePointProject1\bin\Debug\SharePointProject1.wsp
------ Deploy started: Project: SharePointProject1, Configuration: Debug Any CPU ------
Active Deployment Configuration: Default
Run Pre-Deployment Command:
Skipping deployment step because a pre-deployment command is not specified.
Recycle IIS Application Pool:
Recycling IIS application pool 'SharePoint - 80'...
Retract Solution:
Retracting solution 'sharepointproject1.wsp'...
Deleting solution 'sharepointproject1.wsp'...
Add Solution:
Adding solution 'SharePointProject1.wsp'...
Deploying solution 'SharePointProject1.wsp'...
Activate Features:
Activating feature 'Feature2' ...
Error occurred in deployment step 'Activate Features': Feature with Id '7991a8e8-ead6-4e94-8751-1076c3ed78df' is not installed in this farm, and cannot be added to this scope.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
The error tells me that my feature doesn't exist.
When I open Solution Management in Central Administration, I can see that the solution is added to the solution store:
Name: sharepointproject1.wsp
Type: Core Solution
Contains Web Application Resource: Yes
Contains Global Assembly: Yes
Contains Code Access Security Policy: No
Deployment Server Type: Front-end Web server
Deployment Status: Not Deployed
Deployed To: None
Last Operation Result: The solution was successfully deployed.
Last Operation Details: DKCPH-MOSSDEV2 : http://dkcph-mossdev2/ : The solution was successfully deployed.
Last Operation Time: 6/1/2010 1:58 PM
The strange thing is that Deployment status is "Not Deployed" but Last Operation Result is "The solution was successfully deployed".
When I check Site Collection Features on http://dkcph-mossdev2 the feature is not there.
If I deploy the solution manually through Central Administration the solution is deployed successfully and everything works.
It seems like there is a difference between deploying with visual studio and manually in Central Administration.
Can someone give me a hint on how to make it work in Visual Studio.
egholmRickee that is exactly what I found as well.
I would suggest scripting out your Solution / Feature deployments using PowerShell as Microsoft has said STSADM is going away. As you can see from my thread I had these same headaches -
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/436a6463-77a7-467a-b9fd-422f5d569211
/* Reference Sohel's Blog - http://ranaictiu-technicalblog.blogspot.com/2010/05/sharepoint-2010-deployment-powershell.html
function WaitForJobToFinish([string]$SolutionFileName)
$JobName = "*solution-deployment*$SolutionFileName*"
$job = Get-SPTimerJob | ?{ $_.Name -like $JobName }
if ($job -eq $null)
Write-Host 'Timer job not found'
else
$JobFullName = $job.Name
Write-Host -NoNewLine "Waiting to finish job $JobFullName"
while ((Get-SPTimerJob $JobFullName) -ne $null)
Write-Host -NoNewLine .
Start-Sleep -Seconds 2
Write-Host "Finished waiting for job.."
#Used only if not launching powershell from SharePoint...
Add-PsSnapin Microsoft.SharePoint.PowerShell
$CurrentDir=$args[0]
#WebApplication Address
#$WebAddress = "http://ocibapp0t117v3:26678"
#Solution Name
$solutionName="Wells Fargo.wsp"
#Palth of solution
$SolutionPath="C:\VsProjects\RBDWebPart\RBDWebPart\bin\Debug" + "\"+$solutionName
Write-Host 'Going to disable feature'
Disable-SPFeature -identity WellsFargo_Feature1 -confirm:$false -url http://ocibapp0t117v3:26678 -force
Write-Host 'Going to uninstall feature'
Uninstall-SPFeature -identity WellsFargo_Feature1 -confirm:$false -force
Write-Host 'Going to uninstall solution'
Uninstall-SPSolution -identity $solutionName -confirm:$false
Write-Host 'Waiting for job to finish'
WaitForJobToFinish
Write-Host 'Going to remove solution'
Remove-SPSolution -identity $solutionName -confirm:$false -force
Write-Host 'Going to add solution'
Add-SPSolution $SolutionPath
Write-Host 'Going to install solution to all web applications'
Install-SPSolution -identity $solutionName -GACDeployment -AllWebApplications
#-WebApplication "SharePoint 2010 - Training"
Write-Host 'Waiting for job to finish'
WaitForJobToFinish
Write-Host 'Going to enable Feature'
Enable-SPFeature -identity WellsFargo_Feature1 -confirm:$false -url http://ocibapp0t117v3:26678
Write-Host 'Feature Installed all work complete'
#Uncomment below if you are not using the Powershell snapin from SharePoint.
Remove-PsSnapin Microsoft.SharePoint.PowerShell
#File: Myscript.ps1
Moojjoo MCP, MCTS
MCP Virtual Business Card
http://www.mmebs.com -
Hi,
I have develeoped custom timer job using vs 2010 to deploy in sharepoint server.
While I right click on solution explorer and click on deploy then system throws an error "Error occurred in deployment step 'Activate Features': The type initializer for 'TestTimerJob.TestTimerJob' threw an exception."
Please suggest.
Thanks.
Knowledge is power.Debugger is not firing at all. SO not able t do debugging.
Knowledge is power.
Have you tried to set break point on feature activate? If not then set break point on feature activate and try to debug your code line by line.
See this mSDN article to debug timer job:
http://msdn.microsoft.com/en-us/library/ff798310.aspx
http://www.codeproject.com/Articles/70866/Debugging-Custom-SharePoint-Timer-Jobs
Also make sure that:
1. Once you deploy the time job, you need to reset the IIS
2. restart the window timer service from services.msc
Let us know your result
Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
you see a reply being an answer to the question of the thread, click "Mark As Answer -
I am trying to create a custom timer job and while deploying it getting the error as:
Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.
where am i going wrong?please suggest...
Thanks
Suu30I am not able to get the errors.So attaching the error log files here.Please help
08/21/2012 17:35:03 1 INF Entering function PsconfigUserInterfaceMain.Main
08/21/2012 17:35:03 1 INF Entering function Common.SetCurrentThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Entering function Common.SetThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
08/21/2012 17:35:03 1 INF Leaving function Common.SetThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF The current ui culture English (United States) is NOT right to left
08/21/2012 17:35:03 1 INF Leaving function Common.SetCurrentThreadCultureToInstalledCulture
08/21/2012 17:35:03 1 INF Creating the psconfig application context
08/21/2012 17:35:03 1 INF Entering function PsconfigApplicationContext.PsconfigApplicationContext
08/21/2012 17:35:03 1 INF Entering function UserInterface.UserInterface
08/21/2012 17:35:03 1 INF Leaving function UserInterface.UserInterface
08/21/2012 17:35:03 1 INF Entering function TaskDriver.TaskDriver
08/21/2012 17:35:03 1 INF Entering function TaskDriver.BuildCommandCollection
08/21/2012 17:35:03 1 INF Entering function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Leaving function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Entering function CommandCollection.CommandCollection
08/21/2012 17:35:03 1 INF Leaving function CommandCollection.CommandCollection
08/21/2012 17:35:03 1 INF Entering function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Leaving function CommandCollectionBase.CommandCollectionBase
08/21/2012 17:35:03 1 INF Creating the APPLICATION bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the APPLICATION bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Creating the SINGLESERVER bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the SINGLESERVER bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the V2V_INPLACE_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the V2V_INPLACE_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the CLEAN_INSTALL bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the CLEAN_INSTALL bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the B2B_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the B2B_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the SKU2SKU_UPGRADE bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the SKU2SKU_UPGRADE bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the runningupgrade bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the runningupgrade bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Initialze
08/21/2012 17:35:03 1 INF Leaving function Parameter.Parameter
08/21/2012 17:35:03 1 INF Entering function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Creating the LanguagePackInstalled bool exposed parameter
08/21/2012 17:35:03 1 INF Leaving function BoolExposedParameter.BoolExposedParameter
08/21/2012 17:35:03 1 INF Entering function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Creating the LanguagePackInstalled bool internal parameter
08/21/2012 17:35:03 1 INF Leaving function BoolInternalParameter.BoolInternalParameter
08/21/2012 17:35:03 1 INF Entering function Parameter.Parameter -
Error occurred in deployment step 'Activate Features': Feature 'e3d788e6-994d-446c-afbb-25ecf9907aeb' is Site-scoped, and cannot be added to the Web.
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Hi,
I have added a new eb part in my already existing SP solution. but when I added 2 new web parts into this solution and trying to depoy the same, am getting this error.
can anybody pls help what am missing.
the below is my feature manifest:
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="BApprove_Feature" Id="e3d788e6-994d-446c-afbb-25ecf9907aeb" Scope="Site"></Feature>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
<Module Name="BApprove" List="113" Url="_catalogs/wp">
<File Path="BApprove\BApprove.webpart" Url="BApprove.webpart" Type="GhostableInLibrary" >
<Property Name="Group" Value="Custom" />
</File>
</Module>
</Elements>Hi SamolPP,
Did you already have a look at following similar post?
https://social.technet.microsoft.com/Forums/sharepoint/en-US/a2af97c8-62db-4194-9fc5-cce6bc7e5d71/content-deployment-error-feature-is-site-scoped-and-cannot-be-added-to-the-web
Hope this helps -
Hi All,
While building event handler to call webservice facing "Error occurred in deployment step 'Activate Features':EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION"; If comment webservice, then build successfully. How to fix this issue?
Thanks in advance!hi
if you call WCF service in feature event receiver you need to ensure that proxy is properly configured. In most cases proxy is configured via web.config file using <system.serviceModel> section, but if it is used in feature receiver it depends on how
you activate the feature:
1. if feature is added to onet.xml of custom web template which is used for creating site collection from Central Administration you will need to modify web.config file of CA
2. similar to previous but instead of site collection you try to create sub site using custom web template: in this case you will need to modify web.config of your Sharepoint web application
3. if you activate feature from timer job somehow, you will need to modify owstimer.exe.config
4. if you activate feature form powershell, most probably you will need to modify or create powershell.exe.config, but I didn't try it
The most simple way which will work in all cases is to configure WCF proxy programmatically. See the following forum thread for details:
How can I set an HTTP Proxy (WebProxy) on a WCF client-side Service proxy.
Blog - http://sadomovalex.blogspot.com
Dynamic CAML queries via C# - http://camlex.codeplex.com
Maybe you are looking for
-
HT204364 How do I purchase more than one card at a time?
I can't figure out how to buy several cards at once without paying for shipping multiple times? Thanks
-
How do I view XMP metadata in Adobe Reader?
How do I view XMP metadata in Adobe Reader? I've created a PDF which (I believe) includes XMP metadata, and I'd obviously like to check that it's been done correctly. However it's not obvious how to view this within Adobe Reader (I'm using 11.0.04 o
-
ACS 4.2.(1) build15 - replication failed with Cannot access file
Just upgraded from 4.0 - to 4.2 then to 4.2.1 15. As you may have seen with periovous posts of mine its not been an esay ride. I have now managed to get it all working - backups AAA etc but for some reason i cannot get the replication to work! Its st
-
Console wl properties conversion
sorry for the cross-posting, didn't see the console list. All, I'm attempting to use the web console application/Convert weblogic.properties link to perform a propterties file conversion. I'm getting a conversion error when converting our current web
-
Preview erases my text input when saving PDF
I'm filling out some pdf forms but when I press save all of my input text disappears. Any info on this? Thanks!