I have been trying to figure this out for weeks now and I dont know what is going on. I am trying to insert a row into a database and for some reason it gives me this error. I really need help on this, I have been trying to figure this out for SO long and I can't find anything anywhere.
Unable to open the physical file "C:\ASP.NET\App_Data\dbInfo.mdf". Operating system error 5: "5(Access is denied.)".
An attempt to attach an auto-named database for file C:\ASP.NET\App_Data\dbInfo.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Go to the complete details ...