Friday, May 4, 2012

[sharepointdiscussions] Digest Number 4437

Messages In This Digest (8 Messages)

Messages

1a.

Re: C# - custom web part to post "Link To A Document" content type

Posted by: "Robert Johnson" rjohnandmore@yahoo.com   rjohnandmore

Wed May 2, 2012 1:06 pm (PDT)



A typo in the FIRST sentence: Should read --

that UPLOADS documents > 5Meg to an SHARED Drive

________________________________
From: rjohnandmore <rjohnandmore@yahoo.com>
To: sharepointdiscussions@yahoogroups.com
Sent: Wednesday, May 2, 2012 12:56 PM
Subject: [sharepointdiscussions] C# - custom web part to post "Link To A Document" content type

Hello! I have a C# custom web part that unloads documents > 5Meg to an Sahre Drive. This web part creates a :Link to a Document" content type entry in the document library.

As usual, the web part works PERFECT on MY development machine :0) However, as soon as we load it to TEST it errors out when it attempts to update the -- item["URL] = myShareURL

I am also using SPSecurity.RunWithElevatedPrivileges(delegate() and have verified that I am using "System Account"

That error usually occurs when the "Link to a Document" Content Type has not been enabled for that Library; but it has been. I CAN create an entry using that Content Type via the browser in the library.

Been stumped for 2 days now. Have even tried it on 2 different servers with the SAME result: No Go.

Any ideas???? I cant see how it is the code -- but here is the specific section:

//Create SPFile object
SPFile uploadFile = null;
uploadFile = myLibrary.Files.Add(oWeb.Site.Url + "/" + urlOfFile, new MemoryStream(new UTF8Encoding().GetBytes(redirectPageHTML.ToString())), true);

// Create SPField onject
SPListItem item = uploadFile.Item;

//Update Content Type
fieldName = "Content Type";
fieldValue = "Link to a Document";
item["Content Type"] = fieldValue;

//Update File Share URL
fieldName = "URL";
fieldValue = myShareURL                                     
item["URL"] = fieldValue;

//Commit changes
item.Update();

                                     

------------------------------------

Yahoo! Groups Links

[Non-text portions of this message have been removed]

2a.

How to run a .net 4 application under sp 2010?

Posted by: "brother.gabriel" brgabriel@sspx.org   brother.gabriel

Wed May 2, 2012 1:39 pm (PDT)



Salvete! I have an aspx page that needs to run under .net 4. How can I use this in my sharepoint site and run it under sharepoint in iis7? I know I could put it in an external site and use a page-viewer web part, but I want the page to be accessible *only* through the sharepoint site.

2b.

Re: How to run a .net 4 application under sp 2010?

Posted by: "brother.gabriel" brgabriel@sspx.org   brother.gabriel

Wed May 2, 2012 1:56 pm (PDT)



I see that on this page, http://www.asp.net/whitepapers/aspnet4/breaking-changes, you cannot run a .net 4 web application under sharepoint.

--- In sharepointdiscussions@yahoogroups.com, "brother.gabriel" <brgabriel@...> wrote:
>
> Salvete! I have an aspx page that needs to run under .net 4. How can I use this in my sharepoint site and run it under sharepoint in iis7? I know I could put it in an external site and use a page-viewer web part, but I want the page to be accessible *only* through the sharepoint site.
>

2c.

Re: How to run a .net 4 application under sp 2010?

Posted by: "Patrick Reeves" patrickwreeves@gmail.com   patrick_w36

Thu May 3, 2012 11:47 am (PDT)



Correct. Both Sharepoint 2007 & 2010 only support up to .Net 3.5

On Wed, May 2, 2012 at 1:56 PM, brother.gabriel <brgabriel@sspx.org> wrote:

> **
>
>
> I see that on this page,
> http://www.asp.net/whitepapers/aspnet4/breaking-changes, you cannot run a
> .net 4 web application under sharepoint.
>
>
> --- In sharepointdiscussions@yahoogroups.com, "brother.gabriel"
> <brgabriel@...> wrote:
> >
> > Salvete! I have an aspx page that needs to run under .net 4. How can I
> use this in my sharepoint site and run it under sharepoint in iis7? I know
> I could put it in an external site and use a page-viewer web part, but I
> want the page to be accessible *only* through the sharepoint site.
> >
>
>
>

[Non-text portions of this message have been removed]

3.

Help with enabling RBS in SharePoint 2010

Posted by: "jason white" jasonwhitestl@gmail.com   sharepointjasonstl

Wed May 2, 2012 2:02 pm (PDT)



My DBA has configured our SharePoint SQL instance for file streaming, and
verified all of the settings are correct. I have been following Todd
Klindts post on configuring RBS, and everything seems fine until i get to
enabling RBS.

http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=174

The RBS client was downloaded from the Microsoft SQL Server 2008R2 feature
pack site http://www.microsoft.com/en-us/download/details.aspx?id=16978

The install command for the RBS client

msiexec /qn /lvx* rbs_install_log.txt /i RBS.msi
TRUSTSERVERCERTIFICATE=true
FILEGROUP=PRIMARY DBNAME="WSS_Content_Blob" DBINSTANCE="9904\sharepoint"
FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider

The command to enable RBS

PS C:\Users\white2> $cdb = Get-SPContentDatabase wss_content_blob
PS C:\Users\white2> $rbss = $cdb.RemoteBlobStorageSettings
PS C:\Users\white2> $rbss.Installed()
False
PS C:\Users\white2> $rbss.Enable()
Exception calling "Enable" with "0" argument(s): "SQL remote blob storage must
be installed on each web front end server and on the content database before it
may be used."
At line:1 char:13
+ $rbss.Enable <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Any help would be great

thanks,

Jason

[Non-text portions of this message have been removed]

4a.

View raw content of a SharePoint list

Posted by: "Peter Brunone" peter.brunone@gmail.com   peter_brunone

Thu May 3, 2012 8:24 am (PDT)



Does anyone have a good tool recommendation for this? I just want to see
every field of every item, and of course the browser UI tends to obscure a
lot of the data that users don't want to see.

Google hasn't given me anything helpful; I probably just don't have the
right terms.

Anyone?

[Non-text portions of this message have been removed]

4b.

Re: View raw content of a SharePoint list

Posted by: "Deanna Schneider" deanna.schneider@gmail.com   schneider_scholz

Thu May 3, 2012 10:04 am (PDT)



If you want to deal with XML, you can use the REST api stuff to get the
data. Just hit your site with a URL like so:
http://yoursite.org/_vti_bin/listdata.svc/YourList()

(Note - capitalization of the list name matters.)

On Thu, May 3, 2012 at 10:24 AM, Peter Brunone <peter.brunone@gmail.com>wrote:

> **
>
>
> Does anyone have a good tool recommendation for this? I just want to see
> every field of every item, and of course the browser UI tends to obscure a
> lot of the data that users don't want to see.
>
> Google hasn't given me anything helpful; I probably just don't have the
> right terms.
>
> Anyone?
>
> [Non-text portions of this message have been removed]
>
>
>

[Non-text portions of this message have been removed]

4c.

Re: View raw content of a SharePoint list

Posted by: "Venkatesh H" venkat82.h@gmail.com   venkat_82_20012001

Thu May 3, 2012 11:45 am (PDT)



Did u try Share Point Manager 2010? Try the Grid View of a Custom List in
that. It will show u the columns.

Regards,
Venkatesh

On Thu, May 3, 2012 at 11:24 AM, Peter Brunone <peter.brunone@gmail.com>wrote:

> **
>
>
> Does anyone have a good tool recommendation for this? I just want to see
> every field of every item, and of course the browser UI tends to obscure a
> lot of the data that users don't want to see.
>
> Google hasn't given me anything helpful; I probably just don't have the
> right terms.
>
> Anyone?
>
> [Non-text portions of this message have been removed]
>
>
>

[Non-text portions of this message have been removed]

Recent Activity
Visit Your Group
Y! Messenger

All together now

Host a free online

conference on IM.

Ads on Yahoo!

Learn more now.

Reach customers

searching for you.

Yahoo! Groups

Cat Zone

Connect w/ others

who love cats.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

No comments: