Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Saturday, March 31, 2012

Server Side Error

Hello,
If you hit this page ...http://www.ourwebzone.com/calendarprintout/index.aspx
You will see the error is referring to DotNetNuke web.config. This is not right.
I am tryng to run my Calendar Printout app.
I have my CalendarPrintout (no DB used) app setup like this...
FILE STRUCTURE
---------------
www.ourwebzone.com (root)
web.config (dotnetnuke is stored in root)
global.aspx
bin (folder)
--> CalendarPrintout
web.config
global.aspx
---> bin (folder)
CalendarPrintout.DLL
How come my web.config is being ignored in my CalendarPrintout folder??
Why is the DNN web.config being hit?
I tried to put my CalendarPrintout.DLL in the domains root BIN folder, but same error.
But, if I removed the BIN folder from my CalendarPrintout folder (see) above.. I get this error?
Parser Error Message:Could not load type 'CalendarPrintout.Global'.
Source Error:
Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.vb" Inherits="CalendarPrintout.Global" %>

What do I do??
Thanks
FrankHello,
In order to run this application you have to create a VIRTUAL DIRECTORY for CalendarPrintout

HTH
regards
I have no control of Virtual direcories on my web host, but they said that they did that.
Any other ideas?
Thanks
Hello,
I'm sure that you should use virtual directory for this folder. If you move the calander foldet to the root it will work.
anyway, check this threadhttp://forums.asp.net/1069271/ShowPost.aspx
regards

Thursday, March 29, 2012

Server side redirect 301

Hello -

When a user browses to http://mysite.com, I want the server to automatically do a serverside 301 redirect to http://www.mysite.com

I have heard that this is possible in the global.asax file, but I don't know much about it. Can someone help me with a simple example of how this would be done?

Thanks,

DanHello, what you can do is: in ur index.aspx page add this:

Server.Transfer("http://www.mysite.com");

do u need more than this ?
Or do you want the url to be physically updated in the browser? I believe you can do this in IIS (I know you can do it in apache), but sorry I wouldn't know how to do it. Find some IIS gurus :-)
Well, actually, I have two questions. Let me try and explain better.

1) If a user types in http://mysite.com OR http://mysite.com/pages/page1.htm ETC... (basically they browse to any URL on my site, WITHOUT www. in front of it) I want the global.asax to look at the URL that has been requested and search for "http://www." in the query string. If it is not there, I want it to put the www. into the request in the proper place and do a server side 301 redirect.

2) I am now also wondering if it is possible to handle this scenario : a user browses to the following URL : http://www.mysite.com/page/page-1.html. I want the global.asax page to take the requested URL and display the contents of a different URL http://www.mysite.com/page/showthemthis.aspx, but at the same time keeping the "http://www.mysite.com/page/page-1.html" URL in the users browser window.

Can the global.asax handle either of these situations? I am more concerned about handling situation #1, but am just curious about situation #2.

Thanks,

Dan

Monday, March 26, 2012

Server side-error occurred on sending debug HTTP request.

I got a new machine this week. Prior to that, I backed up my WWWROOT folder.

Now I have the new machine, moved my files back.

I have one projet, though, that refuses to debug/launch:

================================================
Error while trying to run project: Unable to start debugging on the web
server. Server side-error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a Debug.Start Without Debugging. You may also
want to refer to the ASP.NET and ATL Server debugging topic in the online
documentation.
================================================

According to MS, the likely cause is a bad web.config file. However, this is
the same file that worked on my last machine, and it's the exact same file
currently running on our live server just fine.

So, could there be another culprit here? Anything else I should look at?

-DarrelIs your IIS configured right... You have to config your folder as a
application folder in the IIS
"darrel" <notreal@.nowhere.com> escreveu na mensagem
news:eVOxrZb1FHA.3256@.TK2MSFTNGP09.phx.gbl...
>I got a new machine this week. Prior to that, I backed up my WWWROOT
>folder.
> Now I have the new machine, moved my files back.
> I have one projet, though, that refuses to debug/launch:
> ================================================
> Error while trying to run project: Unable to start debugging on the web
> server. Server side-error occurred on sending debug HTTP request.
> Make sure the server is operating correctly. Verify there are no syntax
> errors in web.config by doing a Debug.Start Without Debugging. You may
> also want to refer to the ASP.NET and ATL Server debugging topic in the
> online documentation.
> ================================================
> According to MS, the likely cause is a bad web.config file. However, this
> is the same file that worked on my last machine, and it's the exact same
> file currently running on our live server just fine.
> So, could there be another culprit here? Anything else I should look at?
> -Darrel
Is it possible that you had the Web declared as an Application in IIS but
you have done that on the new machine?

Ken

Microsoft MVP [ASP.NET]

"darrel" <notreal@.nowhere.com> wrote in message
news:eVOxrZb1FHA.3256@.TK2MSFTNGP09.phx.gbl...
>I got a new machine this week. Prior to that, I backed up my WWWROOT
>folder.
> Now I have the new machine, moved my files back.
> I have one projet, though, that refuses to debug/launch:
> ================================================
> Error while trying to run project: Unable to start debugging on the web
> server. Server side-error occurred on sending debug HTTP request.
> Make sure the server is operating correctly. Verify there are no syntax
> errors in web.config by doing a Debug.Start Without Debugging. You may
> also want to refer to the ASP.NET and ATL Server debugging topic in the
> online documentation.
> ================================================
> According to MS, the likely cause is a bad web.config file. However, this
> is the same file that worked on my last machine, and it's the exact same
> file currently running on our live server just fine.
> So, could there be another culprit here? Anything else I should look at?
> -Darrel
> Is your IIS configured right... You have to config your folder as a
> application folder in the IIS

