Hi, and thank you for your help, I have been trying to install the classifeids starter kit on a shared hosting at godady, I have read eaverything in the post to set up correctly the aplication but still not working, I created 2 databases, with diferent names,
one for members and the other... I run the Scripts in the query analizer.... adn everything ok, now my site is runing ASP 2.0 and I changed the web.config file with the correct connection strings, and my web configfile is this
what is wrong?, my domain is pointing well, I also have made simple aplications to use sql server and it worked changing in the conections strings but this starter kit des no work. I will be very thank full and happy with your help, thank you very much!
Hi thank you for your help, I am really a beguinner, so this is what appears in the web page
Server Error in '/' Application.
Request is not available in this context
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 77: Dim c As HttpContext = HttpContext.Current Line 78: If Not (c Is Nothing) Then Line 79: Dim port As String = c.Request.ServerVariables("SERVER_PORT") Line 80: If port Is Nothing OrElse port.Equals("80") OrElse port.Equals("443") Then Line 81: port = String.Empty
[HttpException (0x80004005): Request is not available in this context] System.Web.HttpContext.get_Request() +74 AspNet.StarterKits.Classifieds.Web.ClassifiedsHttpApplication.GetSiteUrl() in D:\Hosting\5418499\html\App_Code\Web\ClassifiedsHttpApplication.vb:79 AspNet.StarterKits.Classifieds.Web.ClassifiedsHttpApplication.Application_Start(Object sender, EventArgs e) in D:\Hosting\5418499\html\App_Code\Web\ClassifiedsHttpApplication.vb:63 ASP.global_asax.Application_Start(Object sender, EventArgs e) in D:\Hosting\5418499\html\global.asax:16
[HttpException (0x80004005): Request is not available in this context] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +407 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +130 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +296 System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +54 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +237
[HttpException (0x80004005): Request is not available in this context] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +546 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +78 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +334
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
Thank you very much for your time, I read the articles, and the most easy and logical solution (Not Recomended) is to change in the IIS7 mode to clasic, so in order to prube that I changed the pipeline mode from integrated to classic, and then appears a
new error.
erver Error in '/' Application.
Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
Source Error:
Line 252: numAttempts += 1 Line 253: xml = New XmlSerializer(GetType(SiteSettings)) Line 254: fs = New FileStream(configPath, System.IO.FileMode.Open, System.IO.FileAccess.Read) Line 255: settings = CType(xml.Deserialize(fs), SiteSettings) Line 256: success = True
[DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +67 AspNet.StarterKits.Classifieds.BusinessLogicLayer.SiteSettings.LoadFromXml() in D:\Hosting\5418499\html\App_Code\BLL\SiteSettings.vb:254
[Exception: The Site Configuration could not be loaded.] AspNet.StarterKits.Classifieds.BusinessLogicLayer.SiteSettings.LoadFromXml() in D:\Hosting\5418499\html\App_Code\BLL\SiteSettings.vb:263 AspNet.StarterKits.Classifieds.BusinessLogicLayer.SiteSettings.LoadFromConfiguration() in D:\Hosting\5418499\html\App_Code\BLL\SiteSettings.vb:172 AspNet.StarterKits.Classifieds.Web.ClassifiedsHttpApplication.Application_Start(Object sender, EventArgs e) in D:\Hosting\5418499\html\App_Code\Web\ClassifiedsHttpApplication.vb:66 ASP.global_asax.Application_Start(Object sender, EventArgs e) in D:\Hosting\5418499\html\global.asax:16
It should work on classic mode and nothing is there maybe somethign more?
Marked as answer by diegogs on Jan 20, 2010 03:37 AM
This exception is stating that it cannot find the file at the path specified. Do you have site-config.xml file in that location?
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
If I can use the teach a man to fish proverb...
If you are able to read the exception details, most time if you cannot figure it out on your own, entering the exception details (minus any specifics to your environment) into google or other search engine will find posts which discuss the issue and find
possible solutions.
Thank you very much for your help, I could maake my web page work, with the links you gave me and the advices, thnak you very much my friend. I am sorry for any issues I am only a beguinner and do not speak at all english. thanks again
Hi, noe I have another problem with the databases, I only add new data to the database now I generate the script to exectute on the query analyzer and the script is for SQL SERVER 2005 that is the sql server of godaddy but when I executed appears in the
web page an error and do not finish te work, what should I have to do? becouse I cannot restore it and I cannot update te new...?:
Invalid object name 'dbo.aspnet_UsersInRoles'.
could any one help me plz i m getting this error when i connect my wms through browser.here is the error stack
Server Error in '/ArcGIS/services' Application.
Internal Server Error
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Internal Server Error
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Internal Server Error]
diegogs
Member
2 Points
5 Posts
500 Internal Server Error Everything is Find why?
Jan 18, 2010 07:05 PM|LINK
Hi, and thank you for your help, I have been trying to install the classifeids starter kit on a shared hosting at godady, I have read eaverything in the post to set up correctly the aplication but still not working, I created 2 databases, with diferent names, one for members and the other... I run the Scripts in the query analizer.... adn everything ok, now my site is runing ASP 2.0 and I changed the web.config file with the correct connection strings, and my web configfile is this
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<location path="Admin">
<system.web>
<authorization>
<allow roles="Administrators"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="PostAd.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="EditPhotos.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="MyAds.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<location path="MyProfile.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
<system.web>
<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
<authentication mode="Forms"/>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<profile enabled="true">
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="MemberId" defaultValue="0" type="System.Int32"/>
<group name="Core"/>
</properties>
</profile>
<roleManager enabled="true"/>
<compilation debug="false">
</compilation>
<siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true">
<providers>
<clear/>
<add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
</system.web>
<connectionStrings>
<add name="classifiedsConnection" connectionString="DataSource=xxxxxxx.db.5418499.hostedresource.com; Initial Catalog=user2;
User ID=clasificados468; Password=pass2;" />
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="DataSource=yyyyyy.db.5418499.hostedresource.com; Initial Catalog=miembrosads;
User ID=user; Password=pass;" />
</connectionStrings>
<system.net>
<mailSettings>
<smtp>
<network host="yourSMTPhostname" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/>
/>
</smtp>
</mailSettings>
</system.net>
<system.codedom>
</system.codedom>
<system.webServer>
</system.webServer>
</configuration>
what is wrong?, my domain is pointing well, I also have made simple aplications to use sql server and it worked changing in the conections strings but this starter kit des no work. I will be very thank full and happy with your help, thank you very much!
rodnex
Participant
1110 Points
156 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 18, 2010 07:55 PM|LINK
<customErrors defaultRedirect="Error.aspx" mode="Off"/>
I suggest turning off CustomErrors and reviewing the detailed .NET exception or post that information here for help on the specific issue.
I wouldn't be suprised if you were able to resolve this once you see the underlying exception as HTTP 500 is too generic to diagnose.
diegogs
Member
2 Points
5 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 18, 2010 10:00 PM|LINK
Hi thank you for your help, I am really a beguinner, so this is what appears in the web page
Server Error in '/' Application.
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Source File: D:\Hosting\5418499\html\App_Code\Web\ClassifiedsHttpApplication.vb Line: 79
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
what do I have to do? thank you!
rodnex
Participant
1110 Points
156 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 19, 2010 12:22 AM|LINK
Googling the exception details suggests that this is caused by a change in IIS7 as this code obviously worked (since it is starter kit code)
Take a look at this link and apply one of the suggested fixes and you should be in business
http://weblogs.asp.net/reganschroder/archive/2008/07/25/asp-net-classifieds-starter-kit-does-not-run-in-iis7.aspx
another link explaining the issue
http://mvolo.com/blogs/serverside/archive/2007/11/10/Integrated-mode-Request-is-not-available-in-this-context-in-Application_5F00_Start.aspx
diegogs
Member
2 Points
5 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 19, 2010 01:15 PM|LINK
Thank you very much for your time, I read the articles, and the most easy and logical solution (Not Recomended) is to change in the IIS7 mode to clasic, so in order to prube that I changed the pipeline mode from integrated to classic, and then appears a new error.
erver Error in '/' Application.
Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
Source Error:
Source File: D:\Hosting\5418499\html\App_Code\BLL\SiteSettings.vb Line: 254
Stack Trace:
It should work on classic mode and nothing is there maybe somethign more?
rodnex
Participant
1110 Points
156 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 19, 2010 03:24 PM|LINK
This exception is stating that it cannot find the file at the path specified. Do you have site-config.xml file in that location?
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\5418499\html\App_Data\site-config.xml'.
If I can use the teach a man to fish proverb...
If you are able to read the exception details, most time if you cannot figure it out on your own, entering the exception details (minus any specifics to your environment) into google or other search engine will find posts which discuss the issue and find possible solutions.
diegogs
Member
2 Points
5 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 20, 2010 03:39 AM|LINK
Thank you very much for your help, I could maake my web page work, with the links you gave me and the advices, thnak you very much my friend. I am sorry for any issues I am only a beguinner and do not speak at all english. thanks again
rodnex
Participant
1110 Points
156 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 20, 2010 01:18 PM|LINK
Glad to hear your webpage is working, no need to apologize for anything, you are welcome.
diegogs
Member
2 Points
5 Posts
Re: 500 Internal Server Error Everything is Find why?
Jan 20, 2010 11:42 PM|LINK
Hi, noe I have another problem with the databases, I only add new data to the database now I generate the script to exectute on the query analyzer and the script is for SQL SERVER 2005 that is the sql server of godaddy but when I executed appears in the web page an error and do not finish te work, what should I have to do? becouse I cannot restore it and I cannot update te new...?: Invalid object name 'dbo.aspnet_UsersInRoles'.
SilaKhan
Member
2 Points
1 Post
Re: 500 Internal Server Error Everything is Find why?
Jun 25, 2010 09:44 AM|LINK
Hi
could any one help me plz i m getting this error when i connect my wms through browser.here is the error stack
Server Error in '/ArcGIS/services' Application.
Internal Server Error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: Internal Server Error
Source Error:
Stack Trace:
i would appriciate your kind reply
Thanks