Page view counter
The exception after publish
Last post 08-27-2008 4:15 AM by xsdf. 2 replies.
Sort Posts:
08-21-2008 3:12 AM
The exception after publish

I've publish a sl2 website to the remote server . 

And all the function is ok except one page when opened will throw exception . 

Due to it is a release version ,so the exception message is not very clear what happened or get more detail info of the exception .

My question is , like this scenario , How we can debug it or get more detail debug info ?

BTW :I also publish this release version on my local IIS , and all was done well .  

Thanks . 

************************************
To be or not to be, it is a question .

xsdf

Loading...
Joined on 08-04-2008
Posts 147
08-21-2008 4:29 PM
Re: The exception after publish

Do not publish a release version. Compile your libraries using the debug setting, and make sure debug="true" is set in the web.config file. Then publish the debug version.

  <system.web>
        <compilation debug="true">
        </compilation>
        <trace localOnly="false"/>
  </system.web>
 
Also, take a look at your trace page: http://servername.com/trace.axd
 

Regards,

Fred Chateau

fchateau

Loading...
Joined on 06-19-2002
US - Nashville, TN
Posts 13
08-27-2008 4:15 AM
Marked as Answer
Re: The exception after publish

I eventually find the reason .

One DBML object do not Set the SerializeMode to Unidirectional.

So the WCF some error occured . 

But why this problem occured in local published version ? 

IT's So Strange. 

************************************
To be or not to be, it is a question .

xsdf

Loading...
Joined on 08-04-2008
Posts 147
Microsoft Communities