Yea. I dunno what happened. I destroyed all my project files, made a new
project, reimported all the files (including the web.config) and things were
back to normal.

Must have been a VS.net bug.

Surprise. ;o)

-Darrel

Server side-error occurred on sending debug HTTP request

Hi,

my error is

error while tryng to run project: unable to start debugging on the web
server. Server side-error occurred on sending
debug HTTP request.
Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a debug.
Start without debugging. You may also to refer to the asp.net and ATL Server
debugging topic in the online documentation

For work, i have un-install iis and re-install iis any times on reset my
system (machine).

any ideas?tanks

"Trevor Benedict R" <trevornews@.yahoo.com> escreveu na mensagem
news:B74F81DE-FDF9-4162-AFE6-E05A902E24DD@.microsoft.com...
> If this is a Development machine then change the ProcessModel Section in
Machine.Config to use SYSTEM instead of Machine. Then restart Visual Studio.
The second thing that I can think of is if you have URL Scan installed then
check for all allowable verbs.
> Regards,
> Trevor Benedict R

Server side-error occurred on sending debug HTTP request

Hi,
my error is
error while tryng to run project: unable to start debugging on the web
server. Server side-error occurred on sending
debug HTTP request.
Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a debug.
Start without debugging. You may also to refer to the asp.net and ATL Server
debugging topic in the online documentation
For work, i have un-install iis and re-install iis any times on reset my
system (machine).
any ideas?If this is a Development machine then change the ProcessModel Section in Mac
hine.Config to use SYSTEM instead of Machine. Then restart Visual Studio. Th
e second thing that I can think of is if you have URL Scan installed then ch
eck for all allowable verbs
tanks
"Trevor Benedict R" <trevornews@.yahoo.com> escreveu na mensagem
news:B74F81DE-FDF9-4162-AFE6-E05A902E24DD@.microsoft.com...
> If this is a Development machine then change the ProcessModel Section in
Machine.Config to use SYSTEM instead of Machine. Then restart Visual Studio.
The second thing that I can think of is if you have URL Scan installed then
check for all allowable verbs.
> Regards,
> Trevor Benedict R

Server side-error occurred on sending debug HTTP request.

I got a new machine this w. Prior to that, I backed up my WWWROOT folder.
Now I have the new machine, moved my files back.
I have one projet, though, that refuses to debug/launch:
========================================
========
Error while trying to run project: Unable to start debugging on the web
server. Server side-error occurred on sending debug HTTP request.
Make sure the server is operating correctly. Verify there are no syntax
errors in web.config by doing a Debug.Start Without Debugging. You may also
want to refer to the ASP.NET and ATL Server debugging topic in the online
documentation.
========================================
========
According to MS, the likely cause is a bad web.config file. However, this is
the same file that worked on my last machine, and it's the exact same file
currently running on our live server just fine.
So, could there be another culprit here? Anything else I should look at?
-DarrelIs your IIS configured right... You have to config your folder as a
application folder in the IIS
"darrel" <notreal@.nowhere.com> escreveu na mensagem
news:eVOxrZb1FHA.3256@.TK2MSFTNGP09.phx.gbl...
>I got a new machine this w. Prior to that, I backed up my WWWROOT
>folder.
> Now I have the new machine, moved my files back.
> I have one projet, though, that refuses to debug/launch:
> ========================================
========
> Error while trying to run project: Unable to start debugging on the web
> server. Server side-error occurred on sending debug HTTP request.
> Make sure the server is operating correctly. Verify there are no syntax
> errors in web.config by doing a Debug.Start Without Debugging. You may
> also want to refer to the ASP.NET and ATL Server debugging topic in the
> online documentation.
> ========================================
========
> According to MS, the likely cause is a bad web.config file. However, this
> is the same file that worked on my last machine, and it's the exact same
> file currently running on our live server just fine.
> So, could there be another culprit here? Anything else I should look at?
> -Darrel
>
Is it possible that you had the Web declared as an Application in IIS but
you have done that on the new machine?
Ken
Microsoft MVP [ASP.NET]
"darrel" <notreal@.nowhere.com> wrote in message
news:eVOxrZb1FHA.3256@.TK2MSFTNGP09.phx.gbl...
>I got a new machine this w. Prior to that, I backed up my WWWROOT
>folder.
> Now I have the new machine, moved my files back.
> I have one projet, though, that refuses to debug/launch:
> ========================================
========
> Error while trying to run project: Unable to start debugging on the web
> server. Server side-error occurred on sending debug HTTP request.
> Make sure the server is operating correctly. Verify there are no syntax
> errors in web.config by doing a Debug.Start Without Debugging. You may
> also want to refer to the ASP.NET and ATL Server debugging topic in the
> online documentation.
> ========================================
========
> According to MS, the likely cause is a bad web.config file. However, this
> is the same file that worked on my last machine, and it's the exact same
> file currently running on our live server just fine.
> So, could there be another culprit here? Anything else I should look at?
> -Darrel
>
> Is your IIS configured right... You have to config your folder as a
> application folder in the IIS
Yea. I dunno what happened. I destroyed all my project files, made a new
project, reimported all the files (including the web.config) and things were
back to normal.
Must have been a VS.net bug.
Surprise. ;o)
-Darrel