Solved

ASP.NET program stopped working mysteriously

Posted on 2014-09-15
2
567 Views
Last Modified: 2014-09-15
I hired a programmer to write code in ASP.NET. The code was working last week. Now when I run the code, I get an error:
The directory '/App_Code/' is not allowed because the application is precompiled.

The code is to process payments with SAGE PAY on a website. The server is now running Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1025

I removed the /app_code folder and received a different error:
The file '/payment.aspx' has not been pre-compiled, and cannot be requested.
 
I have tried to get in touch with the programmer, but he has not yet responded (he might still respond...)

WE are dealing with a program that used to work.

I understand bits of ASP.NET, but not a lot. I do not know if the programmer delivered to me a compiled program or not. I do see a program payment.aspx.cs which contains regular code.

Any suggestions to get this work would be most appreciated.
0
Comment
Question by:Lev Seltzer
2 Comments
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 500 total points
ID: 40322910
Restore/create  the app_code back to the location.  Make a backup and delete the precompiled.config file.
Check if it works then.
0
 

Author Closing Comment

by:Lev Seltzer
ID: 40322931
I have deleted the file "PrecompiledApp.config" and put back the app_code folder and I no longer get this error.

Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
detecting  the added row index in a datagridview 3 62
Export import database 4 44
Output Caching in IIS 2 9
Crystal reports vb.net 2 23
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now