473,382 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Is there a way to remove Application Services from the config?

hi,

For some reason one of my sites is throwing an ugly error message when
I deploy it to a remote server.

The error looks like this: "Failed to generate a user instance of SQL
Server due to failure in retrieving the user's local application data
path. Please make sure the user has a local user profile on the
computer. The connection will be closed. "

Locally, it runs great but when I deploy it to a production server
running SQL 2005 Standard it dies.

I'm assuming that it works locally because SQL Express can initialize
when the site first loads. However, when I run it on the remote
server the identity of the Applcation Pool doesn't have sufficient
permissions or is misconfigured to run SQL Express so it throws this
error.

If we run SQL Express Studio then the site runs but as soon as we
restart the application after closing Express it dies again. Clearly
it's related.

After looking into the web.config I see the LocalSQLServer connection
string. We tried to remove it but that generated a 'provider'
error.

I've done some research and have found ways to use SQL Server Standard
by creating an Application Services db on the remote server but that's
not what I want to do.

This site uses nothing from Application Services so ideally it just
doesn't require any database at all.

How can I configure the site to ignore the dependency on SQL Express?

Any help is much appreciated.
Jun 27 '08 #1
1 1149
I'm not sure what your dependency on express is and how it is related to the
config file. Aren't you simply querying data from a back end store?

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------
<ka****@yahoo.comwrote in message
news:11**********************************@p39g2000 prm.googlegroups.com...
hi,

For some reason one of my sites is throwing an ugly error message when
I deploy it to a remote server.

The error looks like this: "Failed to generate a user instance of SQL
Server due to failure in retrieving the user's local application data
path. Please make sure the user has a local user profile on the
computer. The connection will be closed. "

Locally, it runs great but when I deploy it to a production server
running SQL 2005 Standard it dies.

I'm assuming that it works locally because SQL Express can initialize
when the site first loads. However, when I run it on the remote
server the identity of the Applcation Pool doesn't have sufficient
permissions or is misconfigured to run SQL Express so it throws this
error.

If we run SQL Express Studio then the site runs but as soon as we
restart the application after closing Express it dies again. Clearly
it's related.

After looking into the web.config I see the LocalSQLServer connection
string. We tried to remove it but that generated a 'provider'
error.

I've done some research and have found ways to use SQL Server Standard
by creating an Application Services db on the remote server but that's
not what I want to do.

This site uses nothing from Application Services so ideally it just
doesn't require any database at all.

How can I configure the site to ignore the dependency on SQL Express?

Any help is much appreciated.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Jeremy Ames | last post by:
I have created a web application that uses a custom control and a web service on my local system. I have gotten all of the bugs worked out on my local system and now it is time to move it to the...
2
by: Wayne | last post by:
I have an application where I added a comment as the first line of my Config file, as I found out I can't do this. However, an entry was made in the event log about the error (Source = .net...
9
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all...
21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
3
by: Stephen Ahn | last post by:
Given a web service method defined like this : public string EchoByteArray(byte data) { return data.Length.ToString() + " bytes received"; } If, from a Windows C# app, I call this web...
0
by: damian.rimmer | last post by:
I'm using a custom assembly (DPE) in reporting services, but I'm having problems getting the class library to find DB configuration settings in a config file. I'm using the excellent Data...
0
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
3
by: =?Utf-8?B?bWdvcHBlcnQ=?= | last post by:
I'm having an issue with using web services in a web application marked with session cookieless attribuet set to "AutoDetect". My real life scenario is too complex to lay out but here's my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.