testing out an asp.net application on university server problem

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 41
Reputation: julseypart is an unknown quantity at this point 
Solved Threads: 0
julseypart julseypart is offline Offline
Light Poster

testing out an asp.net application on university server problem

 
0
  #1
Jan 15th, 2009
hi, im trying to test out my application so far by uploading all the project files to my "web" folder on the university server, but when i naviage to the server/myfoldername where the index.aspx is located i get an application error - what im i doing wrong? im using filezilla to upload the files...

p.s. here is the link

http://itsuite.it.brighton.ac.uk/jmp...YearProject09/

thanks
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 41
Reputation: julseypart is an unknown quantity at this point 
Solved Threads: 0
julseypart julseypart is offline Offline
Light Poster

Re: testing out an asp.net application on university server problem

 
0
  #2
Jan 15th, 2009
when i put all the files in the main root folder (i.e. NOT in any folder), i get this message:

http://itsuite.it.bton.ac.uk/jmp8/


my project works fine when running on my local pc in visual web developer
Last edited by julseypart; Jan 15th, 2009 at 7:27 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 130
Reputation: sedgey is on a distinguished road 
Solved Threads: 8
sedgey's Avatar
sedgey sedgey is offline Offline
Junior Poster

Re: testing out an asp.net application on university server problem

 
0
  #3
Jan 16th, 2009
your first post seemed to have you pointing in the right direction, and the error message tells you what you need to do. If you do not have access to the server directly then you need to ask the server admin to configure your folder as an application in IIS.
http://msdn.microsoft.com/en-us/library/bb763173.aspx

Your second post seems to indicate that ASP.NET AJAX may not be installed on the server, in which case you have 2 choices.
1. develop the app without ajax (in which case remove the ajax elements from your config file as this will stop your error message)
2. ask the server admin to install asp.net ajax http://www.asp.net/ajax/documentatio...SPNETAJAX.aspx
Last edited by sedgey; Jan 16th, 2009 at 2:46 am.
David Ridgway: so little daylight, too much caffeine
MCSD MCAD MCSE
http://web2asp.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 41
Reputation: julseypart is an unknown quantity at this point 
Solved Threads: 0
julseypart julseypart is offline Offline
Light Poster

Re: testing out an asp.net application on university server problem

 
0
  #4
Jan 16th, 2009
thanks, i would like to remove the appropriate elements but not sure what to remove, when i comment out the problem line:

  1. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

it causes another error message - i dont know why ajax is an issue as im not using it - or do some of the asp.net controls use it?
Last edited by peter_budo; Jan 18th, 2009 at 2:30 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 130
Reputation: sedgey is on a distinguished road 
Solved Threads: 8
sedgey's Avatar
sedgey sedgey is offline Offline
Junior Poster

Re: testing out an asp.net application on university server problem

 
0
  #5
Jan 16th, 2009
Basic web.config created in VS2005 looks like this, so you can remove what you dont need from your own file by comparing it

  1. <?xml version="1.0"?>
  2. <!--
  3.   Note: As an alternative to hand editing this file you can use the
  4.   web admin tool to configure settings for your application. Use
  5.   the Website->
  6. Asp.Net Configuration option in Visual Studio.
  7. A full list of settings and comments can be found in
  8. machine.config.comments usually located in
  9. \Windows\Microsoft.Net\Framework\v2.x\Config
  10. -->
  11. <configuration>
  12. <appSettings/>
  13. <connectionStrings/>
  14. <system.web>
  15. <!--
  16.   Set compilation debug="true" to insert debugging
  17.   symbols into the compiled page. Because this
  18.   affects performance, set this value to true only
  19.   during development.
  20.  
  21.   Visual Basic options:
  22.   Set strict="true" to disallow all data type conversions
  23.   where data loss can occur.
  24.   Set explicit="true" to force declaration of all variables.
  25.   -->
  26. <compilation debug="false" strict="false" explicit="true" />
  27. <pages>
  28. <namespaces>
  29. <clear />
  30. <add namespace="System" />
  31. <add namespace="System.Collections" />
  32. <add namespace="System.Collections.Specialized" />
  33. <add namespace="System.Configuration" />
  34. <add namespace="System.Text" />
  35. <add namespace="System.Text.RegularExpressions" />
  36. <add namespace="System.Web" />
  37. <add namespace="System.Web.Caching" />
  38. <add namespace="System.Web.SessionState" />
  39. <add namespace="System.Web.Security" />
  40. <add namespace="System.Web.Profile" />
  41. <add namespace="System.Web.UI" />
  42. <add namespace="System.Web.UI.WebControls" />
  43. <add namespace="System.Web.UI.WebControls.WebParts" />
  44. <add namespace="System.Web.UI.HtmlControls" />
  45. </namespaces>
  46. </pages>
  47. <!--
  48.   The <authentication>
  49. section enables configuration
  50. of the security authentication mode used by
  51. ASP.NET to identify an incoming user.
  52. -->
  53. <authentication mode="Windows" />
  54. <!--
  55.   The <customErrors>
  56. section enables configuration
  57. of what to do if/when an unhandled error occurs
  58. during the execution of a request. Specifically,
  59. it enables developers to configure html error pages
  60. to be displayed in place of a error stack trace.
  61.  
  62. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  63. <error statusCode="403" redirect="NoAccess.htm" />
  64. <error statusCode="404" redirect="FileNotFound.htm" />
  65. </customErrors>
  66. -->
  67. </system.web>
  68. </configuration>
Last edited by peter_budo; Jan 18th, 2009 at 2:31 pm. Reason: Please, either use [code] or [code=asp.net] (or other langiage as necessary). Please do not use [quote]
David Ridgway: so little daylight, too much caffeine
MCSD MCAD MCSE
http://web2asp.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 41
Reputation: julseypart is an unknown quantity at this point 
Solved Threads: 0
julseypart julseypart is offline Offline
Light Poster

