Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.57/5 (5 votes)
Hi Dear All


I have hosted an asp .net web site. I am using bull horn as back end processing.
Here I am getting an error on running the application related to code behind cs file.

My page header is:
HTML
<%@Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="SRRL.search"%>



Here search.aspx.cs is not calling while the website is running.is not calling while the website is running. Which has a function called SearchArea in bullhorn.


I have edited some of the aspx pages and uploaded directly.After this upload I am getting this error.Before updating the aspx page the web site was working fine...

How do I solve this issue?

Kindly help me if anyone has idea about this.


Thank You...
Posted
Updated 12-Dec-16 0:35am
v2
Comments
Sinisa Hajnal 27-Nov-14 2:32am    
Return the original files that worked. Then change one thing, upload, check if it still works. Repeat until you find which change caused it to stop working.
Praveen Kumar Upadhyay 1-Dec-14 8:40am    
Can you mention what error you are getting. There is nothing wrong with the line of code you have mentioned. May be by seeing the error something can be cleared.
[no name] 18-Feb-15 5:42am    
post your error message.
koolprasad2003 9-May-16 3:25am    
Have you face any error ? try to put try catch on page load and see it at least calling codebehind page_load

In your Inherits it should be Inherits="namespace.classname", so the classname should be your 'search' in you search.aspx.cs file.

like:

namespace SRRL
{
public partial class search
.....

But the word 'search' maybe is a key word in vs. Can you change another name & try?
 
Share this answer
 
replace 'CodeBehind' by 'CodeFile'.

HTML
<%@Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="SRRL.search"%>
 
Share this answer
 
v2
Comments
SubhashRokzzz 27-Nov-14 5:23am    
Sorry!! . I have changed and still not working
<%@ Page Language="C#" AutoEventWireup="true" Inherits="search" Codebehind="~/search.aspx.cs" %>

and Make sure that your class should be public
 
Share this answer
 
Try to add a log in code behind method. Write the exception message in a log file you will know what exactly the exception. Hope it will work.
 
Share this answer
 
Change your top page property as below:
<%@Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="SRRL.search"%>

replace above.
I hope it wll work for you.
 
Share this answer
 
v2
1)Rename this file "search.aspx" to say a "search2.aspx"
2) Add a new page as search.aspx.
3) Copy the contents from the old file to the new file carefully and now check if the code behind is working.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900