MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Failed to generate a user instance of SQL Server ...

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Tue Dec 11, 2007 5:34 pm    Post subject: Failed to generate a user instance of SQL Server ... Reply with quote

.... due to failure in receiving user's application data path.

Okay, this simply cannot be a problem unique to me and I assume there is a
straight forward solution, but it escapes me.

I have completed a fully functional application using ASP.NET 2 on my
development site. Wanting to make it functional on a different server, I
installed SQL Express on the target server, then moved the application using
Visual Web Development to the new server.

The error message I used in the subject line started immediately.

The development system is Windows 2000 server while the target system is
running Windows 2003.

I suspect the problem is that I setup SQLexpress to use Windows
authentication, but I also made sure that it allows ASPNET full rights.

Can anybody lead me in the right direction with this? Thanks.

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
Peter Bromberg [C# MVP]



Joined: 31 Oct 2007
Posts: 22

PostPosted: Tue Dec 11, 2007 4:27 pm    Post subject: RE: Failed to generate a user instance of SQL Server ... Reply with quote

I wish I had a dollar for every time this one comes up! SQLEXPRESS only
supports "User Instance" connection mode on the local machine. To set up your
database on a remote web server, you need to either ATTACH the MDF file and
change your connection string, or use the database publishing wizard (free
download) to create a full SQL Script which you can then run against the
remote database to recreate your "Stuff".
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"James R. Davis" wrote:

> .... due to failure in receiving user's application data path.
>
> Okay, this simply cannot be a problem unique to me and I assume there is a
> straight forward solution, but it escapes me.
>
> I have completed a fully functional application using ASP.NET 2 on my
> development site. Wanting to make it functional on a different server, I
> installed SQL Express on the target server, then moved the application using
> Visual Web Development to the new server.
>
> The error message I used in the subject line started immediately.
>
> The development system is Windows 2000 server while the target system is
> running Windows 2003.
>
> I suspect the problem is that I setup SQLexpress to use Windows
> authentication, but I also made sure that it allows ASPNET full rights.
>
> Can anybody lead me in the right direction with this? Thanks.
>
>
>
Back to top
View user's profile Send private message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Tue Dec 11, 2007 6:55 pm    Post subject: Re: Failed to generate a user instance of SQL Server ... Reply with quote

I must be really dense because I cannot understand what you have just said
about SQLExpress. That is, on my development system (W2K server), I built
this application using SQLExpress. None of my testers had any trouble
whatever in connecting with the development site using its URL and
exercising the application. Further, on the target server the ASPNETDB.MDF
is on THAT server within the APP_DATA directory - it is local to the
application in other words.


"Peter Bromberg [C# MVP]" wrote in message@microsoft.com...
> I wish I had a dollar for every time this one comes up! SQLEXPRESS only
> supports "User Instance" connection mode on the local machine. To set up
your
> database on a remote web server, you need to either ATTACH the MDF file
and
> change your connection string, or use the database publishing wizard (free
> download) to create a full SQL Script which you can then run against the
> remote database to recreate your "Stuff".
> -- Peter
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> MetaFinder: http://www.blogmetafinder.com
>
>
> "James R. Davis" wrote:
>
> > .... due to failure in receiving user's application data path.
> >
> > Okay, this simply cannot be a problem unique to me and I assume there is
a
> > straight forward solution, but it escapes me.
> >
> > I have completed a fully functional application using ASP.NET 2 on my
> > development site. Wanting to make it functional on a different server,
I
> > installed SQL Express on the target server, then moved the application
using
> > Visual Web Development to the new server.
> >
> > The error message I used in the subject line started immediately.
> >
> > The development system is Windows 2000 server while the target system is
> > running Windows 2003.
> >
> > I suspect the problem is that I setup SQLexpress to use Windows
> > authentication, but I also made sure that it allows ASPNET full rights.
> >
> > Can anybody lead me in the right direction with this? Thanks.
> >
> >
> >
Back to top
View user's profile Send private message
Norman Yuan



Joined: 09 Aug 2007
Posts: 11

PostPosted: Tue Dec 11, 2007 9:07 pm    Post subject: Re: Failed to generate a user instance of SQL Server ... Reply with quote

I hate to say it, but here you go:

if you followed any ASP.NET2.0 book to build a web site and used ASP.NET
management wizard to create ASPNETDB, and you have SQL Server Express
installed, and you haven't study more on SQL Server Express's USER INSTANCE,
then the problem is the natural outcome. MS (most ASP.NET 2.0 books) really
should not make use of SQL Server Express' USER INSTANCE as default without
explicitly requiring user to understand it first. You should only use USER
INSTANCE when you know what it is and it is suitable to your application.

Back to your direct problem (assume you have certainly known what USER
INSTANCE is):

1. Does the other server have SQL Server Express or other version of SQL
Server? Only SQL Server Express support USER INSTANCE. If you run a web
application from a server of hosting service provider, it is most likely
they have full SQL Server (Std, or Ent. edition), not SQL Server Express.

2. Even the server has SQL Server Express installed, deso it have its USER
INSTANCE enabled? That is, when installing SQL Server Express, you can
choose to enable/disable USER INSTANCE.

3. ASPNETDB.mdf means nothing uless being attached to an instance of SQL
Server (including USER INSTANCE).

4. Most web application do not need to use USER INSTANCE.


"James R. Davis" wrote in message %23y2Z%23CPIHA.3532@TK2MSFTNGP04.phx.gbl...
>I must be really dense because I cannot understand what you have just said
> about SQLExpress. That is, on my development system (W2K server), I built
> this application using SQLExpress. None of my testers had any trouble
> whatever in connecting with the development site using its URL and
> exercising the application. Further, on the target server the
> ASPNETDB.MDF
> is on THAT server within the APP_DATA directory - it is local to the
> application in other words.
>
>
> "Peter Bromberg [C# MVP]" wrote in
> message
> @microsoft.com...
>> I wish I had a dollar for every time this one comes up! SQLEXPRESS only
>> supports "User Instance" connection mode on the local machine. To set up
> your
>> database on a remote web server, you need to either ATTACH the MDF file
> and
>> change your connection string, or use the database publishing wizard
>> (free
>> download) to create a full SQL Script which you can then run against the
>> remote database to recreate your "Stuff".
>> -- Peter
>> Site: http://www.eggheadcafe.com
>> UnBlog: http://petesbloggerama.blogspot.com
>> MetaFinder: http://www.blogmetafinder.com
>>
>>
>> "James R. Davis" wrote:
>>
>> > .... due to failure in receiving user's application data path.
>> >
>> > Okay, this simply cannot be a problem unique to me and I assume there
>> > is
> a
>> > straight forward solution, but it escapes me.
>> >
>> > I have completed a fully functional application using ASP.NET 2 on my
>> > development site. Wanting to make it functional on a different server,
> I
>> > installed SQL Express on the target server, then moved the application
> using
>> > Visual Web Development to the new server.
>> >
>> > The error message I used in the subject line started immediately.
>> >
>> > The development system is Windows 2000 server while the target system
>> > is
>> > running Windows 2003.
>> >
>> > I suspect the problem is that I setup SQLexpress to use Windows
>> > authentication, but I also made sure that it allows ASPNET full rights.
>> >
>> > Can anybody lead me in the right direction with this? Thanks.
>> >
>> >
>> >
>
>
Back to top
View user's profile Send private message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Wed Dec 12, 2007 10:29 pm    Post subject: Re: Failed to generate a user instance of SQL Server ... Reply with quote

It has been a constant problem for me to try to use SQLExpress on my target
server. When I moved the application to the new server I received any
number of connection error messages as indicated by this thread. When I
created a new site on that server and moved the application to it, it worked
perfectly. I checked the permissions on both sites and they are identical.

In any event, since the target server is mine and I have a full SQL 2005
instance running on it, I merely changed the connect strings to access data
bases within it (after I copied the attached Express databases into it, of
course) and now either the original target site or the new one work
perfectly.

This is not a criticism of Express exactly. I used it to develop the
application and it was not going to be the production server at all. I
merely wanted to test the application using Express before I went the extra
mile and moved to the full SQL instance.

Thanks for the feedback, guys.
"Peter Bromberg [C# MVP]" wrote in message@microsoft.com...
> I wish I had a dollar for every time this one comes up! SQLEXPRESS only
> supports "User Instance" connection mode on the local machine. To set up
your
> database on a remote web server, you need to either ATTACH the MDF file
and
> change your connection string, or use the database publishing wizard (free
> download) to create a full SQL Script which you can then run against the
> remote database to recreate your "Stuff".
> -- Peter
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> MetaFinder: http://www.blogmetafinder.com
>
>
> "James R. Davis" wrote:
>
> > .... due to failure in receiving user's application data path.
> >
> > Okay, this simply cannot be a problem unique to me and I assume there is
a
> > straight forward solution, but it escapes me.
> >
> > I have completed a fully functional application using ASP.NET 2 on my
> > development site. Wanting to make it functional on a different server,
I
> > installed SQL Express on the target server, then moved the application
using
> > Visual Web Development to the new server.
> >
> > The error message I used in the subject line started immediately.
> >
> > The development system is Windows 2000 server while the target system is
> > running Windows 2003.
> >
> > I suspect the problem is that I setup SQLexpress to use Windows
> > authentication, but I also made sure that it allows ASPNET full rights.
> >
> > Can anybody lead me in the right direction with this? Thanks.
> >
> >
> >

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Server Error (Resources) My ASP.NET app works with resources for loading text to the different controls (multilingual app) and everything works fine. but from time to time I have the following error. Then I have to wait for some time and my app continues working (I don't have to

web server connection to SQL Server - Login failed for user Cant get past the error in the subject line! I have my development machine running IIS and connecting to a database server over the network. I want to use integrated windows - so I added my anonymous user account to the database server IUSR

SQL Server application - User instance? Hi I'm about to start working on a simple SQL server based application. Since I'm often on the road I have to do development both from my workstation on the office, and from my laptop. What's the easiest way to develop towards a SQL server? I was thinking

Cannot create instance of C# COM server compile with VS 2005 Dear all, I had written a COM server using VS2005, and no problem if test in VB script. However, I copy the code from VB script to Excel VBA, it prompt "File or assembly name CsharpCOM or one of its dependencies, was not found." After the error, I compil

User Control Instance/DataGridView.Columns in Visual Studio I have a Windows Forms-based project in Visual Studio 2005, containing a simple user control (class) and a form (class) that hosts an instance of the user control. The user control class contains (aggregates) a DataGridView instance (using a private modif
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group