Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PageView WebPart give error in page

Status
Not open for further replies.

eman6

Programmer
Dec 7, 2004
578
CH
I am trying the PageView WebPart to show a folder in local drive (my SharePoint at home).
It does not show anything and I see at the status bar a message saying error on page.
When I click on the error, it displays a message box indicating an error in line 82 Char 3.
When I look at the page HTML using Front Page, I do not see any obvious error at line 82 at all.

Any idea? Would it be necessary/useful to copy the HTML page here?


______________________________________
Eman2005
Technical User
 
Hi,

Have you shared that folder, or have you made sure that sharepoint has access and rights to the folder you are trying to display?

Have you tried the wepart and pointing it to another location (i.e a page on the Internet) so that you know that the webpart works OK.

Regards,
Thomas
 
Yes, if I give a URL, it works, but if I give ANY path to file or folder it doesn't, even though I ticked the corresponding option.

______________________________________
Eman2005
Technical User
 
eman, what string are you giving to the page viewer?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'm not as think as you confused I am.
-----------
Flabbergasted (a.): Amazed at how much weight one has gained.
-----------
Oyster (n.): One who sprinkles their conversation with Yiddish expressions.
 
Something like: C:\whatever\someother\something
and I tried with an additional \ at the end too.

????

______________________________________
Eman2005
Technical User
 
Try prefacing the string with "file:///", as

"file:///c:\whatever\someother\something"

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'm not as think as you confused I am.
-----------
Flabbergasted (a.): Amazed at how much weight one has gained.
-----------
Oyster (n.): One who sprinkles their conversation with Yiddish expressions.
 
Still not working.

______________________________________
Eman2005
Technical User
 
Show us the bit of the page that's supposed to retrieve the folder.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'm not as think as you confused I am.
-----------
Flabbergasted (a.): Amazed at how much weight one has gained.
-----------
Oyster (n.): One who sprinkles their conversation with Yiddish expressions.
 
Code:
<WebPartPages:PageViewerWebPart runat="server" WebPart="true" __WebPartId="{731B66C2-A763-431F-BC84-6503D610D01C}" >
<WebPart xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns="[URL unfurl="true"]http://schemas.microsoft.com/WebPart/v2">[/URL]
  <Title>Page Viewer Web Part</Title>
  <FrameType>Default</FrameType>
  <Description>Use to display linked content, such as files, folders, or Web pages. The linked content is isolated from other content on the Web Part Page.</Description>
  <IsIncluded>true</IsIncluded>
  <PartOrder>3</PartOrder>
  <FrameState>Normal</FrameState>
  <Height />
  <Width />
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>true</AllowMinimize>
  <IsVisible>true</IsVisible>
  <DetailLink />
  <HelpLink />
  <Dir>Default</Dir>
  <PartImageSmall />
  <MissingAssembly />
  <PartImageLarge>/_layouts/images/mscntvwl.gif</PartImageLarge>
  <IsIncludedFilter />
  <ExportControlledProperties>false</ExportControlledProperties>
  <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
  <ContentLink xmlns="[URL unfurl="true"]http://schemas.microsoft.com/WebPart/v2/PageViewer">C:\whatever\something</ContentLink>[/URL]
  <SourceType xmlns="[URL unfurl="true"]http://schemas.microsoft.com/WebPart/v2/PageViewer">Folder</SourceType>[/URL]
</WebPart>
</WebPartPages:PageViewerWebPart>

______________________________________
Eman2005
Technical User
 
Or is it some option in the IE that is causing the page error?

I tried re-installing/repairing SharePoint, so I don't think it would still be a SharePoint WebPart problem.

Thomas2000 asked if I have the folder shared.
Do I have to set the folder in question as shared?



______________________________________
Eman6
Technical User
 
Hello,

Not sure if you need the folder to be shared, but have you made sure that this is not a rights/permission issue?
But again, if access would be denied to that specific folder, you should basically just either get prompted for username and password, or it would simply not display anything in the pageviewer webpart.

Have you made any changes through FrontPage? Did you add the webpart through Frontpage?

