Red Gate forums :: View topic - Custom error web server not able to open error reports
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Custom error web server not able to open error reports

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Thu Dec 15, 2011 7:06 pm    Post subject: Custom error web server not able to open error reports Reply with quote

I have two machines, DEV where I build my ClickOnce SA application and WEB where I store the error reports and where I have an additional license of SA.
I compile the application on DEV and run it on a third machine. When there is an exception I can succesfully use the custom error report and send the error to my web server.
The issue happens when I refresh the SA client on my web server, as soon as it tries to load the error report I get this exception:
https://public.blu.livefilestore.com/y1p0amp3udnOXjTeN9fOmZ4AUiJfdJqVyTHbZwSaQ2p3G-Wsf1kro6XJ-ry7Fk258gelZyxDED1OX_b43eEHN71cg/error.bmp
It says:
"The report is not associated with a valid project ID. Either the assembly was not built using this computer (which is true) or the assembly was not marked as released (which is true, is Debug) and the associated was deleted"
Back to top
View user's profile Send private message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Fri Dec 16, 2011 5:16 pm    Post subject: Reply with quote

This is a more detailed description of the error I am having which has been sent also to your ticket system yesterday.

Good morning, I am attaching in this e-mail the exact problem I am facing with Smart Assembly 6.5 error reporting feature.

I have a Development machine DEV01 with:
• SQL Server 2008 Express
• Visual Studio 2010
• SA Professional license
In this development machine I am building a Windows Form ClickOnce application using the MsBuild task provided by RedGate.
I have configure everything to use a remote SQL and a remote shared folder for the mappings and to use our internal web server.
As soon as I build the project I can see the SQL server populated and the map published in the remote folder.

I have an internal web server installed using your tutorial.
WEB01. I have also installed in this server SA Developer license in order to be able to view the error reports.

As soon as the application crashes I can see that in my report folder I have a new file called “tally” of 1Kb
Nothing is written to the database
If I open SA client from the web server I receive the following error and no reports are displayed:
"The report is not associated with a valid project ID. Either the assembly was not built using this computer (which is true) or the assembly was not marked as released (which is true, is Debug) and the associated was deleted"
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Dec 19, 2011 10:13 am    Post subject: Reply with quote

Thanks - FYI we are already working on this as you had previously opened a support ticket by email.
Back to top
View user's profile Send private message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Mon Dec 19, 2011 2:02 pm    Post subject: Reply with quote

Hi Brian, actually I got notified that the ticket has been closed while I didn't get a solution on my problem yet.
If I run your MsBuild task, the SQL is not upgraded, either the project table or the builds table are not updated.
Back to top
View user's profile Send private message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Mon Dec 19, 2011 3:23 pm    Post subject: Reply with quote

Hello guys, after some experiments I was able to sort out the problem.
It works only if I set my project to "Release". If I set the project to "Debug" SA recompiles the project but it does not update SQL Server.
Very Happy
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Wed Dec 21, 2011 12:12 pm    Post subject: Reply with quote

Actually I in debug configuration, SmartAssembly should not process the assembly (unless you deviated from the instructions), so that would make sense.
Back to top
View user's profile Send private message
raffaeu



Joined: 12 Dec 2011
Posts: 20
Location: Bermuda

PostPosted: Wed Dec 21, 2011 2:04 pm    Post subject: Reply with quote

That make sense now. Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group