Serious issue after deployment to server - random text on the page - asp.net

I have migrated some website updates from staging to live, but now, when I view the live site, I get the following random text on the page:
This only appears after I log on, so I can get the logon page to appear.
I re uploaded the latest dlls from dev, to staging and then live, and now staging has the same issue. However, staging was previously working, and dev doesn't have the issue!
���I�%&/m�{J�J��t��$ؐ#�������iG#)���eVe]f#�흼��{����{����;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6�����h���i�f���ӏ���o�'g�UU�O'/����i�\Vm:��j�/��6��ԸhӢI����X���w��i���I5�N�y�l�ϳEQ^?��'�z�-���ӫ������U��J��)~�?J�������Ѥ̦oI��]�P�"�/��v[����W�~���m`N�rvk���Mqz3���wV�vR��{_��IW�2����������,KO�eS��יy�/����m^+E eB��c*�j�w��,�Vu���Q����a�2��*����E�]�-򺮨/%��j�j�(��Y���{�ʖ�lR���n���,��ć�����2�����uC� ԡO��w}V|W�L�d��\0��>��m���ւh�����=z��4���GV,ӏ�~��Ve1elǏ�uzU���g�;;�{�Y�lW���)Jz���]���a�w�>.�!a/�0�=���uB���4�������Q���pki��s}I?_����e��*�X�Y=J���uq�FH49J��ʹ.V�0��N����z� ) ���4���jJsi���by�����ͧk���?�&��U>I������/�ĩ��"��fMK욶5 ���N�G�<�P1�lR�[��'��I��y�T���X3k �L����h����A��a=�۬(�����c����/*Oʂ��l�G�72�è���5Q�y�pG���1���?�g:ń�o�Ku�C��7b��#^�~�5��&����<'��g����EV���2�<�e%�j �މ� x1#��yA���i���$/�+�8;�Ș��B�v�Ga"S�^F� ����>&�8|���tk������݇;�w���>�1(hd������K��!;���IE�s_��[�ޝ��݇���=����ٲ��e��������΃ =��5/����ͼ��,�����Y�$�ݲM�I����Ox�-����4$����r���$�g�)���N4^, R����,��1��"3K�rF��ni�������_�U��ʛuپ�i��s�&���=ܻi����bY4�SV����A���ClY�y��2��H���� #����l�D#�� :�k��]�KKV�4k��SB������7���n���j6J�N���L:J?����r"��)�/��O���z+����l�;,�|9{S�,V9�p�v�w�Ż�!�n>����̵x����.�v��P��-Ϋ-m�>m������7��<�3���n�>9� f�f��߯ n>��[�

OK, issue was due to me taking another database offline (even though this database is obsolete and not included in any connection strings.
Going to open a new question for that issue

Related

ASP.NET site not updating after changes

So, I have a pretty basic ASP.NET site that was built and published via ftp through VS. Original publication went fine, as did the first few updates. But now I've made page changes (css as well as in the aspx files) and they don't seem to get pushed to the server. I believe that my code behind (C#) files are being updated since there are a few visual elements I call in the code. When I look at the ASPX files, they have old dates and the code is the prior version. VS says the publishing succeeded, and the host (GoDaddy) says there's no caching or quota issues on their side. If I upload a new dummy page it goes through... so it looks like updated pages are the issue.
What am I missing?
If it's styles have you tried doing a hard-refresh on your browser? If everything is saying the files are updated then maybe you have a locally cached version.

Dnn Rich Text(Text editor) template manager doesn't load

I've been working with DNN for the past weeks and now it's finnaly time to make my project to the production server, but I found an issue.
In the default Rich Text we have a "Template" option, witch we can save html presets, saving them works fine. But when I try to open the list of templates, the small popup opens and stays forever loading, no error displayed.
Ethernal loading image
I believe it's a config issue, since it works fine on my development eviroment. The server is running Windows Server 2008 R2(so, no IIS AppPool\DefaultAppPool user to give permissions). Also I already gave permission to IIS_IUSRS and to IUSR.
If someone could help me, that would be awesome =)
Best Regards
do other dialogs fail as well, or just this one?
My guess is that the folder, which contains the templates, doesn't exist - or it does exist, but DNN doesn't know about it. So make sure you have it and that the the DNN files are synced with the DB (in the admin > files section)

IIS express suddenly not displaying web page

Perhaps someone can help me figure out what's going on.
I'm running VS 2013 and working on a Web Forms application (not an MVC app). I'm using the templates that came down, including all the cool FriendlyUrls functionality. I've been working on this website for several weeks without any problem.
Today, for no apparent reason, one of my pages stopped working. When I attempted to view it, I got an error message that the server was not configured to list directories. My web page does not attempt to list the contents of any directory. It just has some images and some relatively simple Javascript (which does not attempt to enumerate anything).
The error message suggested I run the following command in the IIS Express directory:
appcmd set config /section:system.webServer/directoryBrowse /enabled:true
Just for the sake of experimenting, I ran that command. Now when I attempt to view the page, I get something that looks like this (the page is named Menus.aspx)
localhost - /Menus/
[To Parent Directory]
Clicking on "To Parent Directory" takes me to the home page, as one might expect.
I created a new page, Menus2.aspx, and copied all of the code from Menus.aspx into Menus2.aspx, and Menus2 runs fine. In addition, when I upload the site to Azure, Menus works correctly (as does Menus2). So I think my code is innocent of any wrongdoing.
I then deleted Menus.aspx and renamed Menus2.aspx to Menus.aspx, and I'm back to the same problem.
I was working in a git branch, and reverted back to master to see if at least my original configuration would work, but now even in master I can't get the page to come up.
So it looks like the problem is that something got jacked up in my local configuration, but I can't for the life of me figure out what it is. I have exited VS and rebooted the machine in hopes that the problem will disappear as mysteriously as it started, but no luck.
Every other page in the site (6 so far) works fine. It's just this one, with this name.
So my options at this point are to simply not have a page named Menus.aspx in my project because the name has somehow become cursed, or do all of my testing by uploading to the server and seeing how it works up there, which is a pain and should not be necessary.
Can someone suggest how and where I should start looking for what happened here? This isn't the problem I expected to be working on today.
Thanks in advance.
-Rob

Edits in .asp net website wont show

i've got an issue with website made in asp.net. A site is published and online, i've made some modifications, republished site on my computer and just uploaded a .aspx file into the server via ftp.
First time it seems to have worked after a while. But i've made a small error and want to edit it again, i did the same, but it wont change. Could it be that i need to wait some time before changes are seen? Or could it be that there needs to be a server restart or something?
If you've edited something in the aspx.cs page you will need to upload the bin directory to the remote site, or better still republish the whole site.
If it is a change to the .aspx, css or javasctipt file, the original will most likely be cached in your browser. Try a differrent browser brand or refreshing the page, ctrl-f5 does a complete refresh.
If this error was by any chance a CSS mistake, that can be easily fixed by adding a "?" at the end of the address since CSS files are normally stored in the cache of the browser and the ? tells the browser to update them. Same thing is true about JavaScripts which are kept in individual files
I'd recommend you to use the Visual Studio Publish Website under the Build instead of manually uploading the site over FTP. That built in publisher provides you many advantages of which one of them is the same issue you have faced. When you make a small change, fixing the error in host would be very faster by republishing the site that way rather than manually upping it over FTP.

Why does Web developer built-in web server serve zero byte files suddenly?

Visual Web Developer 2010 Express. C#, MVC3.
Clicking F5 to debug.
It starts up the built-in ASP web server on http://localhost:50188/
The Output window tells me WebDev.WebServer40.EXE is loading loads of DLLs.
Up until yesterday it worked. Today all URLs give me a blank page!
All controllers (all that changed yesterday was one controller, and some of its views; but it was working yesterday after all those changes). Same results in two different browsers. Use a different port gives an error (Telling me that there is something listening on port 50188!!) No errors anywhere. Just 0 byte files received.
My question is What happened and how do I fix it?
More Info:
Rebooting the machine made no difference.
I also found the obj/Debug directory and deleted it. It got recreated next time I hit F5 to debug. Still exactly the same problem!
And I went back 24hrs, in git, and still the same problem. So I'm sure the problem is not being caused by any of my source files. (The .csproj file is in git too.)
Look for a file called app_offline.htm (in your web root directory). It is a zero byte file. If it exists then this is served instead of any of your content! (It is a great feature if you wanted to take your site down for maintenance - put a custom message in that file.)
The Fix: Simply delete it and your website starts working again!
It appears (and I'm not sure about this) that the file is put there automatically when both you and your website want to access the DB at the same time. It should be deleted again automatically. But I guess a crash of something might leave it behind.
(To be honest, I think it would have been much wiser to put some content in app_offline.htm, explaining what it is and why it was automatically created. Quietly creating a zero-byte file is a tad sadistic...)
More information here: Why does app_offline.htm keep appearing in my web project?
And here: http://www.daniweb.com/web-development/aspnet/threads/215912/why-app_offline.htm-is-created-automatically-whats-the-mystery#

Resources