SharePoint 2007 Custom Page Error - sharepoint-2007

I have created a custom aspx page and deploy into \12\TEMPLATE\LAYOUTS folder,
I trying to access the page via url e.g: http://sharepoint2007/sites/mySite/_layouts/DocLibrary.aspx,
then I hit "Unknown Error" in the page.
But it work fine when I "View in Browser" (local host) via Visual Studio.
The environment is in MOSS 2007, am I missing start some services? Please help...
Thank you.

Temporarily change the web.config file so you can see the true error.
See:
SharePoint - An unexpected error has occurred.
Sharepoint errors
An unexpected error has occurred.
Sharepoint “Unknown Error” debugging - but can't turn on CallStack… ??

Related

What causes a sudden consistent HTTP Error 403.14 - Forbidden error in an asp.net core 3.1 mvc app?

Yesterday, all was well. Today, all of a sudden, one route in an asp.net core 3.1 MVC app I have has started producing this error:
"HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server. "
All other routes work fine.
What is the likely cause of this?
You can try this way:
1.Open up IIS Manager.
2.Add the website by right clicking on "Default website" and choose "Add application".
3.Enter any name as alias type and the load that website in the physical path and click OK.
4.Then go to the Features View of that Loaded Website and double click on the "Directory Browsing".
5.Click on "Actions" work space and change the "Disable" state to "Enable" state.
6.Then Refresh the Default Website.

Server Manager opens up whenever i try to open "Turn Windows features on or off"

I'm working on ASP.NET Core MVC 2.1 application and i have AWS server to deploy it to. In my remote desktop i have placed by code in wwwroot directory in inetpub. Whenever i try to browse my application it gives me 500 Internal Server Error.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
I looked for the solution and found that problem lies in IIS according to this URL HERE
But when i click Turn Windows features on or off in the windows menu or through control, it always open Server Manager. Can somebody tell me why this happens or how to apply the changes mentioned in the url i have specified above.
Thanks

How I do for my project using Local IIS

I'm using Visual Studio 2013, Windows 8.1 and IIS 8.0.
In properties settings, I have set the server to Local IIS and I set the project url to localhost/myProject.
When I debug the project I get the following error shown below:
Unable to start debugging on the web server. The web server could not find the requested resource.
Click Help for more information.
OK Help
and when I start without debugging I get this error:
Error HTTP 403.14 - Forbidden
can somenone help me?
You need to give proper permissions to the directory containing your application. Give read, write, and modify permissions to IUSR and IIS_USERS. This should help to resolve your issue. Did your application work using IIS Express? If it didn't work using IIS Express then I'll need more specific information on the issue you're running into.

.NET MVC Error 500 when publishing to production server

My MVC website is working perfectly on my debug machine when I press F5 in Visual Web Developper Express 2010. I've publish it a couple of time without problem but I did a lot of change lately and my latest publish didn't work as expected.
In fact, the publish works perfectly and no special message are shown. But the problem is that when I connect to the adress, I get an error 500. I google that and add the required web.config info so I get the detailed info.
Here is the information I get:
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has
occurred.
Module: AspNetInitializationExceptionModule
Notification: BeginRequest
Handler: ExtensionlessUrlHandler-Integrated-4.0
Error Code : 0x00000000
Can anyone point me in the right direction to debug this? I can give you more information about my application if necessary!
Thanks!
Ok I found this myself with the help of the helpdesk and google.
Helpdesk send me to a link on how to show more error on the website.
Then I saw my error was "Access to the path XXXX is denied". This was related to the ClientDependency framework and was trying to access a path that doesnt exist on the server
I discovered on google that this path was specified in the web.config so I change the path.
Wasn't working more so I went on the server and changed the permission on this folder
It worked.
Hope this might help someone one day!

ASP.Net MVC Visual Studio Deploy "Mark as IIS application on destination"

I am using the Visual Studio "Publish Web" screen to publish my ASP.Net to my web site.
I has worked fine up until recently with the "Mark as IIS application on destination" box checked.
I just recently added a new project to the solution to handle a specific portion of the work, and then added this project as a reference to the ASP.Net project. The problem is now the publish will not work unless I un-check the box "Mark as IIS application on destination".
It seems dangerous to me to publish without this box checked. Does anyone know why adding this new project to the solution caused this issue and how to fix it?
This is the error I get:
Web deployment task failed.((1/20/2012 6:50:00 PM) An error occurred
when the request was processed on the remote computer.)
(1/20/2012 6:50:00 PM) An error occurred when the request was
processed on the remote computer. Unable to perform the operation.
Please contact your server administrator to check authorization and
delegation settings.
Turns out the account on the server expired.

Resources