Regarding VS Web part Solution Deployment Permission in SharePoint Server other than Admin

Hi,
While deploying the Visual Studio Web part, one error occurred i;e,   “Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server
is not available. Check that the server is running and connected to the SharePoint farm.”
Actually we want that two user can deploy their web part simultaneously. One is admin that is able to deploy web part. But another user is facing this problem.
Solution which we have tried:
Make Local admin to that user.
Assign db_owner permission to that user in database.
Add that user in WSS_Admin_WPG group.
Add in Farm administrator group.
But still we are facing the same issue

Hello,
To be able to deploy solution, the user needs to have permissions on SharePoint_Config Database too. (maybe also the SharePoint_Admin database too)
Best regards, Christopher.
Blog |
Mail
Please remember to click "Mark As Answer" if a post solves your problem or
"Vote As Helpful" if it was useful.
Why mark as answer?

Similar Messages

  • Target Audience web part property is missing in sharepoint 2013

    Dear All,
                 The "Target Audience" web part property is missing in SharePoint 2013. But this was a feature in SharePoint 2007. Is there any other way of doing this in SharePoint 2013
    Thanks,
    Dilip

    Hi,
    Here are the reasons & solutions for SharePoint 2010 audience targeting missing: 
    1. Enable audience targeting in SharePoint 2010 Site Collection
    Go to Site Actions >> Site Setting >> Click on "Site collection navigation" >> under Site Collection
    Administration >> Make sure "Enable Audience targeting" is checked. 
    2. Audience Targeting feature is depending on SharePoint Publishing feature. So, Go to Site Settings >>
    Site collection features >> SharePoint Server Publishing Infrastructure” Activate publishing feature on your site collection.
    3. For Audience Targeting, We need "User Profile Service Application"! So make sure the user profile
    service application is provisioned and running. Check the status of "User Profile Service" and "User Profile Synchronization Service" . Verify the UPSA is associated with your Web Application, by going to:
    Central Administration >> Application Management 
    Manage Web Applications >> Highlight Your Web Application 
    Service Connections >> Make sure User Profile Service Application is checked.
    Restart IIS!
    Read more: http://www.sharepointdiary.com/2013/05/audience-targeting-missing-in-sharepoint.html#ixzz3O2aRr0lJ
    Hope
    it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How to show property bag values of site collection in web part on landing page in sharepoint online?

    How to show property bag values of site collection in web part on landing page in sharepoint online - office 365?

    You can use JavaScript Client object model to read the property bag values. Example:
    function getWebProperty() {
    var ctx = new SP.ClientContext.get_current();
    var web = ctx.get_site().get_rootWeb();
    this.props =  web.get_allProperties();
    ctx.load(web);
    ctx.load(this.props); //need to load the properties explicitly
    ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
    function gotProperty() {
        var myPropBag = this.props;
        alert(myPropBag.get_fieldValues()["allowdesigner"]); //returns the value of the key allowdesigner
    function failedGettingProperty(args, sender)
         //handle errors here
    Source:
    http://sharepoint.stackexchange.com/questions/37198/grab-a-specific-property-bag-using-ecma-script
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Add or delete the summary links web part's[deployed as a VS solution] link using power shell

    hi,
     i am having a visual studio custom solution having page layouts implemented. In that solution i am having 1  summary links web part and in that i have hard coded few links and this is  deployed on ion dev and staging env.
    Now, the issue is : yesterday, customer came to me and asking me to change the links from http://abc to
    http://xyz/ in this summary links. can anyone pls throw some light,such that i can change this link using a power shell script. i know  if i go the VS solution and change the link and redeploy [ update-spsolution
    command] will work.
    but if the links are changing regularly , chnaging the vs solution and redeploying is not a good practice.
    if i elaborate li'l bit,  i am adding the screen shot : i need to get the summary link column's value and  need to update[ delete xisting one and  add new ones ]
    is there any way , i can change the links using power shell script?
    i tried the belwo power shells cript to get the page in the page layouts :
    $web = get-spweb
    "http://siteurl"
    $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pagesListName = $pubWeb.PagesListName
    $defaultAspxFile = $pubWeb.GetPublishingPage("$pagesListName/mycustomhome.aspx")
    $summaryLinkFieldValue = New-Object
    Microsoft.SharePoint.Publishing.Fields.SummaryLinkFieldValue
    // here am getting the NULL VALUE
    can i get the  summary links field correctly and  delete / modify the same?
    help is appreciated!
    ##$groupLink = New-Object
    Microsoft.SharePoint.Publishing.SummaryLink("My group")
    #$groupLink.IsGroupHeader = $true $summaryLinkFieldValue.SummaryLinks.Add($groupLink)

    Hi Shabeaut,
    Could you tell us why do you want to add a link web part to the master page for all pages?
    I tested that Summary Links web part (and other types of web parts) added in the master page under Quick Launch couldn't be edited when I edit the pages inherited from v4.master page, it looks by design.
    Have you tried using the Quick Launch to add the link instead if you want to show links in all pages.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to refresh Report viewer web part programatically using C# in SharePoint?

    I have used Report viewer web part in SharePoint page, I want to refresh it programmatically. How can I achieve this? I have tried approach mentioned on
    http://nicholasfaiello.wordpress.com/2012/12/28/report-viewer-web-part-programmatically-refresh-a-report/ site, but it is not working.

    Hi,
    How about using JavaScript to perform page reloaded or just trigger the click event of the refresh button with the Report View Web Part? It could be seen as a kind of workaround
    for auto refreshing.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b0b6d11d-07c8-4b4d-bd69-ec60e85e0678/sharepoint-report-viewer-web-part-parameter-issue-not-refreshing?forum=sharepointgeneralprevious
    http://richmintzbi.wordpress.com/2011/06/21/auto-refresh-ssrs-reports-part-ii/
    Best regards
    Patrick Liang
    TechNet Community Support

  • On SharePoint side - other than enabling Kerberos at web application level - is there any other step needed? What?

    Hi there
    My Network guy says that he has taken all necessary steps to roll out Kerberos.
    In the scope of SharePoint - I have extended our web application and this has Kerberos enabled (instead of NTLM). <-- Other than this any more steps are needed on SharePoint side? Which ones?
    Thank you so much.

    Microsoft has released the Kerberos configuration guide : http://www.microsoft.com/en-us/download/details.aspx?id=23176
    note: it's long... 100 pages long.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to redirect to library on button click in sandbox visual web part solution for office 365

    Hi,
    I have created a sandbox solution for Office 365 with one text box and a button. 
    On button click i am creating a library with name from text box. 
    So, what i want is redirect to newly created library as soon it get created on button click.
    how could i do that?
    Thanks

    Got the solution
    <asp:Literal ID="litRedirect" runat="server" />
    string redirectURL =
    listurl;
    litRedirect.Text = "<script type='text/javascript'>window.location = '" +
    redirectURL + "/';</script>";

  • Aps:button onClick event in Visual web part only fires first time - SharePoint 2013

    Below is my markup from ascx file
    <asp:Button ID="exporttopdf" runat="server" Text="Export To PDF"/>
    C# code for button on click
    protected void Page_Load(object sender, EventArgs e)
    exporttopdf.Click += new System.EventHandler(this.exporttopdf_Click);
    protected void exporttopdf_Click(object sender, EventArgs e)
    if (Page.IsPostBack)
    try
    using (MemoryStream stream = new MemoryStream())
    PdfPCell cell;
    SPList list = SPContext.Current.Site.OpenWeb().Lists[this.ListName];
    BaseColor rGBColor = WebColors.GetRGBColor("#AFAECE");
    PdfPTable element = new PdfPTable(2)
    TotalWidth = 300f,
    LockedWidth = true
    float[] relativeWidths = new float[] { 1f, 2f };
    element.SetWidths(relativeWidths);
    element.HorizontalAlignment = Element.ALIGN_MIDDLE;
    element.SpacingBefore = 20f;
    element.SpacingAfter = 30f;
    if (this.PdfHeading != null)
    cell = new PdfPCell(new Phrase(this.PdfHeading));
    else
    cell = new PdfPCell(new Phrase(this.ListName));
    cell.Colspan = 2;
    cell.Border = 0;
    cell.Padding = 4;
    cell.BackgroundColor = rGBColor;
    cell.HorizontalAlignment = 1;
    element.AddCell(cell);
    Document document = new Document(PageSize.A4, 25f, 25f, 30f, 30f);
    PdfWriter instance = PdfWriter.GetInstance(document, stream);
    document.Open();
    document.AddAuthor("Place Holder");
    document.AddCreator("Place Holder");
    document.AddKeywords("Place Holder");
    document.AddSubject(this.ListName);
    document.AddTitle(this.ListName);
    instance.Info.Put(new PdfName("Producer"), new PdfString("Place Holder"));
    PdfContentByte directContent = instance.DirectContent;
    string[] separator = new string[] { ";", "," };
    string[] strArray2 = this.ViewFields.Split(separator, StringSplitOptions.None);
    new StringBuilder().Append(this.ListName + "\n");
    foreach (string str in strArray2)
    PdfPCell cell2 = new PdfPCell(new Phrase(str))
    Border = 0,
    Padding = 4,
    HorizontalAlignment = 1
    element.AddCell(cell2);
    if (str != "Modified By" && str != "Created By")
    PdfPCell cell3 = new PdfPCell(new Phrase(SPContext.Current.Item[str].ToString()))
    Border = 0,
    Padding = 4,
    HorizontalAlignment = 1
    element.AddCell(cell3);
    else
    string[] separatorc = new string[] { "," };
    string[] strArray3 = SPContext.Current.Item[str].ToString().Split(separatorc, StringSplitOptions.None);
    PdfPCell cell3 = new PdfPCell(new Phrase(strArray3[3].ToString().Substring(8).Replace(@"\\", @"\")))
    Border = 0,
    Padding = 4,
    HorizontalAlignment = 1
    element.AddCell(cell3);
    PdfPCell cell4 = new PdfPCell(new Phrase("Footer"))
    Colspan = 2,
    Border = 0,
    Padding = 4,
    BackgroundColor = rGBColor,
    HorizontalAlignment = 1
    element.AddCell(cell4);
    document.Add(element);
    document.Close();
    instance.Close();
    stream.Close();
    HttpContext.Current.Response.Clear();
    HttpContext.Current.Response.ContentType = "pdf/application";
    string filename = SPContext.Current.Item["Title"].ToString() + ".pdf";
    HttpContext.Current.Response.AddHeader("content-disposition", "inline;filename=" + filename);
    HttpContext.Current.Response.OutputStream.Write(stream.GetBuffer(), 0, stream.GetBuffer().Length);
    HttpContext.Current.Response.End();
    catch (Exception exception)
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("Export To PDF", TraceSeverity.Unexpected, EventSeverity.Error), TraceSeverity.Unexpected, exception.Message, new object[] { exception.StackTrace });
    else
    HttpContext.Current.Response.Write("<script language=javascript>alert('ERROR');</script>");
    it works fine first time but does not do anything from second.
    any advice?

    Hi,
    Please try to the code snippet as below:
    VisualWebPart1.ascx:
    <asp:Button ID="exporttopdf" runat="server" Text="Export To PDF" OnClick="exporttopdf_Click"/>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    VisualWebPart1.ascx.cs:
    protected void Page_Load(object sender, EventArgs e)
    protected void exporttopdf_Click(object sender, EventArgs e)
    Label1.Text = System.DateTime.Now.ToString();
    If the code still do not work from second, I suggest you debug your code and check whick line of code occur the error.
    More information:
    http://social.msdn.microsoft.com/Forums/office/en-US/94931a08-f204-4d30-a230-f468815a76e8/export-aspnet-gridview-to-pdf-from-visual-webpart?forum=sharepointdevelopmentprevious
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Checking .svc Service for web Part Deployment

    I am trying to deploy a web part on my company's SharePoint Server. I altered the web.config file, added the .dll's to GAC, and compied the .svc's neccessary to the Web Server Extensions/.../PSI folder. When I surf to a URL to check the web service, it returns
    Error
    The type "xxx.xxx.Svc.ListTasks.ListTasks, ListTasks, Version*******, Culture=neutral, PublicKeyToken=******', provided as the Service attribute value in the ServiceHost directive could not be found
    I am relatively new to this, so I cannot think of where to begin. I did not develop this web part; I received a folder containing the files. Aside from the "What do I do to fix this?" question:
    1) When I add .sql files to the SQL server database, is there something else I should check?
    2) When I add files to GAC, does it generate a new file?
    3) When I received the web part folder, should I have placed the files somewhere or leave them in the folder which I received?
    Chris Lee

    Hello,
    it seems you are creating a wcf service and type in not registered in SVC file. Please follow below link and deploy your service again in
    _vti_bin folder..
    http://dpruna.blogspot.sg/2012/03/type-provided-as-service-attribute.html
    Refer this link to deploy WCF in sharepoint environment:
    http://msdn.microsoft.com/en-us/library/office/ff521581%28v=office.14%29.aspx
    Hope it could help
    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

  • Install Web Part Using Set up file for Sharepoint 2013

    HI,
        How to install web part to sharepoint 2013 using a setup wizard.
    Suppose i have webpart for some data manipulation process so i need to make a set up for install this web part in any sharepoint system is it possible , programmatically install web part is possible any one have code regarding this or can you suggest me how
    to do this ?
    Thanks & Regards
    SUJIL KUMAR t
    Software developer

    Hi Sujilkumar,
    According to your description, my understanding is that you want to install web part wsp using install wizard.
    In SharePoint, there is no set up wizard to install the web part. If you want to install your custom web part, you can use PowerShell Commands. Before you can deploy a solution package, you need to add it to the solution database of a SharePoint
    Server farm like below:
    add-spsolution c:\yourwsp.wsp
    Then you can install the solution like below:
    Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>
    Here are some detailed articles for your reference:
    how to add a wsp webpart
    Deploy solution packages
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Data lost while moving between Tabs in a web part

    hi,
    We are developing a specific functionality where we have four different tabs...When user press button on first tab it generates a some data which is stored in a list. This list has a ID which is stored in the View State. Now when user presses next button
    it goes to next tab where the same ID is used to retrieve the details from List.similar is the case for multiple tabs. There is a sporadic issues reported in this application. The issue is that sometimes data is not saved in the list first time. Secondly even
    if the data is saved and user moves to second tab all the fields are coming blank. Looks like ID field is blank. Now sure how can the ID field is blank if we are on second tab after saving the data in first tab. This issue only happens once in a blue moon
    for specific users.I can paste the code for button click
    protected void imgSaveandProcedGeneralInfo_Click(object sender, ImageClickEventArgs e)
    //int trackerIds = erossoperationtracker.StartOperation("Save And Proced GeneralInfo Button - imgSaveandProcedGeneralInfo_Click");
    erossoperationtracker.LogToErrorList("Start - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    try
    //Check if the requested by field is valid before saving
    //if (peRequestedBy.IsValid && peRequestedBy.ResolvedEntities.Count == 1)
    PrepareSave(true);
    if (ContentType == ContentTypes.ClinicalGrantStartup)
    (Container as StartupROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithoutStartup)
    (Container as MainROSSWithoutStartUpUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainWithStartup)
    (Container as MainROSSWithStartUpUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantStartupRevision)
    (Container as StartUpROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.ClinicalGrantMainRevision)
    (Container as MainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMain)
    (Container as MainROSSUserControl).ShowStartUpTabs(TabIndex.BudgetTemplate, false);
    else if (ContentType == ContentTypes.DrugSafetyMainRevision)
    (Container as DrugMainROSSRevisionUserControl).ShowTabs(TabIndex.BudgetTemplate, false);
    erossoperationtracker.LogToErrorList("End - imgSaveandProcedGeneralInfo_Click - Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    //erossoperationtracker.EndProcess();
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - imgSaveandProcedGeneralInfo_Click - " + ex.Message, erossoperationtracker.currentUser());
    LogException(ex);
    private void PrepareSave(bool isSaveAndProceed)
    erossoperationtracker.LogToErrorList("Start - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    int Id = erossoperationtracker.StartOperation("PerpareSave to List");
    try
    generalInfo = new GeneralInfoEnt();
    if (WebpartMode == WebpartModes.Edit)
    generalInfo.ROSSId = eRossId;
    //Add mode but user already saved data once
    else if (ViewState["ID"] != null)
    generalInfo.ROSSId = (int)ViewState["ID"];
    else
    generalInfo.ROSSId = default(int);
    generalInfo.ContentType = ContentType;
    generalInfo.RossGroup = RossGroup;
    //Check if statup ross has been changed
    if (!hdnOldStartUpRossNo.Value.Equals(hdnStartUpRossNo.Value, StringComparison.InvariantCultureIgnoreCase))
    generalInfo.IsParentChanged = true;
    hdnOldStartUpRossNo.Value = hdnStartUpRossNo.Value;
    generalInfo.ProtocolName = Convert.ToString(txtProtocolName.Text);
    generalInfo.TherapeuticArea = Convert.ToString(txtTherapueticAreaName.Text);
    generalInfo.PAID = Convert.ToString(txtPaid.Text);
    generalInfo.PAIDName = Convert.ToString(txtPaidName.Text);
    generalInfo.ProjectNumber = Convert.ToString(txtProjectCode.Text);
    generalInfo.ProjectName = Convert.ToString(txtProjectName.Text);
    generalInfo.ProgramName = Convert.ToString(txtProgramName.Text);
    generalInfo.ProgramCode = Convert.ToString(txtProgramCode.Text);
    generalInfo.Status = Convert.ToString(Utility.GetStatus(RossStatus.Draft));
    DateTime requestedDate;
    if (DateTime.TryParse(hdnRequestedDate.Value, out requestedDate))
    generalInfo.RequestDate = requestedDate;
    if (WebpartMode == WebpartModes.Add)
    generalInfo.RequestDate = DateTime.Now;
    generalInfo.TotalEstimatedStudyCost = Utility.ConvertCurrencyToDouble(txtTotalEstimatedCost.Text);
    generalInfo.PrimaryCRO = Convert.ToString(txtPrimaryCROServiceProvider.Text);
    generalInfo.StudyObjective = Convert.ToString(txtObjective.Text);
    generalInfo.StudyDescription = Convert.ToString(txtDescription.Text);
    generalInfo.ProjectType = Convert.ToString(txtProjectType.Text);
    if (peRequestedBy.ResolvedEntities.Count > 0)
    string userAccount = peRequestedBy.CommaSeparatedAccounts.Split(',')[0];
    generalInfo.RequestedByLoginName = userAccount;
    hdnRequestedBy.Value = userAccount;
    switch (ContentType)
    case ContentTypes.ClinicalGrantMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(hdnFutureCAPAmount.Value);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantMainWithStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlStartMonthMainROSSWithExistingStartUp.SelectedValue, ddlStartYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlEndMonthMainROSSWithExistingStartUp.SelectedValue, ddlEndYearMainROSSWithExistingStartUp.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCodeMainROSSWithExistingStartUp.Text);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    if (!string.IsNullOrEmpty(generalInfo.ROSSNumber))
    lnkStartUpRossMainROSSWithExistingStartUp.InnerText = generalInfo.ROSSNumber;
    if (!string.IsNullOrEmpty(generalInfo.StartUpRossLink))
    lnkStartUpRossMainROSSWithExistingStartUp.HRef = generalInfo.StartUpRossLink;
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.LastApprovedStudyDescription = Convert.ToString(hdnApprovedDescription.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantMainWithoutStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    if (!string.IsNullOrEmpty(generalInfo.MarketedProduct))
    if (generalInfo.MarketedProduct.ToLower() == YesOrNo.Yes.ToString().ToLower())
    generalInfo.CAPAmount = Utility.ConvertCurrencyToDouble(txtCAPAmount.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartup:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    /****eROSS Phase 2 Beginning of change****/
    if (ddlIIS.SelectedItem.Text != "-")
    generalInfo.IIS = Convert.ToString(ddlIIS.SelectedItem.Text);
    if (ddlMarketedProduct.SelectedItem.Text != "-")
    generalInfo.MarketedProduct = Convert.ToString(ddlMarketedProduct.SelectedItem.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.ClinicalGrantStartupRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnStartRossLink.Value))
    generalInfo.StartUpRossLink = hdnStartRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.SubTherapeuticArea = Convert.ToString(txtSubTherapeuticArea.Text);//for sub TA
    generalInfo.ResponsibleCostCenter = Convert.ToString(txtResponsibleCostCenter.Text);
    break;
    case ContentTypes.ClinicalGrantClose:
    /****eROSS Phase 2 Beginning of change****/
    generalInfo.IIS = Convert.ToString(txtIIS.Text);
    generalInfo.MarketedProduct = Convert.ToString(txtMarketedProduct.Text);
    /****eROSS Phase 2 End of change****/
    break;
    case ContentTypes.DrugSafetyMain:
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlstartMonth.SelectedValue, ddlstartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlendMonth.SelectedValue, ddlendYear.SelectedValue);
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolNo.Text);
    if (!string.IsNullOrEmpty(ddlRossType.SelectedValue) && ddlRossType.Text != "0")
    generalInfo.DrugSafetyROSSType = ddlRossType.SelectedItem.Text;
    generalInfo.ResponsibleCostCenter = ddlRossType.SelectedItem.Value;
    break;
    case ContentTypes.DrugSafetyMainRevision:
    generalInfo.ProtocolNumber = Convert.ToString(txtProtocolCode.Text);
    generalInfo.ROSSStartDate = Utility.GetDateFromDropdown(ddlRevisionStartMonth.SelectedValue, ddlRevisionStartYear.SelectedValue);
    generalInfo.ROSSEndDate = Utility.GetDateFromDropdown(ddlRevisionEndMonth.SelectedValue, ddlRevisionEndYear.SelectedValue);
    generalInfo.RevisionMonth = Utility.GetDateFromDropdown(ddlRevisionMonth.SelectedValue, ddlRevisionYear.SelectedValue);
    if (!string.IsNullOrEmpty(txtLastApprovedStartDate.Text))
    generalInfo.ROSSStartDateLastApproved = Convert.ToDateTime(txtLastApprovedStartDate.Text);
    if (!string.IsNullOrEmpty(txtLastApprovedEndDate.Text))
    generalInfo.ROSSEndDateLastApproved = Convert.ToDateTime(txtLastApprovedEndDate.Text);
    generalInfo.RevisionReason = txtReasonForRevision.Text;
    if (!string.IsNullOrEmpty(hdnStartUpRossNo.Value))
    generalInfo.ROSSNumber = Convert.ToString(hdnStartUpRossNo.Value);
    if (!string.IsNullOrEmpty(hdnParentRossId.Value))
    generalInfo.ParentROSSId = Convert.ToInt32(hdnParentRossId.Value);
    if (!string.IsNullOrEmpty(hdnMainRossLink.Value))
    generalInfo.StartUpRossLink = hdnMainRossLink.Value;
    generalInfo.TotalEstimatedStudyCostLastApproved = Utility.ConvertCurrencyToDouble(hdnTotalEstimatedStudyCostApproved.Value);
    generalInfo.DrugSafetyROSSType = txtRossType.Text;
    generalInfo.ResponsibleCostCenter = txtResponsibleCostCenter.Text;
    break;
    default:
    break;
    if (isSaveAndProceed)
    (Parent as AbstractView).EventName = Constants.GeneralInformation_SaveAndProceed;
    else
    (Parent as AbstractView).EventName = Constants.GeneralInformation_Save;
    (Parent as AbstractView).InvokePresentor();
    erossoperationtracker.LogToErrorList("End - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    catch (Exception ex)
    erossoperationtracker.LogToErrorList("Error - Prepare data for saving(PrepareSave)- Save And Proced GeneralInfo Button", erossoperationtracker.currentUser());
    LogException(ex);
    Do you see any issue in the code...We are not able to understand where is the issue.Amazingly this code was working absolutely fine in SharePoint 2010 and never given any problem but after migrating it to SharePoint 2013 it started
    showing this sporadic issue.
    Regards
    Rajaniesh

    Hi,
    Per my understanding, there is a sporadic issue in your custom web part solution.
    As a common practice, I would suggest you debug this web part in Visual Studio and test different data input, as it is a sometimes issue, the most probably cause would
    be an issued entry, debugging would make it easier to be noticed.
    As you said, it “works absolutely fine in SharePoint 2010 environment”, you can repeat the same operations when issue occurs in the SharePoint 2010 environment to
    see if it is we can get more information there.
    Feel free to reply if there any progress.
    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

  • Create a visual web part which get data from excel sheet and import it into sql server database in sharepoint 2010 (development)

    Hi,
    I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
    I want to do it using visual webpart.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi  Rajni,
    Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
    and import it to SQL  database.
    1.Create a Visual Web Part Project:Create
    Visual Web Parts in SharePoint 2010
    2.Read the excel workbook by using SPFile class:
    http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
    http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
    3.Export the excel workbook to SQL Server:
    http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Best Practices in SharePoint 2010 ( Out of the box feature vs Custom Web Part, development )

    Hi
    How do we differentiate on when to allow custom web parts and when to use out of the box.
    What are the performance issues involved when we deploy a custom web part into the SharePoint server. 
    Why do some companies prefer to allow only out of the box features, and no custom work is done?

    SharePoint is a powerful, flexible server product that can provide a wealth collaboration environment right out of box.
    Best answer for your question is depend upon your requirement. Sometime Out of Box features will solve all the problem with little designing. But sometime your requirement need a Custom Web part / solution.
    With OOTB implementation the big advantage is easy to trouble shoot & fix the issues. You will also found tons of blogs on internet for OOTB features. In custom development, its hard to troubleshoot & identifying whether its SharePoint issue or Custom
    code issue.
    check the below article for more ideas.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1e7845ef-61e0-4d01-bb6c-92519e6d7139/sharepoint-2010-outofbox-best-practices?forum=sharepointgeneralprevious
    http://www.cdh.com/media/articles/Pages/SharePoint-out-of-the-box---To-customize-or-not-to-customize.aspx
    Master List of SharePoint 2010 On-Premises Custom Development Best Practices
    http://i.zdnet.com/whitepapers/Quest_WPW_SharepointDev_Custom_US_KS_v3.pdf
    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

  • Creating an O365 SharePoint Online 2013 Web Part control (that is NOT on another domain or inside an IFrame)

    We created SharePoint App that offers a Web Part we can add to SharePoint 2013 pages.  The problem is that web part installs as an iframe pointing to the apps domain. 
    Two challenges in trying to impact the Page's DOM and elements and also accessing the pages URL query string parameters. Basically cross domain issues.
    Is there any way to deploy a webpart that installs in-line as a component on the page like a Script Editor Web Part?
    If that must be done as a sandbox solution, how can users on 100+ sites easily download and install this web part like web parts from the App catalog and Store?
    BTW, How is it that a Script Editor Web Part installs in-line on the page without an iframe?  Possible to reproduce this in our own App?

    SharePoint 2013 apps are designed to be secure and must run outside of the SharePoint domain. They typically are HTML, JS and CSS and any custom compiled code is run on another web server and access via web services.
    The Script Editor Web Part is a code based (compiled) "traditional" web part that runs in the SharePoint process. If you are working on premise (i.e. not Office 365), and your SharePoint admins will permit custom code to deployed to their servers,
    then you can still create SharePoint 2010 style web parts. These can be deployed as "full trust" web parts or sandbox web parts. Full trust web parts are installed on the web servers while sandbox web parts need to be uploaded to a gallery
    in each site collection (not each site). If your 100+ sites are in a single site collection, then only one upload is needed. If you have 100+ site collections then you could use PowerShell to deploy the sandbox solution to all of them.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Override content by search Web Part's limit of 50 results per page

    Hello , 
    Happy New year 2015.
    SharePoint 2013 search webPart renders a maximum of 50 search results per page and it
    is not possible to change this hardwired limit by configuring the web part. 
    If i set it to greater than 50, it throws an error. 
     How to override this limit of 50 so that i  display all result in the same page ( no need to pagination).
    I look for a client side solution if possible.
    Note : i have applied the solution proposed by Matt
    Stark int this work around Blog  and i set the limit to 700 but the webPart still get it limit number 50 in stead
    of 700.
    in my display template , i see that  ctx.ClientControl.get_numberOfItems()=700 and in my html i see only 50 items per page.
    Any help will be appreciated.
    Thanks

    Hi PiingPoint,
    According to your description, my understanding is that you want to show more than 50 results in a page in core search web part.
    The "Results Per Page" maximum value 50 is hard-code in OOB Search Core Results Web Part by design, so it could only return maximum 50 items per page, when"Result Per Page" value is larger than 50, it will display default 10 items
    per page.
    It's for end user experience and performance. Webpart is mostly used as a portion of a page view which users won't want to scroll too much, its not considered to be a good end user experience. Additionally beyond a point we would need
    to consider performance aspects to display thousands of items on web page views, hence a maximum value of 50 items without paging has been made available by design to take care of these aspects.
    If you want to show more than 50 results per page, you need to develop a custom core search web part to do it.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Problem with "Personal File Sharing"

    Apple Support "Personal File Sharing" does not work in my Powerbook G4 17 inch with 1.67 ghz CPU and with 1 gb ram. There is long delay, if I turn on the "Sharing" dialogue box. When it works shortly, I click the "Personal File Sharing" option. Then

  • How do you extend the reception range on a Time Capsule?

    Live in an older home and looking to extend the wifi range of my Time Capsule.  Any advice?

  • 'Not assigned' Value is appearing in Report?

    Hi Folks, Let me go through the whole scenerio so that it would be easy to answer you people. There was one IO by 0CAT_GROUP for this there was already data was available.Due to some changes in the requerement we have created one navigational atterib

  • My safari won't allow me to quit

    a recent update to safari is what I beleive haas caused some sort of glitch that won't allow me to quit safari

  • Re-Installing Photoshop Elements 11

    Greetings.    I recently installed PE11. However, I have to reset my computer back to original factory settings (for an unrelated matter), which will uninstall all of my software. I need to know if I will be able to reinstall my PE11 or will I receiv