I do not seem to be able to replicate any errors.
When Trynig the pageviewer webpart here, accessing a folder namned download on my C drive I just chose:

file://c:\download and it displays just fine

Regards,
Thomas
 
Thomas2000
It does not work with ANY folder I enter and not just a specific one.
It worked in the past. I did not add any web part using Front Page.
I am more and more convinced it's the IE browser issue.
If you have a look at the two icons above Ar and Technology respectively, do not display on my screen. I could not find any obvious option setting that might be causing this.
These are active components (hover buttons).
I did not know that/how browser settings affect SharePoint functioning.

Any help in this direction is greatly appreciated.

______________________________________
Eman6
Technical User
 
Hi,

Ok as you say, it looks more and more like a browser issue.
Any other machines you could try with and see if it works there? When it comes to the pageviwer webpart, if you for example try to display just any HTTP link to a webpage does that work? Or do you still get an error?

What we have had problems with here at some clients are the webfolders. We upgraded our WSS and SPS with SP2 and after that some clients had problems with webfolders. What we did
was that we had to stop the service namned Web Client on the client machines. We stopped it and set it to manual and then the webfolders worked again.

Always hard to find out exactly what is causing the problem, if you know that it has worked in the passed.
Try to think of any changes you have done both on the WSS environment and your client.

I tried the website you posted and it works just fine here, so it sure does look like you have some problems with your webbrowser, so if you have the possibility to test from another machine and see if it works then you can atleast isolate the problem to a specific application (i.e the browser).

Also check the security settings in your browser, you could try and add your site to the Local intranet zone and then check the security settings there and make it low just to see if that will solve any problems.

Regards,
Thomas


 
Enabling Web Browser Applet Control (Options/Programs/Manage Add-Ons) allowed correct display of the active component icons on the web site I mentioned.
This setting is available in my Laptop/Windows XP Pro.
I do not even have this option in the list of currently used controls in my computer where SharePoint is installed.
By the way, I have SharePoint installed on one single machine only.

Another thing: there seems to be a persistent "police" in my IE with Windows Server 2003 against installing ActiveX components. The help bar persistently prompts me whenever I go to (my company site, btw).

This is really frustrating. It's my first experience with Windows Server2003 and I'm hating it, but I have to use it because of SharePoint.

______________________________________
Eman6
Technical User
 
Hello,

Do you have enhanced security turned on in the browser? If so, try and uninstall it.

My first experience with Win2003 was I LOVE IT :) but it sure can be frustrating when things does not work.

Since you said it used to work, then something must have changed. You are not using any policies that are being pushed out?

Regards,
Thomas
 
Enhanced security?
First time I hear about this.
And if Microsoft does not know that enhanced security would prevent some of their own product features from functioning, then that's a little pathetic, isn't it.

Anyway, I had a quick look and did not find this enhanced security thing. Any more info would be greatly appreciated.

______________________________________
Eman6
Technical User
 
Hello,

Could you list what you are running on the server side and on your clients side.

Like Operating System, Service Pack levels etc.

I would not think this is actually an issue with W2K3 or SharePoint, it looks as you said earlier, that you have some problems with the browser.
Have you been able to try this from other computers? Does this problem occur on just your machine to does other machines also experience this problem.

For troubleshooting reasons, having other machines to test from is always a very good thing. And also you said that you had problems viewing things on your company website, does other perons in your company have the same problems?

Regards,
Thomas
 
Got it!!!!! but only for the file link.
This works:
File://\Whatever\Something\filename.ext
but not:
C:\Whatever\Something\filename.ext
and not:
File://C:\Whatever\Something\filename.ext

etc

So now I know the trick (after many trials), and it is not even a browser issue. :)

However, I still could not get the link to a folder to work. I tried the same method File://\Whatever\Something
but failed, also with an aditional \ at the end. Also forward slash instead of backslash... all in vain.

To answer your questions:
I have SharePoint installed on a single separate machine for test/learning purposes. I cannot try on other machines.


______________________________________
Eman6
Technical User
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top