Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

symlink - C# CreateSymbolicLink doesn't follow through share access -


i'm not sure if c# problem or windows limitation.

i have server running program makes symbolic links in shared folder. can access through link form server normal disk path , share path.

if try access same share other pc can't access linked files. can delete rename... links can't follow links.

i checked acl of link , target files. should able access.

i use following function:

[dllimport("kernel32.dll")] static extern bool createsymboliclink(string lpsymlinkfilename, string lptargetfilename, int dwflags); 

maybe have set additional things? or have change windows settings on server?

sorry if solution not programming thing think here have best chances this.

edit 1:

i have share: c:\share

a link: c:\share\file.txt

to destination: d:\file.txt

if access share different pc can't access data of file.txt.

this page tuxera has description of reason

the similar concept of symbolic link available in windows vista. symbolic links can redirect file or directory defined absolute or relative path. when defined on remote file system, processed on local system, whereas directory junctions processed on file server, makes difference when target not accessible file server.

the createsymboliclink function create link interpreted client. client computer (not server) trying access file name d:\file.txt of course not exist on client.

for windows junction or reparse point work on server example. easiest way create 1 outside of code use sysinternals junction tool.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -