Developer forum

Forum » Development » Setup problem DW7 / IIS7

Setup problem DW7 / IIS7


Reply

Hi,
 

I experience problems with setting up DW7 with SQL Server on my local machine.
 

When I access local.NameOfTheCustomer.com and local.NameOfTheCustomer.com/admin I get the following error
 

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.


Parser Error Message: Could not load type 'CustomModules.Global'.

Source Error:


Line 1:  <%@ Application Codebehind="Global.asax.cs" Inherits="CustomModules.Global" Language="C#" %>


You can see a screen dump here:
http://test.pajor.dk/dw/parseerror.html
 

The IIS is setup with .NET v2.0 and Managed Pipeline Mode is Classic.
 

It is the first time that I am setting up DW7 locally with SQL Server - so it might be a newbie error.
 

Thanks


Replies

 
Nicolai Høeg Pedersen
Reply
Seems like you have not build your solution?

Does your /Bin folder contains a CustomModules.dll file? If not - that is your problem.

Another thing is - you do not need a custom Global.asax in most cases. Simply copy the one from /Application/Global.asax - should look something like this:

<%@ Application Codebehind="Global.asax.vb" Inherits="Dynamicweb.Admin.Global" %>

If you change global.asax to this the error will go away - you may just have another one because your Default.aspx is also referencing CustomModules.dll which does not seem to be there...
 
Reply

Hi again,

That took care of the problem - I was missing the .dll. I have changed the global.asax as well.

However another problem arose.

Now I get this error:

Please wait!
The SQL-Server database could not be opened ('Ecom.mdb') - the error is:
 

System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at Dynamicweb.Database.GetConn(String strDatabase)

I do not need the Ecom-part - can I turn it of?

ST

 
Nicolai Høeg Pedersen
Reply
Have a look in /Files/GlobalSettings.aspx  -check the settings in the database section:

<Database>
      <Password>sqlDEVsql</Password>
      <Type>ms_sqlserver</Type>
      <UserName>DEVsql</UserName>
      <Database>DEV</Database>
      <SQLServer>sql-s002</SQLServer>
</Database>
 
Reply

Hi there,

We're getting closer. The front-end seems to be working now (404-DW page).

But when I try to access the admin-module (/admin) I get this error:

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: BC30456: 'Management' is not a member of 'Content'.

Source Error:

 

Line 9:    Dim LicenseName As String = String.Empty
Line 10:   Try
Line 11:    LicenseName = Dynamicweb.Content.Management.License.GetLicenseName()
Line 12:   Catch ex As Exception
Line 13:
 

Source File: C:\@dynamicweb\app.dynamicweb.dk\dynamicweb\DefaultApplication\Admin\access\Default.aspx    Line: 11


ST

 
Reply
Hi again,

I found the problem - the references were wrong.

I have updated the references - and now it seems to be working.

Thank You for Your help!


ST
 
Nicolai Høeg Pedersen
Reply
That is because your /Admin folder does not correspond with the assemblies in your /Bin folder.

You probably have /Admin as a virtual folder. On its physical location there is a bin folder as well. Copy the assemblies from that to the web site roots /Bin folder.
 
Olga Petrova
Reply

Hi, I need to set locally DW7 version. Seems everything is configured correctly.

But when I run the web site I got the following error. I didn't have such problems with DW8.

Could you please advise me something to fix it?

 

 

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.            
Parser Error Message: Could not load type 'Dynamicweb.Admin.Global'.
Source Error:

Line 1:  <%@ Application Codebehind="Global.asax.vb" Inherits="Dynamicweb.Admin.Global" %> 


Source File: /global.asax    Line: 1

 


Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

 

 

 

DW7.png
 
Nicolai Høeg Pedersen
Reply

Hi Olga

 

Seems like you are missing some dll's in your bin folder or you are mixing global.asax file from DW7 and DW8. Check up on those 2.

 

BR Nicolai

 
Olga Petrova
Reply

Thanks, Nicolai

Probably I have some issues in my system because I set up the same on my virtual machine and it works.

 

Best regards,
Olga.

 

You must be logged in to post in the forum