Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 18, 2012 08:42 AM by Zuke
Mar 13, 2012 08:37 AM|LINK
I know where the web-config file is in relation to my local server, but when I FTP my site, where do I put the web-config file on a remote server?
Mar 13, 2012 08:56 AM|LINK
1) You dont have any separate folders for different users or different categories. So you have just the default
application folders, in this case, there is only one web.config file in your application.
2) You do have different folders having different .aspx pages stored, in this case, its is most likely that
you have a separate web.config file for each folder, along with main web.config file
In both cases, you dont need to do anything, when you upload your folder on FTP, inside wwwroot folder,
the web.config file should also be there in the same folder with your other site pages !
Mar 13, 2012 09:07 AM|LINK
But I can't actually see it online?
I presume it must be there, somewhere?
Can my website work without a web-config page online?
Mar 13, 2012 09:09 AM|LINK
And when I tried to upload it, I got this message:
Critical file transfer error
Mar 13, 2012 09:29 AM|LINK
how r u trying to see ur web.config file online
IT MUST NOT BE VISIBLE ONLINE USING A BROWSER, OTHERWISE ANYONE COULD SEE UR MOST IMPORTANT THJNGS STORED IN IT
without web.config any of .aspx pages will not run, actually ur web site will show errors
The error u have mentioned is strange, tell me exactly when this error appears?
Try googling it inside double quotes for search query
Mar 13, 2012 09:35 AM|LINK
I am trying to see in via FTP, not with a browser.
When I try to upload with with Visual Studio FTP, I can see all the files and folders, but no web-config. When I upload the web con-fig file, and then check the site online, that message comes up. I delete the file, and the message goes and the website works....
Mar 13, 2012 02:23 PM|LINK
Thats interesting, I use Cute FTP for uploading my files, and I always see the web.config file
and I cant even run the web site if only a single thing is incorrect in web.config file !
I dont think you can run an asp.net web site wihtout web.config file it must be some setting in VS FTP I guess
perhaps VS also compiled the web.config file as compiled code !
Mar 14, 2012 08:50 AM|LINK
I did a test. I erased everything from the remote server, then uploaded a page at a time.
Even with one page and a web config file, it would not work.
So I did another test. In Visual Studio latest's Beta 11, it allows you to create a new web site using .NET Framework 2.0 & 3.0. Each time the web config file worked. However, when I created a .NET 3.5 website, it didn't work.
There's a huge difference between the web config files for 2.0 & 3.0 in comparrison to 3.5 (for some reason, web config files in 3.5 automatically appear when you create a site, for example).
It looks like it's a server problem...
Anyone else out there have this problem....
Mar 18, 2012 08:42 AM|LINK
I have answered my own question: