Last post Feb 25, 2012 10:43 PM by bulbul4u_only
Feb 23, 2012 06:10 PM|bulbul4u_only|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 04:27 AM|ammd|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 06:49 AM|Topspy|LINK
you can refer to connectionstrings.com for sample codes.
Feb 24, 2012 07:07 AM|venkatmca008|LINK
hi .please try this
Feb 24, 2012 09:50 PM|bulbul4u_only|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 10:06 PM|venkatmca008|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 10:22 PM|bulbul4u_only|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 01:34 AM|venkatmca008|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 01:45 AM|bulbul4u_only|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 01:56 AM|bulbul4u_only|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?
Feb 25, 2012 02:28 AM|venkatmca008|LINK
hi...please download iis and install
or try this
Feb 25, 2012 02:38 AM|bulbul4u_only|LINK
I am trying to install it from the XP that I had in my external drive.
Feb 25, 2012 02:52 AM|venkatmca008|LINK
hi..please install and try...if u cant let me know..
Feb 25, 2012 03:26 AM|bulbul4u_only|LINK
I have installed it now. Could you please tell me in details what to do now? I have installed IIS on my laptop.
I think I have created the virtual directory. I followed this tutorial on youtube.
So what I am suppose to do now? how is it going to get rid of that error because I dont see the above tutorial procedure has changed my site files.
Feb 25, 2012 04:04 AM|bulbul4u_only|LINK
This is what I did now.
start-run-inetmgr-click on my local computer-website-right click default website- new virtual directory-set alias name "mysite"- browse to my website folder for directory - ok
Did I do the right things? I think this was creating the virtual directory in local asp.net sites? don't I have to configure for FTP websites? or do I have to configure for webserver? I am so confused. Please help me out.
Now what I am suppose to do?
Feb 25, 2012 01:35 PM|venkatmca008|LINK
u did fine...still u have error...
Feb 25, 2012 02:09 PM|bulbul4u_only|LINK
I did the above steps on my website folder (saved on desktop). Then uploaded that folder on asp2.gcsu.edu server.
The error is the same. I wonder if that changed anything at all. What was the point of making that alias "mysite" and I don't see to use it anywhere? What to do now?
Feb 25, 2012 10:43 PM|bulbul4u_only|LINK
My problem is fixed. Basically, I did not have to do anything on my local computer. Instead, the hosting company (my college) should solve this. The problem was the directory listed as subdirectory or something related. There was no point of me installing
IIS and trying to configure what I was doing in my previous threads.
I thought I will post this if someone gets the similar problem. In short, let the hosting company figure it out for you this kind of problem.
Thank all for the concern.