A couple of errors I am getting, both related to SQL Server, when trying to run an app on my local machine.. please help..!
I am in the following situation:

 - I have been requested to write an application for managing where we have customers - this must flag up when we try to add a customer too close to another one, so must be able to calculate distances based on post codes.
 - I have chosen to use ASP.Net VB because I am fairly good at that and I like that the browser does all of the layout for me (using Java or C# would mean having to position each element individually).
 - I have copied a few files from the company's website (which I also wrote) and modified them to account for the database structure we need for the new app.
 - I have designed the database to account for the requirements of the new app.
 - I have set up a website in IIS on port 81 through which to view the app. 


----------
Having done all this, I have been receiving various errors such as "Could not load type XXXX" (which at least means that the page is being detected since the type is specified at the top of the aspx page, but no more information is given about what the error is caused by).

The next error was **"An attempt to attach an auto-named database for file App_Data/XYZ.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**. This error only occurs on the website when running from Visual Web Developer. It does not occur on the site I have set up in IIS on port 81.

Having got past the above error by using port 81, I am now getting another error - **"CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**. This has me completely stumped as I am not even trying to create this database. It is occurring when trying to execute the delete procedure (which currently does nothing). When executing the select procedure (SELECT * FROM Contacts) this error does not occur. I have not tried updating or inserting yet.

So to sum up, I am getting two problems - one when trying to run from VWD (**"An attempt to attach an auto-named database for file App_Data/XYZ.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**) and one when trying to run from the site I set up in IIS on port 81 (**"CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**). I have no idea how to get past these and have never come across these before.

I need to be able to delete data aswel so I would REALLY appreciate it if someone could hint me in the right direction to solve this error. Many thanks in advance.

Regards,

Richard
A couple of errors I am getting, both related to SQL Server, when trying to run an app on my local machine.. please help..!
===

I am in the following situation:

 - I have been requested to write an application for managing where we have customers - this must flag up when we try to add a customer too close to another one, so must be able to calculate distances based on post codes.
 - I have chosen to use ASP.Net VB because I am fairly good at that and I like that the browser does all of the layout for me (using Java or C# would mean having to position each element individually).
 - I have copied a few files from the company's website (which I also wrote) and modified them to account for the database structure we need for the new app.
 - I have designed the database to account for the requirements of the new app.
 - I have set up a website in IIS on port 81 through which to view the app. 


----------
Having done all this, I have been receiving various errors such as "Could not load type XXXX" (which at least means that the page is being detected since the type is specified at the top of the aspx page, but no more information is given about what the error is caused by).

The next error was **"An attempt to attach an auto-named database for file App_Data/XYZ.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**. This error only occurs on the website when running from Visual Web Developer. It does not occur on the site I have set up in IIS on port 81.

Having got past the above error by using port 81, I am now getting another error - **"CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**. This has me completely stumped as I am not even trying to create this database. It is occurring when trying to execute the delete procedure (which currently does nothing). When executing the select procedure (SELECT * FROM Contacts) this error does not occur. I have not tried updating or inserting yet.

So to sum up, I am getting two problems - one when trying to run from VWD (**"An attempt to attach an auto-named database for file App_Data/XYZ.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**) and one when trying to run from the site I set up in IIS on port 81 (**"CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."**). I have no idea how to get past these and have never come across these before.

I need to be able to delete data aswel so I would REALLY appreciate it if someone could hint me in the right direction to solve this error. Many thanks in advance.

Regards,

Richard