Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 25, 2012 09:43 PM by bulbul4u_only
Feb 23, 2012 05:10 PM|LINK
I am trying to go Remote from localhost.
I used ASPNETDB.MDF.sql script and it generated all the tables on SQL Server 2008. The login is still not working. I need to edit my web.config file. Can someone post for me the remote site web.config file code please? I can't figure out the connectionstrings.
I am using SQL Server 2008. My login works in localhost, but now on remote, it is having issues since I am transferring the database.
Any help will be appreciated.
Feb 24, 2012 03:27 AM|LINK
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Make sure you have the right username/password from your hosting provider and correct server name.
Feb 24, 2012 05:49 AM|LINK
you can refer to connectionstrings.com for sample codes.
Feb 24, 2012 06:07 AM|LINK
hi .please try this
Feb 24, 2012 08:50 PM|LINK
My project works fine when testing on the localhost. Now, I am putting it remote and it is giving me the error at the bottom. I am also posting my web.config file code. Can someone please help me out to solve this?
addition info: I am using visual studio 2008. I have connected an online database which is run on SQL Server 2008.
Here is my web.config file code:
<remove name="LocalSqlServer" />
<add name="MyConn" connectionString="Data Source=XXXXX;Initial Catalog=vishalnew;User ID=XXXX;Password=XXXXX" providerName="System.Data.SqlClient" />
<authentication mode="Forms" />
<membership defaultProvider="vishalnew" userIsOnlineTimeWindow="10" >
<add connectionStringName="MyConn" passwordFormat="Clear"
enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false"
requiresUniqueEmail="false" maxInvalidPasswordAttempts="10" minRequiredPasswordLength="1"
applicationName="/" name="vishalnew" type="System.Web.Security.SqlMembershipProvider" />
<roleManager enabled="true" defaultProvider="vishalnew">
<add connectionStringName="MyConn" applicationName="/"
name="vishalnew" type="System.Web.Security.SqlRoleProvider" />
This is the error:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Line 7: <system.web>
Line 9: <authentication mode="Forms" /> Line 10: <membership defaultProvider="vishalnew" userIsOnlineTimeWindow="10" >
Line 11: <providers>
Source File: C:\inetpub\wwwroot\vishalnew\alumnitracker\web.config Line:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\vishalnew\alumnitracker\web.config line 10)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\vishalnew\alumnitracker\web.config line 21)
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
Feb 24, 2012 09:06 PM|LINK
hi...please do this...
The Virtual Directory is not being configured as an ASP.NET application. You may have to go to IIS admin console, go to directory properties and do a "Create Application". To do so :
Feb 24, 2012 09:22 PM|LINK
I am not good with IIS things. When I open visual studio 2008 and do file - openwebsite - "it shows 4 options". 1) File System 2) Local IIS 3) FTP Site 4) Remote Site.
Is this the IIS you are talking about? When clicking on this "Local IIS", it says "IIS is not installed on this computer".
addition info: My site is uploaded on a college server and using the sql server 2008 that the college provided.
Please assist me what to do. I hope I don't need to install windows XP CD and related things because my CD drive is not working.
Feb 25, 2012 12:34 AM|LINK
please install iis using ur xp cd...
for this...u have to go control panel -->add or remove programs-->add/remove windows component---> select internet information sevices(iis)
insert ur cd...and install...
Feb 25, 2012 12:45 AM|LINK
My CD drive is not working. omg! does that mean I won't be able to use my project now? I hate this asp.net membership role thing now.
Feb 25, 2012 12:56 AM|LINK
I think I can use my external hard drive to get the required files. But let me make sure the below things:
1) Do I have to install IIS files on my local computer (laptop) or the server that is hosting my files? I am asking this because the site works fine in the localhost. When I upload the files on the remote server, that is when the above mentioned error comes
So should I go ahead and install IIS files on my laptop from my XP cd?