Forum  Commercial Foru...  Commercial Foru...  Problems publishing in web server after upgrade from .NET2.0 to .NET3.5
Previous Previous
 
Next Next
New Post 8/18/2009 12:34 PM
  ruifrazao
578 posts
www.e-grou.com
1st Level Poster


Problems publishing in web server after upgrade from .NET2.0 to .NET3.5 
Modified By ruifrazao  on 8/18/2009 4:12:23 PM)
I am upgrading our server after upgrade solution from VStudio 2005 .NET2.0 to VStudion 2008 .NET3.5.
 
Everyting works well when runned from VStudio. When I try to publish these upgrade to the server gives the folowing error:
 
Erro de servidor na aplicação '/'.

A referência de objecto não foi definida como uma instância de um objecto.
Descrição: Excepção não processada ao executar o pedido Web actual. Consulte o rastreio da pilha para obter mais informações sobre o erro e o respectivo ponto de origem no código.

Detalhes da excepção: System.NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.

Erro de origem:

Foi gerada uma excepção não processada durante a execução do pedido Web actual. As informações relativas à origem e localização da excepção poderão ser identificadas através da utilização do rastreio da pilha de excepções abaixo.


Rastreio da pilha:

 
 
[NullReferenceException: A referência de objecto não foi definida como uma instância de um objecto.]
   Gizmox.WebGUI.Server.Cache..ctor() +425
   Gizmox.WebGUI.Server.Cache..cctor() +48
 
[Exception: Resource generator error.]
   Gizmox.WebGUI.Server.Router.GetHandler(HttpContext objHttpContext, String strRequestType, 
String strUrl, String strPathTranslated) +308
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, 
VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

 

 

Informações da versão: Versão do Microsoft .NET Framework:2.0.50727.3053; Versão do ASP.NET:2.0.50727.3053
 
 
Apparently looks like still using .NET2.0???
Server a client cache are cleaned.
 
Thanks & Regards,
Rui
 
e-grou Free Edition, your free document management online. Click here to subscribe e-grou Free Edition.
 
 
 
 
 
New Post 8/18/2009 3:28 PM
  palli
11189 posts
1st Level Poster




Re: Problems publishing in web server after upgrade from .NET2.0 to .NET3.5 

Hi Rui,

Wow... I've not been working with you long enough to understand the Portugeese :-)

A quick translation into english (or icelandic if you prefer) would be greatly appreciated.

By just reading the numbers from the error message, then did you deploy web.config with your app, or is it the same old one ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 8/18/2009 4:12 PM
  ruifrazao
578 posts
www.e-grou.com
1st Level Poster


Re: Problems publishing in web server after upgrade from .NET2.0 to .NET3.5 

Hi Palli,

 

Sorry about the language, I just copied the message. Now you have the translation.

I deploy the web.config too. The same web.config file I have tested from VStudio.

 

I am upgrading our server after upgrade solution from VStudio 2005 .NET2.0 to VStudio 2008 .NET3.5.

 

Everything works well when run from VStudio. When I try to publish this upgrade to the server gives the following error:

 

Server Application Error '/'.


Object reference not set to an instance of an object

Description: Exception not handled by running the current Web request. See the stack trace for more information about the error and its point of origin in code.

Details of the exception: System.NullReferenceException: The reference object was not set to an instance of an object.



Error source:

Generated an exception was not handled during the execution of the current web request. Information on the origin and location of the exception can be identified through the use of the stack trace of exceptions below.


Screening of cell:

 

 
[NullReferenceException: The reference object was not set to an instance of an object.]
   Gizmox.WebGUI.Server.Cache..ctor() +425
   Gizmox.WebGUI.Server.Cache..cctor() +48
 
[Exception: Resource generator error.]
   Gizmox.WebGUI.Server.Router.GetHandler(HttpContext objHttpContext, String strRequestType, 
String strUrl, String strPathTranslated) +308
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, 
VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

 

 


Version Information: Version of Microsoft. NET Framework:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

 

 

Apparently looks like still using .NET2.0???

Server a client cache is cleaned.

 

Thanks & Regards,

Rui

 

e-grou Free Edition, your free document management online. Click here to subscribe e-grou Free Edition.

www.e-grou.com

 

 
New Post 8/18/2009 4:27 PM
  palli
11189 posts
1st Level Poster




Re: Problems publishing in web server after upgrade from .NET2.0 to .NET3.5 

Hi Rui,

Somehow this is a much more understandable error message :-)

Yes, this does sound like .NET 2 is being used, but that should be quite fine. Might sound confusing to have Gizmox SDK version named 2.0 and 3.5, but that does not necessarily relate to the actual .NET version used. It is meant as VS2005 and VS2008 indicators.

You can, and I have done so, compile your app in VS2008 using Gizmox NET3.5 assemblies with a .NET 2.0 target framework for your compilation.

If I remember correctly from your "upgrading" thread, then you did set target framework within VS2008 to 3.5, right ? If so, before you start heavy updating on the server, you might simply try to set the target framework to 2.0, and compile + deploy your project again to the server, without making any other changes. Might be a good idea to delete the bin and obj folders in your app before you recompile, to make sure everything in there will be recreated.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 8/18/2009 4:44 PM
  ruifrazao
578 posts
www.e-grou.com
1st Level Poster


Re: Problems publishing in web server after upgrade from .NET2.0 to .NET3.5 
Modified By ruifrazao  on 8/18/2009 6:47:14 PM)

Palli,

 

Tomorow I will try that, and as soon as possible I will give you the feedback. (it is a little late here, almost 23:45 ;) )

 

Anyway I will need the .NET Framework 3.5. I made the upgrade because I need some functions available only in 3.5.

 

Thanks & Regards,

Rui

 

e-grou Free Edition, your free document management online. Click here to subscribe e-grou Free Edition.

www.e-grou.com

 

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Problems publishing in web server after upgrade from .NET2.0 to .NET3.5
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS