Publish version not working??

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/16/2011 7:34:38 AM
Gravatar
Total Posts 34

Publish version not working??

Hi,

I am working with the full source code version and everything works perfectly fine :-) As soon as I publish the Web Site and use the compiled version I get the Error below. Any ideas as I can't see how the it works fine before it's published and have never had this issue with Mojo on other versions I have published.

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          15/06/2011 15:34:08
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      ELD2W008C.CORP.ROOT.GLOBAL
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 15/06/2011 15:34:08
Event time (UTC): 15/06/2011 14:34:08
Event ID: 7f27def263404118a64c21926cd4c68f
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/1/ROOT/isupplybt-1-129526220482518000
    Trust level: Full
    Application Virtual Path: /isupply
    Application Path: E:\www\ISupply
    Machine name: ELD2W008C

Process information:
    Process ID: 2620
    Process name: w3wp.exe
    Account name: IIS APPPOOL\ASP.NET v4.0

Exception information:
    Exception type: HttpException
    Exception message: Value cannot be null.
Parameter name: connectionString
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Value cannot be null.
Parameter name: connectionString
   at mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted)
   at mojoPortal.Web.Global.StartOrResumeTasks()
   at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)



Request information:
    Request URL: http://localhost/isupply/default
    Request path: /isupply/default
    User host address: ::1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: IIS APPPOOL\ASP.NET v4.0

Thread information:
    Thread ID: 6
    Thread account name: IIS APPPOOL\ASP.NET v4.0
    Is impersonating: False
    Stack trace:    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)


Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-06-15T14:34:08.000000000Z" />
    <EventRecordID>3065</EventRecordID>
    <Channel>Application</Channel>
    <Computer>ELD2W008C.CORP.ROOT.GLOBAL</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>15/06/2011 15:34:08</Data>
    <Data>15/06/2011 14:34:08</Data>
    <Data>7f27def263404118a64c21926cd4c68f</Data>
    <Data>2</Data>
    <Data>1</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT/isupplybt-1-129526220482518000</Data>
    <Data>Full</Data>
    <Data>/isupplybt</Data>
    <Data>E:\www\ISupplyBT\</Data>
    <Data>ELD2W008C</Data>
    <Data>
    </Data>
    <Data>2620</Data>
    <Data>w3wp.exe</Data>
    <Data>IIS APPPOOL\ASP.NET v4.0</Data>
    <Data>HttpException</Data>
    <Data>Value cannot be null.
Parameter name: connectionString
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Value cannot be null.
Parameter name: connectionString
   at mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted)
   at mojoPortal.Web.Global.StartOrResumeTasks()
   at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)

</Data>
    <Data>http://localhost/isupplybt/default</Data>
    <Data>/isupplybt/default</Data>
    <Data>::1</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>IIS APPPOOL\ASP.NET v4.0</Data>
    <Data>6</Data>
    <Data>IIS APPPOOL\ASP.NET v4.0</Data>
    <Data>False</Data>
    <Data>   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
</Data>
  </EventData>
</Event>

 

6/20/2011 10:34:10 AM
Gravatar
Total Posts 34

Re: Publish version not working??

Hi,

 

Thought I would update this, in case this happens to anyone else.

Even though I have added user.config to the project, when I publish it doesn't publish this file!! This has never happened before and I even excluded then included again to no avail.

This is obv a Visual Studio issue rather than a Mojo issue.

Cheers

Matt

6/21/2011 12:01:10 PM
Gravatar
Total Posts 18439

Re: Publish version not working??

This is actually by design that we don't include user.config when publishing. user.config is expected to almost always be different on production than on your dev environment because in dev you would typically be using a local copy of the site database not the same database as production. So we typically want to avoid overwriting the production user.config file with the one from a dev environment.

As mentioned in the Packaging and Deployment article, I also usually publish to a local folder and then clean out other cruft such as the log files and cache dependency files and any junk images or files I may have uploaded in my dev environment for testing purposes before deploying to production.

Hope that helps,

Joe

 

6/22/2011 3:28:39 AM
Gravatar
Total Posts 34

Re: Publish version not working??

Thanks Joe, that makes sense.

I do always publish locally as often I only copy up the changed DLL's /  pages to save time copying to a remote server.

Would you be able to tell me how you specifically ignore files that are included in the project as that would help me in other projects too.

Thanks

Matt

6/22/2011 5:08:20 AM
Gravatar
Total Posts 34

Re: Publish version not working??

Ooops had a RTFM moment there

Just checked your link and it explains the above!

Cheers Joe and keep up the good work.

You must sign in to post in the forums. This thread is closed to new posts.