2010 – Why is my Ajax call returning a 500 Server Error?

I’m currently building an application page for a SharePoint 2010 site. One of the methods on this application page retrieves the User Profile information from the server and displays it to the client. This function is to return a Json object containing each of the property fields I need to display (currently testing with three).

My C# backend method:

(WebMethod)
public static string getProfileProperties()
{
    ProfileProperties profileProps = new ProfileProperties();

    using (SPSite site = SPContext.Current.Site)
    {
        SPServiceContext context = SPServiceContext.GetContext(site);
        UserProfileManager profileManager = new UserProfileManager(context);

        AudienceLoader audienceLoader = AudienceLoader.GetAudienceLoader();
        AudienceManager AudMgr = new AudienceManager(context);
        AudienceCollection Audiences = AudMgr.Audiences;

        using (SPWeb web = SPContext.Current.Web)
        {
            UserProfile profile = profileManager.GetUserProfile(web.CurrentUser.LoginName);
            profileProps.email = profile(PropertyConstants.WorkEmail).Value.ToString();
            profileProps.name = profile(PropertyConstants.AccountName).Value.ToString();
            profileProps.username = profile(PropertyConstants.UserName).Value.ToString();
            return JsonConvert.SerializeObject(profileProps);
        }
    }
}

My AJAX call:

(function ($) {
    $.ajax({
        type: "POST",
        url: "getProfileProperties",
        contentType: 'application/json',
        dataType: 'json',
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            console.log(XMLHttpRequest);
            console.log(XMLHttpRequest.responseJSON);
            console.log("Response Code: " + XMLHttpRequest.status + "nStatus: " + textStatus + "nError: " + errorThrown);
        },
        success: function (result) {
            console.log(result);
            renderProfileProperties(result.d);
        }
    });

    function renderProfileProperties(data) {
        $('.profile-name').text(data.name);
        $('.profile-email').text(data.email);
    }
})(jQuery);

The Ajax function returns a 500 Internal Server Error on execution, which I have attributed to the contentType and dataType possibly not matching to what the server is expecting and responding with.

Does anybody know, or could help me figure out, why my Ajax returns a 500 error? Thank you.

(nmcli con up/down ens33 /nmcli con mod ens33 ipv4.method auto ) does not use ubuntu 20.10

run the command nmcli con up ens33 they show (Error: unknow connection ‘ens33’) but i can run nmcli show device / nmcli dev status / …. apt install network-manager is already install

2010 – Missing Web Parts

I getting error of missing dependencies on web parts at Central Admin. So I ran Test-ContentDatabase to find all the errors. Once found, I ran another script against my database to find where the missing web parts where. All went well.

The thing is most of the URLs I got don’t existe/are not accessible. So I cant navigate and remove the web part of the page.

Is there another approach to delete the web part? I have found scripts online but they all delete straight from the database, which is not recommended.

Central Admin Errors:

[MissingWebPart] WebPart class [af6b32d9-0e85-924c-cce0-0cae895460f7]
is referenced [5] times in the database [SP_PRD_Content], but is
not installed on the current farm. Please install any feature/solution
which contains this web part. One or more web parts are referenced in
the database [SP_PRD_Content], but are not installed on the
current farm. Please install any feature or solution which contains
these web parts. [MissingWebPart] WebPart class
[666ac2ae-b462-2c71-a04d-324ee783ba43] is referenced [58] times in the
database [SP_PRD_Content], but is not installed on the current
farm. Please install any feature/solution which contains this web
part. One or more web parts are referenced in the database
[SP_PRD_ContentL], but are not installed on the current farm.
Please install any feature or solution which contains these web parts.

Update:
I managed to find the page where the web part is, but when I navigate to the page’s ?contents=1 there is no error web part. Theres actually no web parts displaying however, when I query the database I can find this web part related to the page.
Do I need to do something to SharePoint realize I’ve already removed the web part?

2010 – Adding Pictures/Symbols with Hyperlink in a Document Library

Assuming you are using SharePoint 2013 (or newer) or O365, I’d suggest to create a custom link list which can be placed at the Document Library’s (view) page. The list should be based on Promoted Links app which is available out-of-the-box.

On your SharePoint site go to Site Contents > add an app > Promoted Links. Name as you like. Create new list items to your Promoted Links -list and remember to specify the Background Image Location with the URL to the picture you wish to have for your link.

Once you have your links ready, on your SharePoint site go to Site Contents > Document Library you’d like to place the links > Edit page. On the web part zone, click Add a Web Part and choose your Promoted Links -list. You can choose whether to show/hide the list’s title from the web part properties.

A working example:

A working example

Limitations:

  • Promoted links come with a fixed size of 150x150px
  • Promoted links do not have line breaks meaning if you have 8 links, they’ll all be in the same row. A workaround for this is to have two or more Promoted Link -lists placed above the Document Library’s view page.

The limitations can be altered with frontent customization, but that’ll require some extra work.

