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.
A.Venkatesan
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
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.
Description:
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.
Source Error:
Line 7: <system.web>
Line 8:
Line 9: <authentication mode="Forms" /> Line 10: <membership defaultProvider="vishalnew" userIsOnlineTimeWindow="10" >
Line 11: <providers>
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)
</div>
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
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 :
Open the IIS Administration Console on the server where the application is published
Right click on the Virtual Directory where the application files are published
Select Properties, then a "Main Properties" dialog pops up.
There is a "Application Settings" section. Just hit "Create" in front of the "Application Name" textbox, then hit "Ok"
Check that the Virtual Directory appears with a different icon, it should be ok now.
A.Venkatesan
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
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.
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...
A.Venkatesan
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
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
up.
So should I go ahead and install IIS files on my laptop from my XP cd?
bulbul4u_onl...
Member
260 Points
196 Posts
Need Help With Remote Site Connectionstring
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.
ammd
Participant
1349 Points
257 Posts
Re: Need Help With Remote Site Connectionstring
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.
Topspy
Contributor
3785 Points
806 Posts
Re: Need Help With Remote Site Connectionstring
Feb 24, 2012 05:49 AM|LINK
you can refer to connectionstrings.com for sample codes.
Asp.net Hosting | Windows Hosting | SQL Server Hosting
venkatmca008
Participant
1810 Points
341 Posts
Re: Need Help With Remote Site Connectionstring
Feb 24, 2012 06:07 AM|LINK
hi .please try this
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
bulbul4u_onl...
Member
260 Points
196 Posts
Re: Need Help With Remote Site Connectionstring
Feb 24, 2012 08:50 PM|LINK
Hello All,
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:
<?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <connectionStrings> <remove name="LocalSqlServer" /> <add name="MyConn" connectionString="Data Source=XXXXX;Initial Catalog=vishalnew;User ID=XXXX;Password=XXXXX" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <authentication mode="Forms" /> <membership defaultProvider="vishalnew" userIsOnlineTimeWindow="10" > <providers> <clear /> <add connectionStringName="MyConn" passwordFormat="Clear" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="10" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="30" applicationName="/" name="vishalnew" type="System.Web.Security.SqlMembershipProvider" /> </providers> </membership> <roleManager enabled="true" defaultProvider="vishalnew"> <providers> <clear /> <add connectionStringName="MyConn" applicationName="/" name="vishalnew" type="System.Web.Security.SqlRoleProvider" /> </providers> </roleManager> <compilation debug="false"/> <customErrors mode="Off"/> </system.web> </configuration>This is the error:
Configuration Error
Description: 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.
Source Error:
Line 7: <system.web> Line 8: Line 9: <authentication mode="Forms" /> Line 10: <membership defaultProvider="vishalnew" userIsOnlineTimeWindow="10" > Line 11: <providers>
<div class="expandable">Show Additional Configuration Errors:</div> <div id="additionalConfigurationErrors">Source File: C:\inetpub\wwwroot\vishalnew\alumnitracker\web.config Line: 9
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
venkatmca008
Participant
1810 Points
341 Posts
Re: Need Help With Remote Site Connectionstring
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 :
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
bulbul4u_onl...
Member
260 Points
196 Posts
Re: Need Help With Remote Site Connectionstring
Feb 24, 2012 09:22 PM|LINK
Hi venkatmca008,
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.
venkatmca008
Participant
1810 Points
341 Posts
Re: Need Help With Remote Site Connectionstring
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...
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
bulbul4u_onl...
Member
260 Points
196 Posts
Re: Need Help With Remote Site Connectionstring
Feb 25, 2012 12:45 AM|LINK
hi!
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.
bulbul4u_onl...
Member
260 Points
196 Posts
Re: Need Help With Remote Site Connectionstring
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 up.
So should I go ahead and install IIS files on my laptop from my XP cd?