R
RasmusKL
I'm currently starting my first asp.net 2.0 app, and doing so on my
current webhotel proved to be somewhat of a challenge.
First I thought I had a problem with references, since it gave an error
when I added LuaInterface.dll and tried using it:
"CS0246: The type or namespace name 'LuaInterface' could not be found
(are you missing a using directive or an assembly reference?)"
I then proceeded to create an App_Code folder, make a custom class
(Class1) and use that in on my Default.aspx page (code-behind)... Same
result:
"CS0246: The type or namespace name 'Class1' could not be found (are
you missing a using directive or an assembly reference?)"
....
Now all these things work fine if I run it locally on my own computer.
Furthermore, I also noticed I had to do quite a few changes to the
standard provided web.config file (created when you run the first
time). If I create a standard WebSite project (HTTP) and just try to
run it out-of-the-box (f5), it gives the following error:
"Unable to start debugging on the web server. Logon failure: unknown
user name or bad password. See help for information."
However, I was never asked about login credentials when trying to run -
but the user/password for logging on the server were correct when I
created the project (and the files are actually on the server).
Alright. Running without debugging (ctrl-f5) works. However, I have to
set customErrors to "off" in the web.config file and comment the
<authentication mode="Windows"/> out for the whole thing to work.
But then, if running in HTTP mode, it's unable to add references or add
classes to App_Code, since it can't create a _vti_cnf folder, which
apparently already exists on the server. Argh! This works in FTP mode
though, strangely.
If I create a project that works perfectly locally and copy it up to
the webserver, I get exactly the same problems.
Does anyone have any idea of what's wrong - might be a trivial problem?
Frustrated thanks,
- Rasmus.
current webhotel proved to be somewhat of a challenge.
First I thought I had a problem with references, since it gave an error
when I added LuaInterface.dll and tried using it:
"CS0246: The type or namespace name 'LuaInterface' could not be found
(are you missing a using directive or an assembly reference?)"
I then proceeded to create an App_Code folder, make a custom class
(Class1) and use that in on my Default.aspx page (code-behind)... Same
result:
"CS0246: The type or namespace name 'Class1' could not be found (are
you missing a using directive or an assembly reference?)"
....
Now all these things work fine if I run it locally on my own computer.
Furthermore, I also noticed I had to do quite a few changes to the
standard provided web.config file (created when you run the first
time). If I create a standard WebSite project (HTTP) and just try to
run it out-of-the-box (f5), it gives the following error:
"Unable to start debugging on the web server. Logon failure: unknown
user name or bad password. See help for information."
However, I was never asked about login credentials when trying to run -
but the user/password for logging on the server were correct when I
created the project (and the files are actually on the server).
Alright. Running without debugging (ctrl-f5) works. However, I have to
set customErrors to "off" in the web.config file and comment the
<authentication mode="Windows"/> out for the whole thing to work.
But then, if running in HTTP mode, it's unable to add references or add
classes to App_Code, since it can't create a _vti_cnf folder, which
apparently already exists on the server. Argh! This works in FTP mode
though, strangely.
If I create a project that works perfectly locally and copy it up to
the webserver, I get exactly the same problems.
Does anyone have any idea of what's wrong - might be a trivial problem?
Frustrated thanks,
- Rasmus.