cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Philip
Engaged Sweeper
After upgrading LanSweeper to version 4 I get a compilation error on the site. I'm using server 2003 and IIS6 as webserver.

I tried to change the date and time settings and the language settings on the server. Also tried to add a line in web.config to declare the date format.

The error appears when I access the site at the first time. After refreshing the site the error sometimes disappears. I cannot discover when and why. Sometimes the error appears again if I open a report or another LanSweeper page.

[size=3]Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30451: Name 'General' is not declared.

Source Error:



Line 18: Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 19: ' Code that runs when a new session is started
Line 20: Session("dateformat") = General.GetDateFormat
Line 21: End Sub
Line 22:


Source File: C:\Program Files\lansweeper\website\global.asax Line: 20

Compiler Warning Messages:
Warning: BC40056: Namespace or type specified in the Imports 'Lansweeper' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Source Error:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6879061\273c101\App_global.asax.7lqbbqlo.0.vb

[No relevant source lines]

Show Detailed Compiler Output:


c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6879061\273c101\App_global.asax.7lqbbqlo.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6879061\273c101\App_global.asax.7lqbbqlo.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6879061\273c101\App_global.asax.7lqbbqlo.1.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.3053
for Microsoft (R) .NET Framework version 2.0.50727.3607
Copyright (c) Microsoft Corporation. All rights reserved.

C:\Program Files\lansweeper\website\global.asax(20) : error BC30451: Name 'General' is not declared.

Session("dateformat") = General.GetDateFormat
~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d6879061\273c101\App_global.asax.7lqbbqlo.0.vb(14) : warning BC40056: Namespace or type specified in the Imports 'Lansweeper' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Imports Lansweeper
~~~~~~~~~~[/size]

I hope you can find out what is causing this error.

Regards,

Philip
9 REPLIES 9
Hemoco
Lansweeper Alumni
Please mail us at lansweeper@hemoco.com to try to fix this problem.
Philip
Engaged Sweeper
I'm sorry I didn't mention this, but on top of the error message I see:
Server Error in '/' Application.

Is this ok? Because I expected lansweeper to be the application name as configured in IIS.
Philip
Engaged Sweeper
Done, before deleting the files I must stop the IIS admin service. But it didn't help either. Only the above mentioned file appears again.
Hemoco
Lansweeper Alumni
Could you try deleting everything in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
Philip
Engaged Sweeper
Maybe it's good to know in the folder
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lansweeper\25c7b012\417d6b11\hash
there is only a file called hash.web. No more files in the lansweeper folder.
Philip
Engaged Sweeper
Good suggestion, tried it. But sorry, didn't help, same problem. Tried this from multiple PC's with Internet Explorer 8. I also configured a new website in IIS called lansweeper. But it doesn't matter which site I try. Problem didn't exist in previous version.
Hemoco
Lansweeper Alumni
Could you try:
removing the website
empty folder lansweeper\website
Run the setup, choose new installation and select only the website to install.
Philip
Engaged Sweeper
Yes, but it is version 4.0.0.0, I don't know if that is correct?
Hemoco
Lansweeper Alumni
Is there a file "lansweeper.dll" in the bin folder?

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now