Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Monday, March 26, 2012

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 trouble

This morning I have problems opening my VS projects and I can't make a new one. I get this error:

HTTP Error 404: Unable to create Web project <project name>
Unable to create Web project 'WebApplication'. The file path '<file path>' does not correspond to the URL 'http//localhost/<project name>'. The two need to map to the same server location. HTTP Error 404: Object Not Found. For more information, see Unable to Locate Object on Web Server.

What's going on? I haven't changed server settings or something like that.
I use XP Proff.It sounds like IIS may be having problems.

I would try rebooting and if that doesn't work I would try reinstalling IIS through the Control Panel->Add/Remove Programs->Add/Remove Windows Components. If that fails, reinstall VS. Other than that I don't know.
Now I've solved the problem running
C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i

Very strange :confused: :confused: :confused:

Tuesday, March 13, 2012

server.mappath

frm1.1 c#

in my project library(.cs) when i use server.mappath() it never works why?

i use

HttpContext.Current.Server.MapPath();

to access but it never reads the path of the file give why?

Are you sure your project library has access to the HttpContext? In other words, when you are debugging, is HttpContext.Current null?


What do you mean by it never works!! make sure you import the System.Web namespace using System.Web;

HC


thanks everybody for the reply

haissam i have used system.web namespace

i dont know why the server.mappath never gets the file path when in mylibrary project files


Are you working on a web application ?

Server.MapPath Failing When Moved to Class Module

In a VB/ASP.NET project, the following lines work as advertised when placed
in a code-behind file (whatever.aspx.vb) - meaning that I get the full
physical path to MyDatabase.MDB in the variable PathToMDB. However, when the
same two lines are moved to a separate class file (whatever.vb), the project
fails to build - with the message "Name 'Server' is not declared."

Dim PathToMDB As String
PathToMDB = Server.MapPath("/MySite/db/") + "MyDatabase.mdb"

Why is this? What can I do about it? I need to obtain the physical path to
the MDB file from within the class file.

Thanks in advance."Jeff S" <JeffS@.asdf.net> wrote in message
news:uloQjlvoDHA.1928@.TK2MSFTNGP12.phx.gbl...
> In a VB/ASP.NET project, the following lines work as advertised when
placed
> in a code-behind file (whatever.aspx.vb) - meaning that I get the full
> physical path to MyDatabase.MDB in the variable PathToMDB. However, when
the
> same two lines are moved to a separate class file (whatever.vb), the
project
> fails to build - with the message "Name 'Server' is not declared."
> Dim PathToMDB As String
> PathToMDB = Server.MapPath("/MySite/db/") + "MyDatabase.mdb"
>
> Why is this? What can I do about it? I need to obtain the physical path to
> the MDB file from within the class file.
> Thanks in advance.

Try
HttpContext.Current.Server.MapPath("/MySite/db/") + "MyDatabase.mdb"

--
[[((hillarie))]]

To reply by email, remove ".SPAMBLOCK" from email address
Try it in this format:
MyConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
server.mappath("/") & "../data/myDB.mdb;"

David Wier
MCP, MVP ASP.NET, ASPInsider
http://aspnet101.com
http://aspexpress.com

"Jeff S" <JeffS@.asdf.net> wrote in message
news:uloQjlvoDHA.1928@.TK2MSFTNGP12.phx.gbl...
> In a VB/ASP.NET project, the following lines work as advertised when
placed
> in a code-behind file (whatever.aspx.vb) - meaning that I get the full
> physical path to MyDatabase.MDB in the variable PathToMDB. However, when
the
> same two lines are moved to a separate class file (whatever.vb), the
project
> fails to build - with the message "Name 'Server' is not declared."
> Dim PathToMDB As String
> PathToMDB = Server.MapPath("/MySite/db/") + "MyDatabase.mdb"
>
> Why is this? What can I do about it? I need to obtain the physical path to
> the MDB file from within the class file.
> Thanks in advance.