i'm new on sharepoint 2013:
In my sharepoint solution which is created from visual studio , I created a project that contains the data model of my solution : I put in this project custom fields, custom types as well as custom lists that my solution requires.
then I created 3 features in this project :
The first feature which is a site scoped feature contains all custom types and custom fields of my solution, its name is Feature_ContentTypes_Fields.
The second feature which is a Site Scoped feature contains all list definitions of my custom lists ( in which I added "its name is Feature_ContentTypes_Fields" as feature activation dependency) , its name is Feature_ListDefinitions.
The last feature which is a web scoped feature contains all list instances of my custom lists ( in which I added "Feature_ListDefinitions" as feature activation dependency) , its name is Feature_ListInstances.
Result :
1/ successful build.
2/ failed deploy
Here is the output of visual studio while deploying the solution:
------ Build started: Project: Model, Configuration: Debug Any CPU ------ Model -> C:\Users\myusername\Desktop\ProxymSPIntranet\SPIntranet\Model\bin\Debug\Model.dll
Successfully created package at:
C:\Users\myusername\Desktop\ProxymSPIntranet\SPIntranet\Model\bin\Debug\Model.wsp
------ Deploy started: Project: Model, Configuration: Debug Any CPU ------ Active Deployment Configuration: Default Skipping deployment step because a pre-deployment command is not specified. Recycle IIS
Application Pool: Recycling IIS application pool 'SharePoint -
1111'... Retract Solution: Deactivating feature
'Model_Feature_ListDefinitions' ... Deactivating feature
'Model_Feature_ContentTypes_Fields' ... Retracting solution
'model.wsp'... Deleting solution 'model.wsp'... Add Solution:
Adding solution 'Model.wsp'... Deploying solution 'Model.wsp'...
Activate Features: Activating feature 'Feature_ContentTypes_Fields'
... Activating feature 'Feature_ListDefinitions' ... Activating
feature 'Feature_ListInstances' ... Error occurred in deployment step
'Activate Features': Cannot complete this action.
Please try again.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Can anyone help me please ?
check if the list instance is included in any other features because when you add a sp related item to the solution visual studio automatically adds it to a feature.
-or-
Elements File of the List Definition Should Contain The Below:
<ListTemplate
Type="10999"
Check if they are in line with the List Instance's Element File Attribute As Below:
<ListInstance
TemplateType="10999"
They should be the same.
Similarly The Content Type Element File would have The Below Attribute:
<ContentType ID="0x0100E8F7E7893379472DB2522B0FCDF0C836"
This should be the same as the Content Type ID inside the list instance's Schema.xml file:
<List Url="Lists/FlatStructuredNavigationListDefinition" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE" RootWebOnly="TRUE">
<MetaData>
<ContentTypes>
<ContentType ID="0x0100E8F7E7893379472DB2522B0FCDF0C836"
Check These and Deploy This should Work i had the same issue.
In my case the problem with deploying was related to the Name attribute of the Field nodes. I had Name attributes with spaces, which SharePoint somehow didn't like. No error was given, but I noticed that when I commented out the Field nodes in the Schema.xml file deploying worked. So I spent a lot of time trying to debug this, and finally I found out that deleting the spaces did the trick. So instead of writing
< Field Name="My Field Name" >
write
< Field Name="MyFieldName" >
Related
I am trying to generate an OpenApi service reference in Visual Studio 2019. .Net 5.0.
Right clicking project >Add>Connected Services>+ Service References
I am using NetDocs api "https://api.vault.netvoyage.com/v2/swagger/docs/v2".
Result: I get generated c# client code but it is duplicating the types with the errors below.
Severity Code Description Project File Line Suppression State
Error CS0102 The type 'v2Client' already contains a definition for '_settings' OpenAPITest C:\Users\dryfus\source\repos\OpenAPITest\obj\v2Client.cs 4941 Active
Error CS0579 Duplicate 'System.CodeDom.Compiler.GeneratedCode' attribute OpenAPITest C:\Users\dryfus\source\repos\OpenAPITest\obj\v2Client.cs 4936 Active
Error CS0102 The type 'v2Client' already contains a definition for '_baseUrl' OpenAPITest C:\Users\dryfus\source\repos\OpenAPITest\obj\v2Client.cs 4939 Active
Error CS0102 The type 'v2Client' already contains a definition for '_httpClient' OpenAPITest C:\Users\dryfus\source\repos\OpenAPITest\obj\v2Client.cs 4940 Active
Is there a way I can get this to work with the connector way without the duplicates? Or even cli? Any suggestions on why it is creating the duplicates?
I had the same issue, it turns out the code generation didn't like enpoints with an underscore in its operationId. Lucky for me, the service I was consuming was also part of our code, so I could just go to the Swagger configuration in the API side and change the CustomOperationIds setting.
I downloaded and use NSwagStudio to generate the client code and did not have the same issue that the Visual Studio connector had when generating the code.
https://github.com/RicoSuter/NSwag/wiki/NSwagStudio
It is actually caused by this option
OperationGenerationMode:MultipleClientsFromOperationId
MultipleClientsFromOperationId : Multiple clients from the Swagger operation ID in the form '{controller}_{action}'
However, if your classname is set as a static name, it will cause an error like you have.
The correct solution should be change the classname to something like
ClassName="{controller}ServiceClient"
So it will generate different classes.
As part of my VSTS build/release definition set up, I would like to populate a dropdown list from the results of a preceding query. For instance, I want the query to return a list of all packages from an external repository and let's just say there are a total of 10 packages stored in that repository.
I then want the entire array of 10 packages displayed in a dropdown list, thereby ensuring that they can then be selected individually.
How can I accomplish this?
You can’t add dropdown list control to build/release definition, but you can custom build/release task to add a PickList control through VSTS extension.
There are some threads can help you:
Using a web API in task.json to fill picklists buildtask
How to display “Area path” in VSTS build task input PickList?
Service endpoints – Data sources
To get error log details in the xamarin project i installed serilog.sinks.xamarin nuget package in my project. In android, I tried serilog.sinks.rollingfile to store the log details in the documents folder. This is my code
Log.Logger=new LoggerConfiguration().WriteTo.RollingFile(Path.Combine(Environment.DirectoryDocuments,"AndroidErrorLog.txt"))
.WriteTo.AndroidLog().CreateLogger();
After executing the project, if I check the documents folder no file are created and no logs details are found. Can any one tell what mistake I have done and how to fix this issue?.
Log.Logger = new LoggerConfiguration()
.WriteTo.File(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "JCA_log-{Date}.txt")
, outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}")
.WriteTo.AndroidLog()
.CreateLogger();
Taken from PhillipOGorman from the following sources:
Example #1
Example #2
I had this exact issue. I think it was something in the constructor that seemed to stop Serilog from creating a file.
Note #1: The Serilog code provided relies on the Sinks.File and Sinks.Xamarin.Droid Serilog libraries.
Note #2: He used:
Android.OS.Environment.ExternalStorageDirectory.AbsolutePath
when referencing where the file would write to but,
Environment.GetFolderPath(Environment.SpecialFolder.Personal)
works fine (plus it packages it within your apps sandbox.)
I am using RSA 8.5
Note: I am using the existing application.xml file and I have already deleted the ibm-application-bnd.xmi, ibm-application-bnd.xml, ibm-application-ext.xml because these files are not in sync with application.xml. Hence I have removed them and only kept the application.xml file and trying to generate new binding files.
I have kept module id as it is in application.xml file. Shall I remove or keep it as it is?
I have tried below steps.
Right clicked on application.xml and opened with Application(1.x) deployment descriptor editor
Clicked on the Security tab and added the role
Then in websphere binding section, I have checked the checkbox for users/groups.
Under the Group section, I have added same role which was added in step 2.
Click on Gather button then popup message saying "No security role defined in Modules.
Please suggest the approach.
If you are using RSA, the highlight your EAR project, right-click select Java EE ... > Generate WebSphere Bindings/Extensions deployment descriptor. This will create fresh ibm-application-ext and ibm-application-bnd files.
I am developing an application in ServiceStack and am trying to sort out deployment on AppHarbor, however for some reason my web.config transforms are not being applied.
I had originally a Web.AppHarbor.config file and changed the Environment Setting to "AppHarbor" - once this failed to work after several updates, I gave up and changed the Environment setting to "Release" and copied the desired transformations into the Web.Release.Config file.
App gets deployed OK but config settings do not reflect the values in the transform file (I verify this by login on with twitter and seeing the callback url for Twitter Auth still tries to redirect me to localhost, which is one of the settings I change in my transform file)
I have also tried the transform tester tool and all works as expected.
Manually publishing the web application to a local folder correctly applies the transformations according to the selected configuration
Does anyone have this working? Is there something obvious I'm missing?
Thanks
It sounds like the Web.Release.config file is not included in the build output. You need to set the Build Action attribute to Content to include it in the build output.
You can confirm whether the file is included in the output by downloading the build from the log page.
I stumbled across this post because I was seeing the same lack of action myself. Upon closer inspection (about 15 times that is) of my Web.Release.config I realized one of the nodes in my config file was not marked xdt:Transform="Replace". Unsurprisingly it did nothing when deployed.