View Full Version : Help: Visual Studio 2003 project copy to Discountasp.net
andrewba
07-27-2005, 05:32 AM
I need help please.
I have a web which I've developed on Visual Studio 2003 on a WinXP Pro machine. Web works fine on devel machine but wont even start on discountasp webhost.
Have used copy project to move it over, amongst other ways. same problem. All my components on the host have a file location on my local machine - how can that be?? and how do I change this, the file locations are greyed out?
I thought this was supposed to be a simlple matter of transfering the files and away you go.
Any help appreciated. This is my first time!!!
bruce
07-27-2005, 05:40 AM
have you consulted with this FAQ?
http://kb.discountasp.net/article.aspx?id=10002
Are you getting error while uploading ? or Are you getting an error while browsing to the website? WHat is the error
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
andrewba
07-27-2005, 07:22 AM
I am using the instructions from Q10002 as you mention.
support say its a coding issue but how can it be when it works without error on my devel machine?
No errors reported on the copy project procedure.
here is the error being thrown:
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
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:
[FormatException: Input string was not in a correct format.]
System.Number.ParseInt64(String s, NumberStyles style, NumberFormatInfo info) +0
System.Xml.XmlConvert.ToInt64(String s) +102
System.Data.Common.Int64Storage.ConvertXmlToObject (String s) +23
System.Data.DataColumn.ConvertXmlToObject(String s) +51
System.Data.XmlDataLoader.LoadData(DataTable parentTable) +393
System.Data.XmlDataLoader.LoadData(DataRow& row, DataTable parentTable, Boolean[] foundColumns) +403
System.Data.XmlDataLoader.LoadData(DataTable parentTable) +710
System.Data.XmlDataLoader.LoadData(XmlReader reader) +477
System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving) +1289
System.Data.DataSet.ReadXml(String fileName) +63
SCAMPS.StarterKit.Portal.Configuration.GetSiteSett ings() in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Compon ents\Configuration.vb:818
SCAMPS.StarterKit.Portal.PortalSettings..ctor(Int3 2 tabIndex, Int32 tabId, Int32 tabVIndex, Int32 tabVId) in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Compon ents\Configuration.vb:904
SCAMPS.StarterKit.Portal.Global.Application_BeginR equest(Object sender, EventArgs e) in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Global .asax.vb:125
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +87
Version Information:Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300 <!--
[FormatException]: Input string was not in a correct format.
at System.Number.ParseInt64(String s, NumberStyles style, NumberFormatInfo info)
at System.Xml.XmlConvert.ToInt64(String s)
at System.Data.Common.Int64Storage.ConvertXmlToObject (String s)
at System.Data.DataColumn.ConvertXmlToObject(String s)
at System.Data.XmlDataLoader.LoadData(DataTable parentTable)
at System.Data.XmlDataLoader.LoadData(DataRow& row, DataTable parentTable, Boolean[] foundColumns)
at System.Data.XmlDataLoader.LoadData(DataTable parentTable)
at System.Data.XmlDataLoader.LoadData(XmlReader reader)
at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
at System.Data.DataSet.ReadXml(String fileName)
at SCAMPS.StarterKit.Portal.Configuration.GetSiteSett ings() in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Compon ents\Configuration.vb:line 818
at SCAMPS.StarterKit.Portal.PortalSettings..ctor(Int3 2 tabIndex, Int32 tabId, Int32 tabVIndex, Int32 tabVId) in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Compon ents\Configuration.vb:line 904
at SCAMPS.StarterKit.Portal.Global.Application_BeginR equest(Object sender, EventArgs e) in C:\Program Files\ASP.NET Starter Kits\ScampsPortalVBVS00_01\ScampsPortalVBVS\Global .asax.vb:line 125
at System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
andrewba
07-27-2005, 07:25 AM
Also, if you look at the error stck trace, it seems to describe file locations as being on my development machine. how can that be? all the files are on the web site host
bruce
07-27-2005, 07:59 AM
This is a coding related issue rather than a VS.NET upload issue.
Application that work on one computer may not alway work on other computer. For example, if you application try to access a file path that exist on one computer but not other.
As far as the stack trace, it is normal that it shows your local path. This is how VS.NET works, when you compile the project, VS.NET compile the source file (.vb, .cs,etc) into the dll on your computer. All the debug information that compile into the pdb file will reference your local path.
i suggest you look at the line of code that produces the error and see if you can make anything out of it/
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
andrewba
07-29-2005, 07:13 AM
Bruce. I think I found the problem. I managed to replicate it on my own server. I think it's actually a Microsoft "feature". I found reference to it on a MS KB article.
It seems a fault occurs when you copy xml files from one webhost to another, causing error with the .readxml method.
I managed to cure the fault on my server so, touch wood, I can get it work when I try and re-post the file to the hosting server.
Thanks
Andrew
vBulletin® ©Jelsoft Enterprises Ltd.