PC Review


Reply
Thread Tools Rate Thread

Web form error

 
 
Taishi
Guest
Posts: n/a
 
      4th Feb 2004
Windows Pro
VS.Net
..Net Framework
ASP.NET
My 1st time using Web Forms in .Net

I am receiving the following error:

System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in
database 'master'. Could not attach database 'pubs' to file 'D:\Program
Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.

I tried the following:

Reboot 4-5 times
Share the folder
Web share the folder


Any ideas?

Thanks for your help,
T.



 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      4th Feb 2004
Hi,

You do not have permission to create a database that is why you are
getting that error. Check your security settings.

In the C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Setup directory is the instpubs.sql script. From the
command line in that directory try this.

isql /Usa /Psapassword /Sserver -i\instpubs.sql

replace sapassword with your sa password. blank by default (should change
if it is)

replace server with the msde server name it should be your machine
name\VSdotNet

Ken
--------------------------------
"Taishi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Windows Pro
> VS.Net
> .Net Framework
> ASP.NET
> My 1st time using Web Forms in .Net
>
> I am receiving the following error:
>
> System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in
> database 'master'. Could not attach database 'pubs' to file 'D:\Program
> Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.
>
> I tried the following:
>
> Reboot 4-5 times
> Share the folder
> Web share the folder
>
>
> Any ideas?
>
> Thanks for your help,
> T.
>
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      4th Feb 2004
Hi Taishi,

Mostly this error is because the webform is using the user IUSR and/or
ASPNET I would try if you can give (if you want that) those users rights on
that access file.

I hope this helps,

Cor


 
Reply With Quote
 
Taishi
Guest
Posts: n/a
 
      4th Feb 2004
Ken,

Do this from the VS.NET command prompt?

isql /Usa /Psapassword /Sserver -i\instpubs.sql

Where is the isql located?

It is not a command on my drive.

Thanks,
T.

Do you mean
"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi,
>
> You do not have permission to create a database that is why you

are
> getting that error. Check your security settings.
>
> In the C:\Program Files\Microsoft Visual Studio .NET
> 2003\SDK\v1.1\Samples\Setup directory is the instpubs.sql script. From

the
> command line in that directory try this.
>
> isql /Usa /Psapassword /Sserver -i\instpubs.sql
>
> replace sapassword with your sa password. blank by default (should change
> if it is)
>
> replace server with the msde server name it should be your machine
> name\VSdotNet
>
> Ken
> --------------------------------
> "Taishi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Windows Pro
> > VS.Net
> > .Net Framework
> > ASP.NET
> > My 1st time using Web Forms in .Net
> >
> > I am receiving the following error:
> >
> > System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in
> > database 'master'. Could not attach database 'pubs' to file 'D:\Program
> > Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.
> >
> > I tried the following:
> >
> > Reboot 4-5 times
> > Share the folder
> > Web share the folder
> >
> >
> > Any ideas?
> >
> > Thanks for your help,
> > T.
> >
> >
> >

>
>



 
Reply With Quote
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      4th Feb 2004
Hi,

http://msdn.microsoft.com/library/de...intro_3nsj.asp

Ken
----------------------
"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
> You do not have permission to create a database that is why you are
> getting that error. Check your security settings.
>
> In the C:\Program Files\Microsoft Visual Studio .NET
> 2003\SDK\v1.1\Samples\Setup directory is the instpubs.sql script. From
> the
> command line in that directory try this.
>
> isql /Usa /Psapassword /Sserver -i\instpubs.sql
>
> replace sapassword with your sa password. blank by default (should change
> if it is)
>
> replace server with the msde server name it should be your machine
> name\VSdotNet
>
> Ken
> --------------------------------
> "Taishi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Windows Pro
>> VS.Net
>> .Net Framework
>> ASP.NET
>> My 1st time using Web Forms in .Net
>>
>> I am receiving the following error:
>>
>> System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in
>> database 'master'. Could not attach database 'pubs' to file 'D:\Program
>> Files\Microsoft SQL Server\MSSQL$NETSDK\Data\pubs.mdf'.
>>
>> I tried the following:
>>
>> Reboot 4-5 times
>> Share the folder
>> Web share the folder
>>
>>
>> Any ideas?
>>
>> Thanks for your help,
>> T.
>>
>>
>>

>
>



 
Reply With Quote
 
Taishi
Guest
Posts: n/a
 
      9th Feb 2004
I am using MSDE. And I don't know how to change the rights. I found the
following:

http://www.aspenterprisemanager.com/

I unzipped it but I have no clue on how to execute it. It has 4 folders and
3 files.

folders:
_classes
_codeBehinds
app
bin
3 files:
default.asp
global.asax
web.config

How do I run this Enterprise Manager?

Thanks,
T.

"Cor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Taishi,
>
> Mostly this error is because the webform is using the user IUSR and/or
> ASPNET I would try if you can give (if you want that) those users rights

on
> that access file.
>
> I hope this helps,
>
> Cor
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      10th Feb 2004
Hi Taishi,

I do not know, how you can run that Enterprise manager this is the first
time I see it.

But when I did want to get an answer on this question I would ask that in a
newsgroup as

microsoft.public.dotnet.framework.adonet

or in a

microsoft SQL server newsgroup.

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form/Subform/Command Button to Open Form - Type Mismatch Error =?Utf-8?B?U2hhcm9u?= Microsoft Access Form Coding 2 12th Jul 2007 11:02 PM
Form that is not a top-level form cannot be displayed as a modal dialog box error =?Utf-8?B?S2VycnkgTW9vcm1hbg==?= Microsoft VB .NET 4 14th Mar 2007 04:47 PM
Closing a form error 2585 This action cannot be carried out while processing a form or report event SDLittle13@gmail.com Microsoft Access Form Coding 4 11th Mar 2007 06:58 PM
Close form then Delete form = Error as "Not Closed' =?Utf-8?B?Q2FuIE9mIFdvcm1z?= Microsoft Access Form Coding 1 21st Feb 2007 11:03 PM
Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form Angus Comber Microsoft Access 2 19th Jul 2006 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:28 PM.