Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I followed the instructions given in the http://msdn.microsoft.com/en-us/library/cc297200%28d=printer,v=office.12%29.aspx

I copy the web application project from my Visual Studio 2008 to the MOSS 2007 folder and receive the error "An unexpected error has occurred"

May I know if I am missing something else?

Extra Info
[1] The project template is - "A blank ASP.NET Web site (.NET Framework 3.5)" using C#
[2] When I try to build the web site, I received a error 'Only Content controls are allowed directly in a content page that contains Content Controls'

share|improve this question
    
If I used the project template - "A project for creating an application with a Web user interface (.NET Framework 3.5)" - which is a ASP.NET Web Application, I will have the error - "Unknown error". Is there a way to find out what "Unknown error" was? –  Larry Morries Sep 22 '11 at 6:44
    
You can resolve the error details in SharePoint logs, go to `C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS` and sort descending by Date, and there will be the text log file, which you could search by correlation ID. Or you can use some tool like SharePoint Diagnostics Studio. –  Andrey Markeev Sep 22 '11 at 7:18
    
@Omlin, I don't really get what you mean by correlation ID. From what I can see as column header is - Timestamp, Process, TID, Area, Category, EventID, Level, Message & Correlation –  Larry Morries Sep 22 '11 at 7:36
    
@omlin, May I know where can I get the SharePoint Diagnostics Studio? - is it also free and does it support SharePoint 2007? (I found another one which is Administration Toolkit that also contain the SharePoint Diagnostics Studio - but it is for SharePoint 2010. - Reference: microsoft.com/download/en/…) –  Larry Morries Sep 22 '11 at 7:40
    
@omlin, I notice that when I try to repeat the same steps again up till the error message was displayed, the logs stop logging any errors. It has been like more than 45 minutes and no messages was recorded into the log. Is there anyway to find what has happen? –  Larry Morries Sep 22 '11 at 7:57
show 3 more comments

1 Answer 1

up vote 0 down vote accepted

Hi Larry go into the web.cofig file of the sharepoint site not the .net site you are creating and turn off custom errors this will get rid of that helpful sharepoint error also set callstack to true which will allow you to see the well, callstack.

Doing this will give you a better error, you can also look in the event log to see whats under applications

share|improve this answer
    
May I know which folder I can find out the web.config file you are referring to and where can I find the callstack? –  Larry Morries Sep 28 '11 at 0:42
    
Sorry Larry this is really late but you can find the web.config in c:\intpub\wwwroot\wss\virtual directories\yoursite. You have probably already found it and sorted your problem but there it is for anyone else –  Stephen Tierney Nov 16 '11 at 21:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.