Re: testing out an asp.net application on university server problem

 
0
  #6
Jan 16th, 2009
my config file is abit more complex, i honestly wouldnt know what to remove/change

  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  5. <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  6. <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  7. <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  8. <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
  9. <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  10. <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  11. <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  12. </sectionGroup>
  13. </sectionGroup>
  14. </sectionGroup>
  15. </configSections>
  16. <appSettings/>
  17. <connectionStrings>
  18. <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\BackupSystemDatabase.mdf;Integrated Security=True;User Instance=True"
  19. providerName="System.Data.SqlClient" />
  20. <add name="ConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True"
  21. providerName="System.Data.SqlClient" />
  22. </connectionStrings>
  23. <system.web>
  24. <customErrors mode="Off"/>
  25. <httpRuntime executionTimeout="1000" maxRequestLength="1048576"/>
  26.  
  27. <!--
  28. Set compilation debug="true" to insert debugging
  29. symbols into the compiled page. Because this
  30. affects performance, set this value to true only
  31. during development.
  32. -->
  33. <roleManager enabled="true" />
  34. <compilation debug="true">
  35. <assemblies>
  36. <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  37. <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  38. <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  39. <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  40. </assemblies>
  41. </compilation>
  42. <!--
  43. The <authentication> section enables configuration
  44. of the security authentication mode used by
  45. ASP.NET to identify an incoming user.
  46. -->
  47. <authentication mode="Forms" />
  48. <!--
  49. The <customErrors> section enables configuration
  50. of what to do if/when an unhandled error occurs
  51. during the execution of a request. Specifically,
  52. it enables developers to configure html error pages
  53. to be displayed in place of a error stack trace.
  54.  
  55. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  56. <error statusCode="403" redirect="NoAccess.htm" />
  57. <error statusCode="404" redirect="FileNotFound.htm" />
  58. </customErrors>
  59. -->
  60. <pages>
  61. <controls>
  62. <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  63. <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  64. </controls>
  65. </pages>
  66. <httpHandlers>
  67. <remove verb="*" path="*.asmx"/>
  68. <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  69. <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  70. <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
  71. </httpHandlers>
  72. <httpModules>
  73. <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  74. </httpModules>
  75. </system.web>
  76. <system.codedom>
  77. <compilers>
  78. <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  79. <providerOption name="CompilerVersion" value="v3.5"/>
  80. <providerOption name="WarnAsError" value="false"/>
  81. </compiler>
  82. </compilers>
  83. </system.codedom>
  84. <!--
  85. The system.webServer section is required for running ASP.NET AJAX under Internet
  86. Information Services 7.0. It is not necessary for previous version of IIS.
  87. -->
  88. <system.webServer>
  89. <validation validateIntegratedModeConfiguration="false"/>
  90. <modules>
  91. <remove name="ScriptModule"/>
  92. <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  93. </modules>
  94. <handlers>
  95. <remove name="WebServiceHandlerFactory-Integrated"/>
  96. <remove name="ScriptHandlerFactory"/>
  97. <remove name="ScriptHandlerFactoryAppServices"/>
  98. <remove name="ScriptResource"/>
  99. <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  100. <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  101. <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  102. </handlers>
  103. </system.webServer>
  104. <runtime>
  105. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  106. <dependentAssembly>
  107. <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  108. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  109. </dependentAssembly>
  110. <dependentAssembly>
  111. <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  112. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  113. </dependentAssembly>
  114. </assemblyBinding>
  115. </runtime>
  116. <system.net>
  117. <mailSettings>
  118. <smtp from="noreply@onlinebackupsystem.com">
  119. <network host="exchange01" password="" userName="" />
  120. </smtp>
  121. </mailSettings>
  122. </system.net>
  123. </configuration>
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 130
Reputation: sedgey is on a distinguished road 
Solved Threads: 8
sedgey's Avatar
sedgey sedgey is offline Offline
Junior Poster

Re: testing out an asp.net application on university server problem

 
0
  #7
Jan 16th, 2009
<?xml version="1.0"?>
<configuration>
	<configSections>
	</configSections>
	<appSettings/>
	<connectionStrings>
  <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\BackupSystemDatabase.mdf;Integrated Security=True;User Instance=True"
   providerName="System.Data.SqlClient" />
  <add name="ConnectionString2" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True"
   providerName="System.Data.SqlClient" />
 </connectionStrings>
	<system.web>
    <customErrors mode="Off"/>
    <httpRuntime executionTimeout="1000" maxRequestLength="1048576"/>

    <!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
		<roleManager enabled="true" />
  <compilation debug="true">
		</compilation>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Forms" />
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
		<pages>
		</pages>
	</system.web>
	<system.codedom>
		<compilers>
			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
				<providerOption name="CompilerVersion" value="v3.5"/>
				<providerOption name="WarnAsError" value="false"/>
			</compiler>
		</compilers>
	</system.codedom>
	<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
 <system.net>
  <mailSettings>
   <smtp from="noreply@onlinebackupsystem.com">
    <network host="exchange01" password="" userName="" />
   </smtp>
  </mailSettings>
 </system.net>
</configuration>
David Ridgway: so little daylight, too much caffeine
MCSD MCAD MCSE
http://web2asp.net
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 41
Reputation: julseypart is an unknown quantity at this point 
Solved Threads: 0
julseypart julseypart is offline Offline
Light Poster

Re: testing out an asp.net application on university server problem

 
0
  #8
Jan 17th, 2009
damn, now i got a security error:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC