<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Installation and Setup</title><link>http://forums.asp.net/17.aspx</link><description>All about installing and getting ASP.NET running on your system.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Could not find Stored Procedure Problem</title><link>http://forums.asp.net/thread/2567791.aspx</link><pubDate>Tue, 19 Aug 2008 21:53:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2567791</guid><dc:creator>devcalpoly</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2567791.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=17&amp;PostID=2567791</wfw:commentRss><description>&lt;p&gt;Go to Sql 2005 Management Studio and run the following query:&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="sqlkwd4"&gt;sp_help&lt;/span&gt; VisitRegister&lt;/pre&gt;&amp;nbsp;Does the result pane show any info? Also make sure the proc schema is dbo.&lt;p&gt;Also post some of the code that grabs connection string out of web.config &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Could not find Stored Procedure Problem</title><link>http://forums.asp.net/thread/2567281.aspx</link><pubDate>Tue, 19 Aug 2008 16:34:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2567281</guid><dc:creator>jeremyh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2567281.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=17&amp;PostID=2567281</wfw:commentRss><description>&lt;p&gt;Sorry I could not read all of your post as the longer lines are cut off. But my guess would be you need to give the iis users access to the database.&lt;/p&gt;
&lt;p&gt;Take a read of &lt;a href="http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395"&gt;http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395&lt;/a&gt;&amp;nbsp;should help you out.&lt;/p&gt;
&lt;p&gt;Hope it helps&lt;/p&gt;</description></item><item><title>Could not find Stored Procedure Problem</title><link>http://forums.asp.net/thread/2566846.aspx</link><pubDate>Tue, 19 Aug 2008 14:04:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2566846</guid><dc:creator>Steve_mellor</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2566846.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=17&amp;PostID=2566846</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I know this has been asked many times before but I have read all of the answers and I&amp;#39;m afraid I don&amp;#39;t understand them.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have just set up a new windows 2003 server with sql server 2005. We have been given a website to work on which is written in.net but I have never used .net before. After installing the server and .net I set up my website in IIS so that it could use the .net framework. I have also imported a database in to sql server with the clients information on. My connection string is as follows:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;add key=&amp;quot;connectString&amp;quot; value=&amp;quot;server=SERVER;database=db001;uid=sa;pwd=xxxx;&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;I navigated to the site and I am getting this error:&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;span&gt;&lt;h1&gt;Server Error in &amp;#39;/current_site&amp;#39; Application.&lt;hr /&gt;            &lt;br /&gt;&lt;/h1&gt;    &lt;h2&gt; &lt;i&gt;Could not find stored procedure &amp;#39;VisitRegister&amp;#39;.&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An&lt;br /&gt;unhandled exception occurred during the execution of the current web&lt;br /&gt;request. Please review the stack trace for more information about the&lt;br /&gt;error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Data.SqlClient.SqlException: Could not find stored procedure &amp;#39;VisitRegister&amp;#39;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt;             &lt;table bgcolor="#ffffcc"&gt;
               &lt;tr&gt;
                  &lt;td&gt;&lt;br /&gt;                      &lt;code&gt;&lt;br /&gt;An unhandled exception was generated during the execution of the&lt;br /&gt;current web request. Information regarding the origin and location of&lt;br /&gt;the exception can be identified using the exception stack trace below.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;                  &lt;/td&gt;
               &lt;/tr&gt;
            &lt;/table&gt;&lt;br /&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;table bgcolor="#ffffcc"&gt;
               &lt;tr&gt;
                  &lt;td&gt;&lt;br /&gt;                      &lt;code&gt;&lt;/code&gt;&lt;pre&gt;[SqlException (0x80131904): Could not find stored procedure &amp;#39;VisitRegister&amp;#39;.]&lt;br /&gt;   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857370&lt;br /&gt;   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734982&lt;br /&gt;   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188&lt;br /&gt;   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838&lt;br /&gt;   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149&lt;br /&gt;   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886&lt;br /&gt;   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132&lt;br /&gt;   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415&lt;br /&gt;   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135&lt;br /&gt;   RogueSystems.RogueSystemsHelper.RegisterVisit() +119&lt;br /&gt;   RogueSystems.Global.Session_Start(Object sender, EventArgs e) +220&lt;br /&gt;   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +2163150&lt;br /&gt;   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +154&lt;br /&gt;   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +542&lt;br /&gt;   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +90&lt;br /&gt;   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +155&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;            &lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;            &lt;b&gt;Version Information:&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;Now, I have checked that the stored procedure exists in the database (it does) and I have checked that the conneciton string is correct. I believe it is but have no real way of knowing. As I said, I am new to this.&lt;/font&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;I have tried to run &amp;#39;aspnet_regsql.exe&amp;#39; on that database but I get the following error:&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;Setup failed.&lt;br /&gt;&lt;br /&gt;Exception:&lt;br /&gt;An error occurred during the execution of the SQL file &amp;#39;InstallCommon.sql&amp;#39;. The SQL error number is 8152 and the SqlException message is: String or binary data would be truncated.&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;Details of failure&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;SQL Server: &lt;br /&gt;Database: [db001]&lt;br /&gt;SQL file loaded:&lt;br /&gt;InstallCommon.sql&lt;br /&gt;&lt;br /&gt;Commands failed:&lt;br /&gt;&lt;br /&gt;CREATE TABLE #aspnet_Permissions&lt;br /&gt;(&lt;br /&gt;    Owner     sysname,&lt;br /&gt;    Object    sysname,&lt;br /&gt;    Grantee   sysname,&lt;br /&gt;    Grantor   sysname,&lt;br /&gt;    ProtectType char(10),&lt;br /&gt;    [Action]    varchar(20),&lt;br /&gt;    [Column]    sysname&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;INSERT INTO #aspnet_Permissions&lt;br /&gt;EXEC sp_helprotect&lt;br /&gt;&lt;br /&gt;IF (EXISTS (SELECT name&lt;br /&gt;              FROM sysobjects&lt;br /&gt;             WHERE (name = N&amp;#39;aspnet_Setup_RestorePermissions&amp;#39;)&lt;br /&gt;               AND (type = &amp;#39;P&amp;#39;)))&lt;br /&gt;DROP PROCEDURE [dbo].aspnet_Setup_RestorePermissions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL Exception:&lt;br /&gt;System.Data.SqlClient.SqlException: String or binary data would be truncated.&lt;br /&gt;   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br /&gt;   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;br /&gt;   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;br /&gt;   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)&lt;br /&gt;   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)&lt;br /&gt;   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)&lt;br /&gt;   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()&lt;br /&gt;   at System.Web.Management.SqlServices.ExecuteFile(String file, String server, String database, String dbFileName, SqlConnection connection, Boolean sessionState, Boolean isInstall, SessionStateType sessionStatetype) &lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;I have no idea what I am doing. Please help, what should be my next step??&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;All the best,&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;K &lt;br /&gt;&lt;/pre&gt;</description></item></channel></rss>