System.UnauthorizedAccessException

1

101

Don't want to double post but, I am hoping someone here may know the answer:

That sounded like it, but I am getting the same error. I used the wizard to
fully trust C:\Inetpub\wwwroot\VBNET\ManagingData\bin\ManagingData.dll

but got the error "System.UnauthorizedAccessException: Access to the path
"c:\inetpub\wwwroot\VBNET\ManagingData\CategoriesProductsSchema.xsd" is
denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share) at System.Xml.XmlTextWriter..ctor(String
filename, Encoding encoding) at System.Data.DataSet.WriteXmlSchema(String
fileName) at ManagingData.EditProducts.btnSave_Click(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\VBNET\ManagingData\EditProducts.aspx.vb:line 574"

Like I said, when ASPNET is a member of Admin it works, is there something
else I need to Fully Trust?
 
1

101

FYI - Actually Fully Trusting the assembly did help but it appears that file
and print sharing on XP PRO must be installed and the folder containing the
document must be shared on the network with write privliges.

IOW - you must Fully Trust the APP and Allow network users to change my
files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top