CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 12/28/2006 8:59:32 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 13 Views: 63 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
14 Items, 1 Pages 1 |< << Go >> >|
hypercode
Asp.Net User
Getting Login to work on Remote Server12/28/2006 8:59:32 PM

0/0

Hi Folks,

I'm tring to get  my Login Controls to work on a remote machine on my LAN. The remote machine running:
XP Pro with IIS 5.1
SQL Server Express
,Net FX 2.0

The site is the Default site of IIS.

The login controls work great on my development machine. When I deploy to the server machine, I can't log in.

I have an Access database in the App_Data folder that I can access just fine, no problem. But the Login won't work. Tried everything I could come up on this. There are many posts across the web about this and I tried pretty much everything those guys tried and more.

I get this error:
An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

What can I do to get the login to work?
Thanks much!

rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/28/2006 9:08:59 PM

0/0

Tell us what you have tried so far.
Jared Roberts
Lead Application Developer
rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/28/2006 9:11:39 PM

0/0

Also post your login.aspx and login.aspx.vb or cs pages. Thanks
Jared Roberts
Lead Application Developer
rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/28/2006 9:13:54 PM

0/0

Also, does the remote XP Pro machine have norton, mcafee, microsoft or some other firewall software on it? also let us see your web.config to see your connection string settings. thanks

 look at this too

http://support.microsoft.com/kb/914277


Jared Roberts
Lead Application Developer
hypercode
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 3:45:32 AM

0/0

rojay, thanks for jumpin in!

I have no connectionstrings hard coded in the web.config file.

No firewall or AV programs, Brebones installation. XP firewall not running.

I started on fresh install of everything from formatted hard drive. All XPSP2 updates.

I played with settings in SQL Server protocols, surface configuration, changed connection string

properties, Made new pages with only two users for loggin in. Made adjustments in IIS. I didn't

screw up anything (hopefully) - always put it back.

Modified connection string in machine.config.

String shown in ASPNETDB properties in Visual Web Developer:
Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Site\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=True


web.config file:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 <appSettings/>
 <connectionStrings/>
 <system.web>  
    <roleManager enabled="true"/>
  <compilation debug="false" strict="false" explicit="true"/>
  <pages>
   <namespaces>
    <clear/>
    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <add namespace="System.Web"/>
    <add namespace="System.Web.Caching"/>
    <add namespace="System.Web.SessionState"/>
    <add namespace="System.Web.Security"/>
    <add namespace="System.Web.Profile"/>
    <add namespace="System.Web.UI"/>
    <add namespace="System.Web.UI.WebControls"/>
    <add namespace="System.Web.UI.WebControls.WebParts"/>
    <add namespace="System.Web.UI.HtmlControls"/>
   </namespaces>
  </pages>
  <authentication mode="Forms"/> <!--also tried mode="Windows"-->  
 </system.web>
</configuration>

I'll post the string from the server .Net FX/machine.config file when I get to the machine.

hypercode
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 4:28:13 AM

0/0

Here's the connection string from .NetFX/machine.config:

<connectionStrings>

<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;Connect Timeout=20;User Instance=true" providerName="System.Data.SqlClient"/>

</connectionStrings>

Here's the String shown in ASPNETDB properties in Visual Web Developer:

Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Site\App_Data\ASPNETDB.MDF;Integrated Security=True;User Instance=True

Here's the String from ASP.Net properties in Internet Information Services:

data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;Connect Timeout=20;User Instance=true


In the machine.config file, all of the providers have applicationName="/". This "/" is also shown in the database in the first table under ASPNETDB

 Any ideas? What should I do next? Besides start rippin out my hair, LOL!

rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 4:42:36 AM

0/0

good scottgu article.  he is genius 

http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx

 

also have you tried this.

http://blah.winsmarts.com/2006/05/19/aspnetdb--production-deployment--practical-tips.aspx

I would suggest installing sql server management studio express and attaching the database from it on the production box

http://msdn.microsoft.com/vstudio/express/sql/download/ 

 


Jared Roberts
Lead Application Developer
rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 4:49:58 AM

0/0

have you seen this thread? http://forums.asp.net/1405521/ShowThread.aspx

 


Jared Roberts
Lead Application Developer
rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 4:54:05 AM

0/0

i would also leave the connectionstring to your web.config and not let machine.config handle it.

<connectionStrings>
  <remove name="LocalSqlServer"/>
  <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf;"/>
</connectionStrings>


Jared Roberts
Lead Application Developer
hypercode
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 7:09:28 AM

0/0

Many Thanks rojay,

I'd like to do this which you suggest "I would suggest installing sql server management studio express and attaching the database from it on the production box"

I have the management studio installed. Don't know how to use it to attach the db but I'll try to figure it out.

hypercode
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 8:52:12 AM

0/0

I figured out how to attach with SMS but get an error that says the database is being used by another process. So, I guess I have to try something else.
macal_vm
Asp.Net User
Re: Getting Login to work on Remote Server12/29/2006 12:33:46 PM

0/0

hypercode:
I figured out how to attach with SMS but get an error that says the database is being used by another process. So, I guess I have to try something else.

mayb you r using two .net tools at the same time. i got this error sometimes when im using sql server express 2005 and vwd.

 anyway, u have to configure ur database and create the tables used for membership. i was having the same problems that u have.

here are the links that helped me:

http://forums.asp.net/thread/899888.aspx

http://msdn2.microsoft.com/en-us/library/879kf95c(VS.80).aspx

http://www.aquesthosting.com/HowTo/Sql2005/SQLError26.aspx

cya!

 

