473,480 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems deploying membership on a hosted environment

I ran the aspnet_regsql.exe tool with the -sqlexportonly option to create the
script. I searched and replace the string [dbo] by [mySchema] and had the
dba's run the script. When I do anything like Membership.CreateUser or click
on the 'security' tab in the website admin tool I get... Could not find
stored procedure 'dbo.aspnet_CheckSchemaVersion'.
I think this is because "dbo" is harcoded in the framework. The hosting
company won't let us use the dbo user of course. Do I have yo rewrite the
provider? Is there any other and easyer workaround for getting this to work?
Thank you very much

--------------------
Iván Sainz
Ahead Labs, S.L.
Apr 10 '07 #1
2 1729
Dbo isn't a user, it's a schema. Are you sure that you can't apply the
schema yourself? By default, the schema ownership will be for the user
account that was logged in to create the tables/stored procedures but that
doesn't mean you're limited to it. dbo isn't a user itself, it's a role and
your user account is probably already in that role, just using a seperate
owner schema. Try creating a new table so that you have an object generated
with your current schema. Then run the following stored procedure

sp_changeobjectowner 'itemname','dbo' where itemname is the name of the new
object.

This should change the schema to dbo and you can check and see if you can
still access the object OK through a tool like sql management console. If
that works then you can use this procedure to change the schema of all the
aspnet objects needed for membership.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Iván Sainz" <Iv******@discussions.microsoft.comwrote in message
news:0D**********************************@microsof t.com...
>I ran the aspnet_regsql.exe tool with the -sqlexportonly option to create
the
script. I searched and replace the string [dbo] by [mySchema] and had the
dba's run the script. When I do anything like Membership.CreateUser or
click
on the 'security' tab in the website admin tool I get... Could not find
stored procedure 'dbo.aspnet_CheckSchemaVersion'.
I think this is because "dbo" is harcoded in the framework. The hosting
company won't let us use the dbo user of course. Do I have yo rewrite the
provider? Is there any other and easyer workaround for getting this to
work?
Thank you very much

--------------------
Iván Sainz
Ahead Labs, S.L.

Apr 10 '07 #2
Mark, I try to execute what you posted by I get the following message:

Msg 15247, Level 16, State 1, Procedure sp_changeobjectowner, Line 17
User does not have permission to perform this action.

Is that dbo string hardcoded in the framework? I am sure that I am not the
first one trying to deploy an ASP.NET 2.0 website to a hosted environment
without dbo permissions in the SQL Server 2000. It must be an easy solution.

Thank you for your time.

__________________________
"Mark Fitzpatrick" wrote:
Dbo isn't a user, it's a schema. Are you sure that you can't apply the
schema yourself? By default, the schema ownership will be for the user
account that was logged in to create the tables/stored procedures but that
doesn't mean you're limited to it. dbo isn't a user itself, it's a role and
your user account is probably already in that role, just using a seperate
owner schema. Try creating a new table so that you have an object generated
with your current schema. Then run the following stored procedure

sp_changeobjectowner 'itemname','dbo' where itemname is the name of the new
object.

This should change the schema to dbo and you can check and see if you can
still access the object OK through a tool like sql management console. If
that works then you can use this procedure to change the schema of all the
aspnet objects needed for membership.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Iván Sainz" <Iv******@discussions.microsoft.comwrote in message
news:0D**********************************@microsof t.com...
I ran the aspnet_regsql.exe tool with the -sqlexportonly option to create
the
script. I searched and replace the string [dbo] by [mySchema] and had the
dba's run the script. When I do anything like Membership.CreateUser or
click
on the 'security' tab in the website admin tool I get... Could not find
stored procedure 'dbo.aspnet_CheckSchemaVersion'.
I think this is because "dbo" is harcoded in the framework. The hosting
company won't let us use the dbo user of course. Do I have yo rewrite the
provider? Is there any other and easyer workaround for getting this to
work?
Thank you very much

--------------------
Iván Sainz
Ahead Labs, S.L.


Apr 10 '07 #3

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

Similar topics

0
1240
by: Corvettious | last post by:
I have been deploying my ../Bin/*.dlls with no problem until finally I tried to deploy the latest and the FTP site will not longer allow me to upload a certain DLL.... So I thought, fine I will do...
5
1280
by: Jordan S | last post by:
I'm kind of new to all of this Web app development and have developed an ASP.NET Web application under the default c:\inetpub\wwwroot\myApp. I just went to move it to a hosted site and I'm having...
1
2320
by: Mark Olbert | last post by:
I've written a custom MembershipProvider and a custom RoleProvider, and am trying to get them to work with the ASP.NET Configuration tool. Which is a royal pain in the butt, because there doesn't...
3
1623
by: Carl M. | last post by:
Okay, I'm 18 hours into this now and am at a loss. What I've done is create an application on my local workstation using VWD Express using the membership/roles provider and SQL Server Express...
5
1459
by: sloan | last post by:
Are there any "gotchas" on deploying the default Membership Provider (aspnetdb) to a hosting provider? I'm about to do it. And how does one get to the "auto configurer" .. that allows you to...
4
3249
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
5
2894
by: Mahernoz | last post by:
Hi Everyone! I have a problem here. I have used the latest asp.net membership & profiles functionality in my site. I have 2 roles admin and user. I also have a user named admin. Now, my...
3
2000
by: Michael Lang | last post by:
Hi there, I have a web application that works fine on my local dev machine. However I'm having less success on my hosting environment. When I detach the database for this site, copy it to my...
1
2618
by: cs_in_va | last post by:
I currently have a database with tables and data hosted with GoDaddy and now I want to add ASP.NET membership to restrict access and have people login etc. I have watched several videos on this...
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7027
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5318
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.