Exchange 2010 to 2016 (Multi Site)

My scenario:

Datacenter #1 – AD Site “A”

-4 ISP internet connections. (Outbound independently)
-2 DCs GC (FSMO) Internal DNS

-2 DNS Servers – External DNS hosted into a DMZ (SPF / MX / PTR records pointing to Site A
(mailflow))

-1 Exchange 2010 SP3 UR30 with EDGE subscriptions.

-2 Exchange EDGE Servers in DMZ.

-500 users

DNS Namespace: Outbounded model

Mail services (DNS): webmail.company.com / autodiscover.company.com
MX´s: 2 mail.company.com | 2 mail2.company.com (2 on 1 ISP and 2 on another ISP for redundancy)

Datacenter #2 – AD Site “B”

-2 ISP Internet connections (Outbound independently)

-2 DCs GC

-1 Exchange 2016 (Not yet installed)

-100 users

Connections: 1 VPN and 1 MPLS connecting Site A to Site B.

I need to install firts Exchange 2016 as part of an Exchange Upgrade, and i need to install it directly on Site B (Not the main Site A) because it has more hardware resources and more employee´s. Can i do it ?

Questions :

1 – Can I install Exchange 2016 directly in Site B without migrate any user mailbox and while Exchange 2010 SP3 still reside in a main site A, without changing, affecting or disrupting mail flow or needed to pointing the DNS records to Site B ? (ignoring the fact of the previous and immediate Schema/Ad/Domain updates from remote share in FSMO DC, and configuration of the SCP, the services and the SSL certificate)

2 – What´s happens to the actual mail flow, regarding on that exchange 2010 cannot do proxy up to exchange 2016 ?

I need to change all my internal and external DNS records (SPF / MX / ISP´s PTR records) to point to the second datacenter in Site B (Exchange 2016) for don’t break mail flow, even though no mailboxes have yet been migrated ?

3 – If I’m wrong, I need to firstly install Exchange 2016 directly in Site A where Exchange 2010 reside and change the firewall port rule to point to Exchange 2016 ?

4 – What about the 2 EDGE servers that already have a subscription to Exchange 2010 in Site A, if newly Exchange 2016 is in onther AD site (Another Datacenter??)

Can i remove the existing EDGE subscription to Exchange 2010 in Site A and recreae de EDGE 2010 subscrition to Exchange 2016 in remote Site B ?

Sorry If I’m wrong with all my questions, can u help me anyway for free with an orientation ?
Any additional comments about my inquiries or the steps necessary to not cause any interruption are welcome.
Thanks.

Could not download the upgrades for version 20.10 and cannot see version 21 on the updater

It is normal that you cannot, at this time, update from the LTS release 20.04 to the current interim release 21.04. That is because 20.10 currently is not anymore supported, whereas in Ubuntu, you can only upgrade from one edition to the next.

Long story

You need to know that Ubuntu only allows upgrades from one version to the next. And when you upgrade, both the old and the new version must be within the support period.

From 20.04, you could only upgrade to 20.10. Alas, 20.10 is not anymore supported. So you cannot anymore follow the upgrade path.

20.04 is a release with long time support, an “LTS-resease”. Therefore, an upgrade to the next LTS release will become available when the next LTS version appears. That will be version 22.04, next spring. So at that time, you will be able to upgrade your current LTS 20.04 to a newer version. For now, your 20.04 version is fully supported.

When using an LTS release, your system is supported for 5 years, and you upgrade only every two years. Ubuntu has also so called “interim releases”. These have only a nine month support cycle. If you jump on the interim releases, you need to upgrade every nine months.

Upgrade from 20.10 to 21.04 fails with “Authentication failed”

upgrading fails on my machine (same using the Software Updater) with:

goetz@Ubuntu-Mac:~$ sudo do-release-upgrade 
Checking for a new Ubuntu release
Get:1 Upgrade tool signature (819 B)                                                                                      
Get:2 Upgrade tool (1.276 kB)                                                                                             
Fetched 1.276 kB in 0s (0 B/s)                                                                                            
authenticate 'hirsute.tar.gz' against 'hirsute.tar.gz.gpg' 
Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server.

Does anyone have an idea how to solve this?

-Best regards, ii7017-

macos – I have a Mac Pro Mid 2010 needs upgrade

macos – I have a Mac Pro Mid 2010 needs upgrade – Ask Different

New netstat Ubuntu 20.10 – Server Fault

i have been using netstat 1.42 without any problem but yesterday i installed a fresh vps and when i try to set commands netstat does not show anything,
i use this command to see all active tcp connections
netstat -tn 2>/dev/null | grep :80| awk ‘{print $5}’ | cut -d: -f1 | sort | uniq | sort -nr | paste -sd, –
when i check the version i see the version 2.10-alpha how do i change to 1.42 version or what have changed on this new version?
Thx by the way i’m new in this

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheap USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Best Quality USA Private Proxies