Application Directory & Deployment

Z

zethon

This is my first ASP 2.0 project and I'm running into a snag now that
I'm trying to deploy the project.

On my development machine, whenever I browse to the site via the IDE
webserver, the URL bar looks like this:

http://localhost:1234/directoryname/default.aspx

Which works just fine. However, when I deploy the website onto an
actual server, the URL looks like this:

http://12.34.56.78/default.aspx

I think this is causing some problems. Namely, I think it's causing an
issue with Profiles and Roles.

What I've done is use custom providers for all the authentication,
profiles, roles and all that other good stuff, and that data is stored
in the app's main database file on my development machine.

So, I have one database file that stores all the user info, profile
info, role info and all the app's info. I took that database (SQL
Server Express on my dev machine), back'd up the database and then
restored it on the deployment machine's database (SQL Server).

Most things look fine, except that none of the user's roles carried
over, and I believe this has something to do with the "application id"
that's mapped to the application directory as I mentioned above.

Does anyone have a suggestion as to how I an fix this?

Thanks!
 
G

Guest

<membership defaultProvider="OracleMembershipProvider">
<providers>
<clear/>
<add name="OracleMembershipProvider"
.................
applicationName=".WebSiteProject"/>
</providers>
</membership>

do you fill the applicationName tag in your membership, profile and role ?
 
Z

zethon

Right now it simply says applicationName="/"

Which seems like that should work. Hmm... I will try changing i.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top