Avatar of nsitedesigns
nsitedesigns
Flag for United States of America asked on

custom web.config file needed

The custom cms is not working.  When we try to use it, we get a generic error page from host.  The site worked fine since 2011.  Now all of a sudden it does not.  I contacted host and they said they have not upgraded any iis or anything like that.  Host said I am to upload a web.config file to the root so that the host can see a more detailed file on where the problem could be.  I don't know what a web.config file is. I asked host if I could go to the web and grab one of the generic web.config files.  She said she would not do it that way.  She recommended that I contact the programmer which we haven't used since 2011 and ask him to create a web.config file.   Why can't I just use a generic?    I am not familair with asp so I am kinda at a loss.

Here is a link that might work.  http://support.microsoft.com/kb/815179

Advice?
Web DevelopmentASP.NET

Avatar of undefined
Last Comment
nsitedesigns

8/22/2022 - Mon
David Johnson, CD

in your site go to the root folder and see if there is a web.config there?
What is the error message your are getting?

Web.config  is only for IIS served websites
Miguel Oz

Your site root folder should contain a web config file. The posted link has generic info only.

I think the host is suggesting to add custom error handling  as shown below:
http://msdn.microsoft.com/en-us/library/bb397417(v=vs.100).aspx
http://www.asp.net/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/aspnet-error-handling

If you have no experience doing this, my suggestion will be to contract a  web admin or developer to do it for you. There is no guarantee that after you have done the changes the error will surface (as it depends how the site was coded)

P.S.
1) In any case you must have a backup copy of your site itself and code in case your host suffer a catastrophic failure or in case you need to add modifications.
2) Another way is to check for errors is to enable tracing if the coder was kind enough to provide that in your code.
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
There is no web.config file in root.  

System is running on iis7.  (Could have been using iis6 back in 2010 - maybe that is the problem that the iis file changed?)

The error message is a default godaddy page that says "we've happened upon a bit of a problem" .

I doubt a coder was installed.

I will try Dave's sugggested code.  Can I just open up DW, clear out the code and dump in your code and save as web.config?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Miguel Oz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
nsitedesigns

ASKER
I will save your code in text wrangler and upload.  Will then contact host to see if they can determine problem.
nsitedesigns

ASKER
Well, the web.config file did give us more to go off of but it still did not correct problem.  Host reset permissions thinking it would help but it did not.  I included the "problem" file.

Here is  error message.

Microsoft VBScript runtime error '800a0046'

Permission denied

/admin_panel/includes/pdf_events_lists.asp, line 21