hypercode
Asp.Net User
Re: Getting Login to work on Remote Server12/30/2006 3:36:38 AM

0/0

Thanks much for your interest and help. 

I got it fixed.

I got rid of all the connection string, membership, and provider business in web.config and gave write permissions to "MyServerName\ASPNET" on the App_Data folder.

I did this by rightClicking the App_Date folder>Properties>Security on the server.

I then added a new user/group to the list, "MyServerName\ASPNET", and gave write permission to MyServerName\ASPNET in the checkboxes. Evidently, Windows was preventing access to the folder when the login control accessed it.

Now it works great.....

rojay12
Asp.Net User
Re: Getting Login to work on Remote Server12/30/2006 4:07:21 AM

0/0

Awesome, good to hear.
Jared Roberts
Lead Application Developer
14 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Upgrading and Repairing Networks Authors: Terry William Ogletree, Scott Mueller, Pages: 1248, Published: 2003
Apache Administrator's Handbook: Administrator's Handbook Authors: Rich Bowen, Richard Cooper Bowen, Daniel Lopez Ridruejo, Allan Liska, Pages: 422, Published: 2002
PHP Cookbook Authors: David Sklar, Adam Trachtenberg, Pages: 784, Published: 2006
Dreamweaver MX 2004: The Complete Reference Authors: Ray West, Tom Muck, Pages: 958, Published: -1
Power Programming with RPC Authors: John Bloomer, Pages: 486, Published: 1992
How to Do Everything with Dreamweaver 8 Authors: Michael Meadhra, Pages: 460, Published: 2005
SQL Server 2005 T-SQL Recipes: A Problem-Solution Approach Authors: Joseph Sack, Pages: 733, Published: 2005
Linux Administration Handbook Authors: Evi Nemeth, Garth Snyder, Trent R. Hein, Pages: 1001, Published: 2006
Perl for Web Site Management Authors: John Callender, Pages: 508, Published: 2002
The Networking CD Bookshelf: Bestselling Books On CD-ROM Authors: Craig Hunt, Hal Stern, Daniel J. Barrett, Joseph D. Sloan, Elizabeth D. Zwicky, Doug Mauro, Paul Albitz, Pages: 736, Published: 2002

Web:
[horde] problem getting login to remote server. [horde] problem getting login to remote server. pratik at vadodaramail.net pratik at vadodaramail.net Tue Jul 8 05:47:35 PDT 2003 ...
Need to get ASPNETDB.MDF to work on remote server - ASP.NET Forums Need to get ASPNETDB.MDF to work on remote server ... Now when I try to log in, I no longer receive the error, but it's telling me that my ...
export DISPLAY does not work from remote server - Ubuntu Forums export DISPLAY does not work from remote server Networking & Wireless. ... connected to the internet or getting your wireless card to work? ...
The remote server returned an error: (440) Login Timeout ... The remote server returned an error: (440) Login Timeout .... However, you should be able to get it to work via Exchange and not have to use a POP3 ...
can't get aspnetdb.mdf to work on remote host - .NET ASP on a remote server or tell me what i'm doing wrong? i found a guide on ... to get it to work correctly. i was thinking perhaps someone who ...
How to login in a remote server using SSH and no password | Linux ... Feb 6, 2007 ... After performing the above steps also im not able to login to the remote server with out password. Is there any pre requesits to be done for ...
Apple - Support - Discussions - Connect to remote server broke ... I don't even get the login dialog. I have tried both using the URL and the IP number to the remote server, with and without the ...
Getting the error: "Access to the remote server is denied because ... I'm getting this error: Access to the remote server is denied because no login- mapping exists. I added the local user to the user mapping ...
AJAX doesn't work on remote server - jQuery (English) | Google Groups I always get error function called when I try to execute get_response() function . Just on IE and just when I work with remote server. ...
Edit file on remote server with BBEdit [Archive] - The macosxhints ... This will work only if ftpd is running on the server. ... Well I did finally get it up and running - I think the login problem was an error ...

Videos:
,/`\ 100% Ubuntu Linux /`\. Exporting X to Another Account For the HQ version, Create a bookmark on your bookmark toolbar. Put for the url this instead: javascript: location = location + "&fmt=18" And cli...
Optimize Vista 30-50% Speed up your computer, Vista or XP. There is nice peaceful music to help stress :-D High Quality: http://www.youtube.com/watch?v=P5HZEnS0WUU&fmt=18 ...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
Connexions - Building Communities and Sharing Knowledge Google TechTalks April 11, 2006 Richard G. Baraniuk Richard G. Baraniuk is the Victor E. Cameron Professor of Electrical and Computer Engineering a...




Search This Site:










setting bg

query to foreign servers

dnn 2.04 upgrade troubleshooting

find image from datalist?

authentcating a user by doing a db lookup

how can i implment an 'onmouseover' popup menu in javascript

best way to process credit cards and payments with the commerce kit???

image path resolution eg mouseover image in portal skin

ad authentication

text structure

what is asp.net and why did it create a user account for itself?

suggested improvement of iframe module

how to write httpmodule that handles the authorizerequest event??

docnetnuke.my-asp.net: vandalized

admin folder

super fast and super easy dotnetnuke module development with version 4.3

master/content page - how to fix the width

disable menu items,sub menu items, treeview items,subitems in master page based on certain conditions

skinning the reportviewer

search engine friendly re-direct

rssdatasource control

to beta or not to beta?

cache - working with output cache and sql server cache

i need help

speerio sitemap dnn v2.0 available for download

documented changes

access to the username textbox in the login control

treeview node text is a format of two bound fields

user login

how to retrieve content page property from master page

 
All Times Are GMT