c# - Accessing the file system from a WCF service hosted in IIS -


i have need read , write files on server file system within wcf service hosted in iis. service called via silverlight 4 application , ria services. file paths can fixed known location on server having issues getting passed security issues , continue "access denied" errors. application uses forms authentication , web server configured anonymous access.

we haven't gotten passed issue in our development environment , i'm assuming in production can specify specific account in iis host site under , grant account specific rights file system. in development using vs 2010 development web server our options?

our goal simple creating new files or deleting files known path on server (i.e. "c:\temp\") within method call wcf service. it's acceptable temp folder underneath virtual directory.

your best option here: don't use dev server this; use iis. fighting tooling issues in unrelated trying waste of time, try mimic deployment environment closely possible.

you might able use iisexpress this, since know have nuances, i'd go whole-hog , use iis. lets hone deployment process, dev task.

once setup, create app-pool , associate new account (not your account, unless going account in production).


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -