Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Saturday, March 31, 2012

the asp.net equivalent of the "Request.Form" in asp

i am having problems with a simple web service i am creating in asp.net using C#. does anybody know what Request.Form is in asp.net.
cheers
much appreciatedI've never done classic ASP code, but I think what you're looking for is Request.Params[]

Should still be Request.Form. What is the problem that you are having?


Hi,
Request.Form method was used in classic ASP(3.0)
<form action="hello.aspx" method="post">
Your name: <input type="text" name="fname" size="20">
<input type="submit" value="Submit">
</form>
<%
dim fname
fname=Request.Form("fname")
Response.Write("Hello " & fname)
%>
As in Asp.net forms are posted to itself So Request.Form was not actively used in asp.net.
Iam still now able to understand why you require this in web services.


You can still use Request.Form, but you'll have to make sure the value exists before trying to use it. In Classic ASP, if the value didn't exist it would return an empty string, but in ASP.NET you get Nothing (in VB.NET, which I believe is null in C#).

Wednesday, March 28, 2012

The compiler failed with error code -1073741502.

Any ideals what would cause this ?

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: The compiler failed with error code
-1073741502.

Show Detailed Compiler Output:

C:\WINDOWS\system32"c:\windows\microsoft.net\framework
\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net
\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net
\framework\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\g8avop1s.dll" /R:"c:\windows\assembly\gac
\system.enterpriseservices\1.0.5000.0__b03f5f7f11d 50a3a
\system.enterpriseservices.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\9b87984c
\00665a14_66a1c201\interop.wmencagentlocatorlib.dl l" /R:"c:\windows
\assembly\gac\system.data
\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\a9191987\00665a14_66a1c201\interop.wmencagtli b.dll" /R:"c:\windows
\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f 7f11d50a3a
\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly
\dl2\8656e736\0009e65d_74d4c701\log4net.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly\dl 2\e0eb1a8b
\00bdaa62_74d4c701\cnnencodingservices.dll" /R:"c:\windows\assembly\gac
\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syste m.drawing.dll" /R:"c:
\windows\microsoft.net\framework\v1.1.4322\tempora ry asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\ebf89319\00dcb45c_74d4c701\wmewebsvcagent.dll " /R:"c:\windows
\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e 089\system.xml.dll" /
R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\18b641f9\00665a14_66a1c201\interop.wmencoderl ib.dll" /R:"c:
\windows\assembly\gac\system.web.services\1.0.5000 .0__b03f5f7f11d50a3a
\system.web.services.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\b9e5a82b
\00dcb45c_74d4c701\wmewebsvc.dll" /R:"c:\windows\assembly\gac\system
\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac
\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.we b.dll" /out:"C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files
\cnnencodingservices\0f9adc62\70fb5ce7\hic1jo5y.dl l" /D:DEBUG /debug+ /
optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework
\v1.1.4322\Temporary ASP.NET Files\cnnencodingservices
\0f9adc62\70fb5ce7\hic1jo5y.0.cs"

Show Complete Compilation Source:

Line
1: //------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.2032
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior
and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line
9: //------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25: using ASP;
Line 26:
Line 27: #line 2 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 28: using System.IO;
Line 29:
Line 30: #line default
Line 31: #line hidden
Line 32:
Line 33: #line 3 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 34: using System.Xml.Serialization;you had the app running while you were trying to build it. Not going to
happen. Close down the web app first then try and build it again.

<rkcons@dotnet.itags.org.gmail.comwrote in message
news:1190212403.368282.126580@dotnet.itags.org.57g2000hsv.googlegro ups.com...

Quote:

Originally Posted by

Any ideals what would cause this ?
>
>
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: The compiler failed with error code
-1073741502.
>
>
>
Show Detailed Compiler Output:
>
C:\WINDOWS\system32"c:\windows\microsoft.net\framework
\v1.1.4322\csc.exe" /t:library /utf8output /R:"c:\windows\microsoft.net
\framework\v1.1.4322\mscorlib.dll" /R:"c:\windows\microsoft.net
\framework\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\g8avop1s.dll" /R:"c:\windows\assembly\gac
\system.enterpriseservices\1.0.5000.0__b03f5f7f11d 50a3a
\system.enterpriseservices.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\9b87984c
\00665a14_66a1c201\interop.wmencagentlocatorlib.dl l" /R:"c:\windows
\assembly\gac\system.data
\1.0.5000.0__b77a5c561934e089\system.data.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\a9191987\00665a14_66a1c201\interop.wmencagtli b.dll" /R:"c:\windows
\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f 7f11d50a3a
\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly
\dl2\8656e736\0009e65d_74d4c701\log4net.dll" /R:"c:\windows
\microsoft.net\framework\v1.1.4322\temporary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly\dl 2\e0eb1a8b
\00bdaa62_74d4c701\cnnencodingservices.dll" /R:"c:\windows\assembly\gac
\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syste m.drawing.dll" /R:"c:
\windows\microsoft.net\framework\v1.1.4322\tempora ry asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\ebf89319\00dcb45c_74d4c701\wmewebsvcagent.dll " /R:"c:\windows
\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e 089\system.xml.dll" /
R:"c:\windows\microsoft.net\framework\v1.1.4322\tempo rary asp.net files
\cnnencodingservices\0f9adc62\70fb5ce7\assembly
\dl2\18b641f9\00665a14_66a1c201\interop.wmencoderl ib.dll" /R:"c:
\windows\assembly\gac\system.web.services\1.0.5000 .0__b03f5f7f11d50a3a
\system.web.services.dll" /R:"c:\windows\microsoft.net\framework
\v1.1.4322\temporary asp.net files\cnnencodingservices
\0f9adc62\70fb5ce7\assembly\dl2\b9e5a82b
\00dcb45c_74d4c701\wmewebsvc.dll" /R:"c:\windows\assembly\gac\system
\1.0.5000.0__b77a5c561934e089\system.dll" /R:"c:\windows\assembly\gac
\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.we b.dll" /out:"C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files
\cnnencodingservices\0f9adc62\70fb5ce7\hic1jo5y.dl l" /D:DEBUG /debug+ /
optimize- /warnaserror /w:1 "C:\WINDOWS\Microsoft.NET\Framework
\v1.1.4322\Temporary ASP.NET Files\cnnencodingservices
\0f9adc62\70fb5ce7\hic1jo5y.0.cs"
>
>
>
>
>
>
>
Show Complete Compilation Source:
>
Line
1:
//------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.2032
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior
and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line
9:
//------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25: using ASP;
Line 26:
Line 27: #line 2 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 28: using System.IO;
Line 29:
Line 30: #line default
Line 31: #line hidden
Line 32:
Line 33: #line 3 "c:\windows\microsoft.net\framework
\v1.1.4322\Config\DefaultWsdlHelpGenerator.aspx"
Line 34: using System.Xml.Serialization;
>