d_kudalkar

Hi all,

Currently I am facing problem while accessing text document in notepad from SharePoint server located on port other than 80.

SharePoint server is located at path:

http://sharepoint-serv:26791/sites/mysite

I have uploaded text document (SharePoint Doc.txt) on path

http://sharepoint-serv:26791/sites/mysite/mydocs

I tried to access the document as:

1) I opened notepad

2) Clicked on File>>Open menu

3) Typed path http://sharepoint-serv:26791/sites/mysite in Filename section, and selected file SharePoint Doc.txt.

4) But the file opened as SharePoint Doc[1].txt, means notepad downloaded to folder - "Temporary internet files" which is not

expected(if you open any word document on SharePoint server, it is directly opened from SharePoint server without downloading

it on local machine).

5) When I tried to save the document, the Error message displayed as

Cannot create the C:\Documents and Settings..... \Temporary Internet Files\...\Sharepoint Doc[1].txt

Make sure that path and filename are correct.

How can I open the text document in notepad and save the changes

If the SharePoint server is located on default port (port 80), this problem doesn't exist.

When I tried to access document on other SharePoint server in notepad

http://sharepoint-serv/Shared%20Documents

It's working perfectly.

I am using operating system Windows XP with service pack 2 installed.

SharePoint server in located in intranet having operating system Windows Server 2003

It seems notepad dialog box can not open documents for port other than 80.

Are there any settings required to solve this problem



Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

MatthewMcD

I think this is a limitation of notepad. I would try two things.

See if you can open the document in word. Word handles the path better.

Try using a UNC path in Notepad. \\sharepoint-serv:26791\sites\mysite\SharePoint%20Doc.txt. Though I don't think notepad will do that either.






Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

d_kudalkar

MatthewMcD,

thanks for your reply.

I have tried to open the path as you have mentioned \\sharepoint-serv:26791\sites\mysite\SharePoint%20Doc.txt

But still it's not working.

I can access SharePoint document on port other than 80 in MS Word. But in my case, I can not use MS Word to open the document.

Reason is I want to access SharePoint document in my C# application.

For that I have to use Open File Dialog box and Save File Dialog box to select the the document and save the newly created document on the SharePoint server.

Using MS Word dialog box, I can open the document successfully in my application. But the problem exists with saving the document. The newly created document to save is not necessarily Word document, it can be pdf or txt (or some other extension). So I need to pass filters to Save File Dialog box. And For MS Word Save File dialog box, we can not pass filters. So I have preferred to use Standard dot net dialog boxes (Which are similar as dialog boxes used in notepad) Standard dot net dialog boxes works finely for with filters but has some problems with accessing SharePoint documents on port other than 80.

I am accessing MS Word dialog box using Word.Application in C# (com - Word 11.0 library).

If we can pass filters to MS Word Save File dialog box, then also my problem can be solved.

Please send me your remarks.





Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

MatthewMcD

Can you use a host header for your site so you can run it on port 80






Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

d_kudalkar

Matthew,

For our application, we can not restrict user for installation of SharePoint server on port 80 only.

User can configure his SharePoint server on any port. Also he can create sub site on another port.

So in such cases, dot net dialog box fails.





Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

MatthewMcD

I would ask this question in the development forum. I don't have any other advice for you at this point.






Re: SharePoint - General Question and Answers and Discussion Problem while accessing text document in notepad from SharePoint server located on port other than 80

d_kudalkar

Thanks..

Then I hope my problem will get solved soon..