.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to access server/share resources from an internal/intranet Web Part?

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :SharePoint
We are a team of native-client/webforms developers who have been tasked with developing an internal intranet SharePoint system for our team. We want a WebPart that displays sets of files on internal shares, allows selection of subset(s), and then downloads the files to the local machine. Basically it's a builds/test-artifacts/documents "getter" scenario. We created less elaborate web sites that do somethihng like this (as proof of concept.) However, no matter what we do with our WebPart, it will not allow access to non-local(host) shares, files, etc. The WebPart CAN access said shares/files when the entire thing - client (IE session) and debug[ger/gee] etc - are run on a single dev box. However, when we attempt to run the client on a different machine accessing the dev box (in a server role), the code cannot access the network resources (for example, File.Exists() and Directory.Exists() fail.) How can we make this work?

View Complete Post

More Related Resource Links

Need to use Fileupload control on webserver in DMZ to save to internal server share


 I've seen several posts that are somewhat similar, but no usable answers. The issue is that I need to use the Fileupload control on the asp 3.5 webserver (IIS7) in the DZM to save a file (mainly word, excel types) on a server share inside the firewall. Don't want to open up full windows access, nor use AD - also issues of what user would the website use to save the file. Not my network, so various security limits involved as well.

Other option would be for internal users (who are the ones who need the files) to access the webserver in the DMZ - same issues, but not quite as big a security issue if web server can't see inside. Again, user authentication would be an issue.

How have others solved this problem?


Domain account from SQL box needs to access file share on DMZ server


We have a web server set up on the DMZ that talks to a SQL 2005 server on the company domain.

The issue is, we are trying to install this CMS engine that requires a domain account from the SQL server to access a share on the web server that is in the DMZ. 

Is there a way to trust a domain account to have access to a share on the DMZ server?  I have heard of "read only" and one way trusts.  Is that secure and if so how would we go about setting that up?

Basically I want to avoid at all costs of putting the SQL Server on the DMZ server but need a seamless way to access a file share from the trusted SQL Server.

Unable to access Site page having data from web part after restoring it to another server



I am trying to restore site backup to another server using following powershell cmdlet:

  • import-spweb -identity siteurl -path abc.cmp

Before starting restore I have created the site with template same as present on source server. After executing the command it did not displayed any error in the Management shell window. When I checked the log file it displayed 127 warnings and 1 error as follows:

  • Error: List Images could not be imported because it uses the DocumentLibrary base template and the destination uses the 851 base template.
  • Warning: User or group 18080 cannot be resolved.

When I am trying to access the page of the page library it is navigating to error page. This page contains Data form web part which is referencing the lists in the site. In the ULS logs I found following error:

  • PermissionMask check failed. asking for 0x00000005, have 0x400000300C231061

I tried follwoing resolution steps:

  • Provided the Full permission to the current user through which am accessing the site.

Still I am not able to fix the issues. Can anybody please guide me what would be the cause of these errors and what could be the resolution.


Test Run: Configuration Testing With Virtual Server, Part 2


Because Virtual Server is built upon a set of COM modules, you can automate the creation and testing of virtual machines. Here we use Windows PowerShell to run the tests.

Dr. James McCaffrey and Paul Despe

MSDN Magazine December 2008

Test Run: Configuration Testing With Virtual Server, Part 1


This time James McCaffrey sets up a virtual environment to use for configuration testing to introduce you to software configuration testing with Microsoft Virtual Server

Dr. James McCaffrey

MSDN Magazine September 2008

Foundations: Adding Code Access Security to WCF, Part 2


This month's column continues the discussion around code access security in WCF and partially trusted services.

Juval Lowy

MSDN Magazine July 2008

Foundations: Code Access Security in WCF, Part 1


Here we discuss code-access security in Windows Communication Foundation (WCF) and present a solution for enabling partially trusted clients for WCF services.

Juval Lowy

MSDN Magazine April 2008

Service Station: An XML Guru's Guide to BizTalk Server 2004, Part I


Who would have believed that XML, such a seemingly trivial technology, could revolutionize an industry? It may have seemed like a long shot in the beginning, but the XML aficionados saw something special and pragmatic right away-a sort of duct tape for the world's information systems.

Aaron Skonnard

MSDN Magazine November 2005

Data Points: The Enterprise Library Data Access Application Block, Part 3


E nterprise applications can have a wide variety of data update requirements. Sometimes you need to save multiple rows of changes at once within a single transaction. Other times, the user must be allowed to enter multiple rows of data, send them to the database in a batch; and if a row or two fails, only the rows that succeeded should be committed and remain committed.

John Papa

MSDN Magazine October 2005

Data Points: The Enterprise Library Data Access Application Block, Part 2


Last month I explored the foundation of the Enterprise Library Data Access Application Block (DAAB) including how it all fits into an architecture (see Data Points: The Enterprise Library Data Access Application Block, Part 1).

John Papa

MSDN Magazine August 2005

Data Points: The Enterprise Library Data Access Application Block, Part 1


A solid data access later (DAL) can benefit an application by hiding redundant tasks, helping handle exceptions more gracefully, helping clean up resources more efficiently, and providing a layer of abstraction from the database.

John Papa

MSDN Magazine July 2005

SharePoint Portal Server 2001: Search and Access Disparate Data Repositories in Your Enterprise


The knowledge worker is greatly empowered if she is able to access information across the enterprise from a central access point. With the SharePoint Portal Server 2001 Search Service you can catalogue information stored in Exchange public folders, on the Web, in the file system, and even in Lotus Notes databases. This article discusses the use of ActiveX Data Objects and the Web-based Distributed Authoring and Versioning protocol for creating search solutions based on SharePoint Portal Server 2001.

Kayode Dada

MSDN Magazine April 2002

SharePoint: SharePoint Portal Server Makes Your Intranet More Manageable and Easier to Navigate


Most large organizations have mounds of disjointed information in a variety of formats spread out across an enterprise. To make the most efficient use of that information, it must be readily accessible, easy to identify, and simple to navigate. SharePoint Portal Server 2001 unifies information by allowing members of any organization to create, share, and publish documents from a single access point. This article covers the services in SPS that can help an organization improve workflow and information management.

Darrin Bishop

MSDN Magazine September 2001

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend