• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2189
  • Last Modified:

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

Parser 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 'evaluation.Global'.

Source Error:


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

 

Source File: D:\projects\evaluation\web\global.asax    Line: 1

Here's what i did
i deleted the D:\projects\evaluation\web\bin\evaluation.dll
reason, i have hardcoded the db to a path D:\projects\evaluation\db\database.db

now when i deployed it on the different server,
i get an error (sumthing about the database), i found that it is looking at my hardcoded dbpath.
so i deleted the dll and run again, now i get this error.

i have created asp.net pages now how do i properly deploy it on the different server?
0
Jerry_Pang
Asked:
Jerry_Pang
  • 2
  • 2
1 Solution
 
praneethaCommented:
make sure u have .db on server at the same path...
0
 
Jerry_PangAuthor Commented:
can i have it on different path?
when i build using from the scratch, i could change the path in the code
the code will still run perfectly on the server.

now i convert it to visual studio project, i could not change the code,
i have to recompile to make it work again.

is this how it should be done?
0
 
praneethaCommented:
yes if the path is in codebehind it should be recompiled...but if it is in web.config u don't have to recompile..
0
 
Jerry_PangAuthor Commented:
>>...but if it is in web.config u don't have to recompile..

hi, can you help me on this?

how do i use the web.config?
i need to set a variable in web.config
and how do i use it on my code?

dbpath="c:\data\data.mde"

then how do i use that on my vb code?
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now